From 0d3424fd8d21817efd7bc1e2e3ae1c972068cb64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 22 Oct 2019 11:20:21 +0200 Subject: godot-update : add -Dandroid_ndk --- godot-update | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/godot-update b/godot-update index 3c781d4..032cb56 100755 --- a/godot-update +++ b/godot-update @@ -47,16 +47,17 @@ function build() then [ $CLEAN -eq 1 ] && scons platform=android --clean # https://docs.godotengine.org/en/3.1/development/compiling/compiling_for_android.html - ndk_platform=android-21 + ndk_platform=android-29 for arch in arm64v8 armv7; #x86_6 do for target in release_debug; do - echo -e "build : ${RED}android$RESET android_arch=$RED$arch$RESET target=$RED$target$RESET" + echo -e "build : ${RED}android$RESET android_arch=$RED$arch$RESET target=$RED$target$RESET ndk_platform=$RED$ndk_platform$RESET" time scons -j$J platform=android target=$target android_arch=$arch ndk_platform=$ndk_platform tools=no disable_3d=true done done - pushd platform/android/java && ./gradlew build && popd + echo "${RED}gradlew build$RESET" + pushd platform/android/java && ./gradlew build --build-cache -Dandroid_ndk=$ndk_platform && popd cp platform/android/java/app/build/outputs/apk/debug/android_debug.apk $DST/android_debug.apk cp platform/android/java/app/build/outputs/apk/release/android_release.apk $DST/android_release.apk fi -- cgit v1.1-2-g2b99