From 89a4cf49360a1fc4c10a09e9ff56deda08e922e4 Mon Sep 17 00:00:00 2001 From: proletarius101 <54175165+proletarius101@users.noreply.github.com> Date: Tue, 21 Feb 2023 05:13:12 +0000 Subject: [PATCH] use the standard `ANDROID_HOME` variable to locate ndk ANDROID_HOME is a standard variable in the Android development world. Using it to locate the NDK avoids changing scripts on every machine. --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index c09df08..1b50e46 100755 --- a/build.sh +++ b/build.sh @@ -12,7 +12,7 @@ debug_mode=1 if [[ "$build_mode" == "release" ]]; then debug_mode=0 fi -$HOME/code/android/sdk/ndk/21.4.7075529/ndk-build -j48 NDK_DEBUG=$debug_mode +$ANDROID_HOME/ndk/21.4.7075529/ndk-build -j48 NDK_DEBUG=$debug_mode popd pushd java