feat(build,vcpkg): Define FFMPEG as VCPKG feature, disabled by default - #3184
feat(build,vcpkg): Define FFMPEG as VCPKG feature, disabled by default#3184tsunamistate wants to merge 2 commits into
Conversation
PR Summary by QodoMake FFmpeg an optional vcpkg feature (default off)
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can copy the agent prompt from any finding and feed it to your IDE agent |
|
This looks good to me - we should merge 2542 first, then rebase this - if this merges first, FFMPEG enabled cold builds may still be broken on the dead MSYS2 download. We should probably set RTS_BUILD_OPTION_FFMPEG=ON in one GeneralsMD win32-vcpkg CI job, and let's keep it off by default in CMakePresets. In your PR description for the manual testing instructions, I would use: |
|
Updated test instructions to use the command line |
|
Can you set RTS_BUILD_OPTION_FFMPEG=ON in one GeneralsMD win32-vcpkg CI job? |
0afb7a1 to
4d455d9
Compare
|
@bobtista I don't have a lot of experience with GitHub Actions setup, but I added an FFMPEG toggle and one additional job that is a clone of VCPKG release build with FFMPEG enabled. |
4d455d9 to
ab97809
Compare
ab97809 to
173d5d4
Compare
The workflow input and CMake look right, but it doesn't enable an FFmpeg CI build. The new matrix entry is commented out, and build-generalsmd-win32 does not pass the matrix value into the reusable workflow, so inputs.ffmpeg will still default to false. After #2542 (already approved) merges and this is rebased, I would just add ffmpeg: true to the existing GeneralsMD win32-vcpkg release matrix entry rather than adding a duplicate job, then pass it through under with:: Also a nit: This could also be added to the reusable job name near the top of that file so the Actions job list identifies which build uses FFmpeg eg Just a nice to have, it matches the existing tools/extras pattern and avoids rendering a false value weirdly |
Closes #3175
RTS_BUILD_OPTION_FFMPEGfromconfig-build.cmake, defining it in the top-levelCMakeLists.txtbefore theprojectblockTesting:
win32-vcpkgpreset -cmake --preset win32-vcpkg. Note that FFMPEG is NOT built duringvcpkg install.cmake --build --preset win32-vcpkgwin32-vcpkgpreset with FFMPEG support -cmake --preset win32-vcpkg -DRTS_BUILD_OPTION_FFMPEG=ONcmake --build --preset win32-vcpkg. FFMPEG is built during thevcpkg install, FFMPEG DLLs are copied to the build folderBINKW32.DLLfrom the build folder of FFMPEG support build and launch the game to test if cutscenes still workNo LLMs were used during the creation of this PR
RTFM used: