summaryrefslogtreecommitdiffstats
path: root/godot-update
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2019-10-22 11:20:21 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2019-10-22 11:20:21 +0200
commit0d3424fd8d21817efd7bc1e2e3ae1c972068cb64 (patch)
tree2d9a8ee5bdeda91d4b643e3aa6e57c9a5b1061f5 /godot-update
parentbcece960927c8c6cb896ed45103f4c18a3acefb6 (diff)
downloadbin-0d3424fd8d21817efd7bc1e2e3ae1c972068cb64.zip
bin-0d3424fd8d21817efd7bc1e2e3ae1c972068cb64.tar.gz
godot-update : add -Dandroid_ndk
Diffstat (limited to 'godot-update')
-rwxr-xr-xgodot-update7
1 files 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