mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-11-25 14:08:49 +00:00
cmake: download architecture-specific ffmpeg for android
This commit is contained in:
parent
616cf70a80
commit
ee10cdad35
2 changed files with 8 additions and 2 deletions
|
@ -19,7 +19,7 @@ elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||||
elseif (ANDROID)
|
elseif (ANDROID)
|
||||||
set(package_base_url "https://gitlab.com/tertius42/")
|
set(package_base_url "https://gitlab.com/tertius42/")
|
||||||
set(package_repo "ext-android-bin/-/raw/main/")
|
set(package_repo "ext-android-bin/-/raw/main/")
|
||||||
set(package_extension ".tar.xz") #ffmpeg/ffmpeg-android-20221229.tar.xz")
|
set(package_extension ".tar.xz")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "No package available for this platform")
|
message(FATAL_ERROR "No package available for this platform")
|
||||||
endif()
|
endif()
|
||||||
|
|
8
externals/ffmpeg/CMakeLists.txt
vendored
8
externals/ffmpeg/CMakeLists.txt
vendored
|
@ -223,7 +223,13 @@ if (NOT WIN32 AND NOT ANDROID)
|
||||||
endif()
|
endif()
|
||||||
elseif(ANDROID)
|
elseif(ANDROID)
|
||||||
# Use yuzu FFmpeg binaries
|
# Use yuzu FFmpeg binaries
|
||||||
set(FFmpeg_EXT_NAME "ffmpeg-android-v4.4.LTS")
|
if (ARCHITECTURE_arm64)
|
||||||
|
set(FFmpeg_EXT_NAME "ffmpeg-android-v5.1.LTS-aarch64")
|
||||||
|
elseif (ARCHITECTURE_x86_64)
|
||||||
|
set(FFmpeg_EXT_NAME "ffmpeg-android-v5.1.LTS-x86_64")
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR "Unsupported architecture for Android FFmpeg")
|
||||||
|
endif()
|
||||||
set(FFmpeg_PATH "${CMAKE_BINARY_DIR}/externals/${FFmpeg_EXT_NAME}")
|
set(FFmpeg_PATH "${CMAKE_BINARY_DIR}/externals/${FFmpeg_EXT_NAME}")
|
||||||
download_bundled_external("ffmpeg/" ${FFmpeg_EXT_NAME} "")
|
download_bundled_external("ffmpeg/" ${FFmpeg_EXT_NAME} "")
|
||||||
set(FFmpeg_FOUND YES)
|
set(FFmpeg_FOUND YES)
|
||||||
|
|
Loading…
Reference in a new issue