gateway_android/build.sh

16 lines
318 B
Bash
Raw Normal View History

2024-10-31 08:25:18 +00:00
#/bin/bash
export ANDROID_NDK=/home/vboxuser/tools/ndk/android-ndk-r22b
rm -r build
mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake \
-DANDROID_ABI="armeabi-v7a" \
-DANDROID_NDK=$ANDROID_NDK \
-DANDROID_PLATFORM=android-22 \
..
make && make install
cd ..