make_android.sh 847 B

1234567891011121314151617181920
  1. if [ -z "$ANDROID_NDK" ]; then
  2. export ANDROID_NDK=~/android-ndk-r10e
  3. fi
  4. mkdir -p build_v7a && cd build_v7a
  5. cmake -DANDROID_ABI=armeabi-v7a -DCMAKE_TOOLCHAIN_FILE=../cmake/android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-clang3.6 -DANDROID_NATIVE_API_LEVEL=android-9 ../
  6. cd ..
  7. cmake --build build_v7a --config Release
  8. mkdir -p Plugins/Android/libs/armeabi-v7a/
  9. cp build_v7a/libRecastDll.so Plugins/Android/libs/armeabi-v7a/libRecastDll.so
  10. rm -rf build_v7a
  11. mkdir -p build_x86 && cd build_x86
  12. cmake -DANDROID_ABI=x86 -DCMAKE_TOOLCHAIN_FILE=../cmake/android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME=x86-clang3.5 -DANDROID_NATIVE_API_LEVEL=android-9 ../
  13. cd ..
  14. cmake --build build_x86 --config Release
  15. mkdir -p Plugins/Android/libs/x86/
  16. cp build_x86/libRecastDll.so Plugins/Android/libs/x86/libRecastDll.so
  17. rm -rf build_x86