diff options
author | liushuyu <liushuyu011@gmail.com> | 2023-03-04 08:05:17 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2023-06-03 09:05:33 +0200 |
commit | 19eec22b38d37711951ea7549a6ea77c449a81a2 (patch) | |
tree | 4b7d4f0f5d09acf4fa3f5d2e75d0e830996d9b1c | |
parent | CI: add Android build systems (diff) | |
download | yuzu-19eec22b38d37711951ea7549a6ea77c449a81a2.tar yuzu-19eec22b38d37711951ea7549a6ea77c449a81a2.tar.gz yuzu-19eec22b38d37711951ea7549a6ea77c449a81a2.tar.bz2 yuzu-19eec22b38d37711951ea7549a6ea77c449a81a2.tar.lz yuzu-19eec22b38d37711951ea7549a6ea77c449a81a2.tar.xz yuzu-19eec22b38d37711951ea7549a6ea77c449a81a2.tar.zst yuzu-19eec22b38d37711951ea7549a6ea77c449a81a2.zip |
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/android/app/build.gradle | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bcd88784b..2d25cc3a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,6 +108,9 @@ if (YUZU_USE_BUNDLED_VCPKG) if (ANDROID) set(VCPKG_TARGET_TRIPLET "arm64-android") set(ENV{ANDROID_NDK_HOME} "${ANDROID_NDK}") + # this is to avoid CMake using the host pkg-config to find the host + # libraries when building for Android targets + set(PKG_CONFIG_EXECUTABLE "aarch64-none-linux-android-pkg-config" CACHE FILEPATH "" FORCE) list(APPEND VCPKG_MANIFEST_FEATURES "android") endif() diff --git a/src/android/app/build.gradle b/src/android/app/build.gradle index c9dc173ca..06f30b1d4 100644 --- a/src/android/app/build.gradle +++ b/src/android/app/build.gradle @@ -101,6 +101,7 @@ android { arguments "-DENABLE_QT=0", // Don't use QT "-DENABLE_SDL2=0", // Don't use SDL "-DENABLE_WEB_SERVICE=0", // Don't use telemetry + "-DBUNDLE_SPEEX=ON", "-DANDROID_ARM_NEON=true", // cryptopp requires Neon to work "-DYUZU_USE_BUNDLED_VCPKG=ON", "-DYUZU_USE_BUNDLED_FFMPEG=ON" |