mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 16:17:57 -05:00
CMakeLists: Use bundled FFmpeg as a fallback
Sets YUZU_USE_BUNDLED_FFMPEG as a CMake dependent option that is OFF on Linux and ON for WIN32 targets. If FFmpeg is not found when YUZU_USE_BUNDLED_FFMPEG is OFF, the bundled module/binaries are used instead. Reverts earlier changes to FindFFmpeg a bit, mostly to keep parity with it's Citra version a bit. Now _FFmpeg_ALL_COMPONENTS lists all components. We overwrite FFmpeg_LIBRARIES and FFmpeg_INCLUDE_DIR after using the module.
This commit is contained in:
21
externals/find-modules/FindFFmpeg.cmake
vendored
21
externals/find-modules/FindFFmpeg.cmake
vendored
@ -22,19 +22,24 @@
|
||||
#
|
||||
# <component> can be one of:
|
||||
# avcodec
|
||||
# avdevice # Disabled
|
||||
# avfilter # Disabled
|
||||
# avformat # Disabled
|
||||
# avdevice
|
||||
# avfilter
|
||||
# avformat
|
||||
# avutil
|
||||
# postproc # Disabled
|
||||
# swresample # Disabled
|
||||
# postproc
|
||||
# swresample
|
||||
# swscale
|
||||
#
|
||||
|
||||
set(_FFmpeg_ALL_COMPONENTS
|
||||
avcodec
|
||||
avutil
|
||||
swscale
|
||||
avcodec
|
||||
avdevice
|
||||
avfilter
|
||||
avformat
|
||||
avutil
|
||||
postproc
|
||||
swresample
|
||||
swscale
|
||||
)
|
||||
|
||||
set(_FFmpeg_DEPS_avcodec avutil)
|
||||
|
Reference in New Issue
Block a user