mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-19 10:43:33 +00:00
cmake: Fix Android external download URL to use main branch
The fix simplifies the logic to always use the main branch for Android builds, since architecture is already encoded in the package filenames. Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
@@ -19,19 +19,9 @@ elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
|||||||
set(package_repo "ext-linux-bin/raw/branch/main/")
|
set(package_repo "ext-linux-bin/raw/branch/main/")
|
||||||
set(package_extension ".tar.xz")
|
set(package_extension ".tar.xz")
|
||||||
elseif (ANDROID)
|
elseif (ANDROID)
|
||||||
# Select Android branch based on ABI; default to main if unknown
|
# All Android binaries are on the main branch
|
||||||
if (DEFINED ANDROID_ABI)
|
# Files are named with architecture suffix (e.g., ffmpeg-android-v5.1.LTS-aarch64.tar.xz)
|
||||||
if (ANDROID_ABI STREQUAL "arm64-v8a")
|
set(package_repo "ext-android-bin/raw/branch/main/")
|
||||||
set(_android_branch "arm64")
|
|
||||||
elseif (ANDROID_ABI STREQUAL "x86_64")
|
|
||||||
set(_android_branch "x86_64")
|
|
||||||
else()
|
|
||||||
set(_android_branch "main")
|
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
set(_android_branch "main")
|
|
||||||
endif()
|
|
||||||
set(package_repo "ext-android-bin/raw/branch/${_android_branch}/")
|
|
||||||
set(package_extension ".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")
|
||||||
|
|||||||
Reference in New Issue
Block a user