| 6 | | set VCPKG_DEFAULT_TRIPLET=x64-windows |
| | 7 | }}} |
| | 8 | |
| | 9 | Determine for which platform you want to build. To see existing platforms - check subfolder {{{triplets}}}. |
| | 10 | |
| | 11 | Detailed information can be found from here: https://vcpkg.readthedocs.io/en/latest/users/triplets/ |
| | 12 | |
| | 13 | If you wish to build only release build, no debug - then copy x64-windows.cmake to x64-windows-rel.cmake, and add there following |
| | 14 | text: |
| | 15 | |
| | 16 | {{{ |
| | 17 | set(VCPKG_TARGET_ARCHITECTURE x64) |
| | 18 | set(VCPKG_CRT_LINKAGE dynamic) |
| | 19 | set(VCPKG_LIBRARY_LINKAGE dynamic) |
| | 20 | set(VCPKG_BUILD_TYPE release) |
| | 21 | }}} |
| | 22 | |
| | 23 | Edit ports\ffmpeg\CONTROL file |
| | 24 | and change this line: |
| | 25 | {{{ |
| | 26 | Default-Features: avresample, avcodec, avformat, avdevice, avfilter, postproc, swresample, swscale |
| | 27 | }}} |
| | 28 | |
| | 29 | to something you want to build, for example - I wanted to build only ffmpeg with with scaling / resizing support, so I've changed this line to: |
| | 30 | |
| | 31 | {{{ |
| | 32 | Default-Features: ffmpeg, swresample, swscale |
| | 40 | - Builds debug and release versions |
| | 41 | vcpkg install ffmpeg:x64-windows-rel |
| | 42 | - Builds release only version |
| | 43 | }}} |
| | 44 | |
| | 45 | You can use also {{--dry-run}} to determine that you're making right thing: |
| | 46 | |
| | 47 | {{{ |
| | 48 | >vcpkg install ffmpeg:x64-windows-rel --dry-run |
| | 49 | Computing installation plan... |
| | 50 | The following packages will be built and installed: |
| | 51 | ffmpeg[avcodec,avfilter,avformat,core,ffmpeg,swresample,swscale]:x64-windows-rel |
| 18 | | If you want to build only release build, adjust vcpkg configuration according to instructions in here: https://stackoverflow.com/a/52781832/2338477 |
| 19 | | |
| 20 | | and build using command line like this for example: |
| 21 | | |
| 22 | | |
| 23 | | {{{ |
| 24 | | vcpkg install ffmpeg[ffmpeg,avresample,avcodec,avformat,avdevice,avfilter,swresample,swscale]:x64-windows-rel |
| 25 | | vcpkg install ffmpeg[ffmpeg]:x64-windows-rel |
| 26 | | |
| 27 | | }}} |
| 28 | | |
| 29 | | |
| 30 | | [ffmpeg] will build ffmpeg executable. |
| 31 | | |
| 32 | | |
| 33 | | |
| 34 | | |
| 35 | | |
| 36 | | |