Skip to content

Commit

Permalink
Added a script to build on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickNovelab committed Oct 25, 2023
1 parent 3d43e7c commit 20f918d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions JSBSimForAndroid.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

rm -rf build
mkdir -p build
cd build

cmake .. \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_CXX_FLAGS="-stdlib=libc++" \
-DCMAKE_TOOLCHAIN_FILE=/Users/yann/Library/Android/sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake \
-DANDROID_ABI=arm64-v8a \
-DANDROID_PLATFORM=android-29

make -j8

0 comments on commit 20f918d

Please sign in to comment.