1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 14:29:26 +08:00

add: add support for the x64 Android platform

This commit is contained in:
LA_DI_DA
2025-03-21 23:22:42 +08:00
parent 40a1b6765a
commit 9eec407eb2
2 changed files with 14 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ goto :EOF
:install_all_platforms
call :install %1 x86-android
call :install %1 x64-android
call :install %1 armeabi-v7a-android
call :install %1 arm64-v8a-android
goto :EOF

View File

@@ -0,0 +1,13 @@
if (NOT DEFINED ENV{NDK_ROOT})
message(FATAL_ERROR "NDK_ROOT is not defined. Please set it to the root directory of your Android NDK.")
endif ()
message(STATUS "Using Android NDK: $ENV{NDK_ROOT}")
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Android)
set(VCPKG_MAKE_BUILD_TRIPLET "--host=x86_64-linux-android")
set(VCPKG_CMAKE_CONFIGURE_OPTIONS -DANDROID_ABI=x86_64)
set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE $ENV{NDK_ROOT}/build/cmake/android.toolchain.cmake)