source-engine/scripts/build-android-armv7a.sh
2026-05-15 14:09:53 +03:00

13 lines
619 B
Bash
Executable File

#!/bin/sh
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" \
CXXFLAGS="-fexceptions" CFLAGS="-fexceptions" ./waf configure -T release --android=armeabi-v7a-hard,4.9,21 --togles --disable-warns && ./waf build