diff --git a/scripts/arm64build-android.sh b/scripts/arm64build-android.sh index 8b137891..6633c767 100644 --- a/scripts/arm64build-android.sh +++ b/scripts/arm64build-android.sh @@ -1 +1,9 @@ - +git submodule init && git submodule update +wget https://dl.google.com/android/repository/android-ndk-r10e-linux-x86_64.zip -o /dev/null +unzip android-ndk-r10e-linux-x86_64.zip +export ANDROID_NDK_HOME=$PWD/android-ndk-r10e/ +export NDK_HOME=$PWD/android-ndk-r10e/ +CFLAGS="-Os -fdata-sections -ffunction-sections" \ +CXXFLAGS="-Os -fdata-sections -ffunction-sections -fno-exceptions -fno-rtti -fvisibility=hidden" \ +LINKFLAGS="-Wl,--gc-sections -Wl,--strip-all" \ +./waf configure -T release --64bits --android=aarch64,4.9,21 --togles --disable-warns && ./waf build