gateway_android/build.sh

16 lines
318 B
Bash

#/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 ..