gateway_android/unit_test/borad_test/uart/uart1/build.sh

17 lines
319 B
Bash

#/bin/bash
export ANDROID_NDK=/home/vboxuser/tools/ndk/android-ndk-r16b
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 ..