Update arm64build-android.sh

This commit is contained in:
Star1xr 2026-05-15 00:44:02 +03:00 committed by GitHub
parent 281e5c9b80
commit 2cf778e309
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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