#!/bin/bash
ANDROID_NDK=/path/of/android-ndk
rm -rf build_dir && mkdir -p build_dir/install_dir && cd build_dir &&
cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake \
-DANDROID_ABI="arm64-v8a" \
-DANDROID_NDK=$ANDROID_NDK \
-DANDROID_PLATFORM=android-28 \
-DBUILD_SHARED_LIBS=true\
-DCMAKE_BUILD_TYPE=Release\
-DTHIRDPARTY=ON \
-DCMAKE_INSTALL_PREFIX=./install_dir \
.. && make