You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.3 KiB
26 lines
1.3 KiB
if [ -z "$ANDROID_NDK" ]; then
|
|
export ANDROID_NDK=~/android-ndk-r15c
|
|
fi
|
|
|
|
mkdir -p build_v7a && cd build_v7a
|
|
cmake -DANDROID_ABI=armeabi-v7a -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-clang -DANDROID_NATIVE_API_LEVEL=android-9 ../
|
|
cd ..
|
|
cmake --build build_v7a --config Release
|
|
mkdir -p plugin_lua53/Plugins/Android/libs/armeabi-v7a/
|
|
cp build_v7a/libxlua.so plugin_lua53/Plugins/Android/libs/armeabi-v7a/libxlua.so
|
|
|
|
mkdir -p build_v8a && cd build_v8a
|
|
cmake -DANDROID_ABI=arm64-v8a -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-clang -DANDROID_NATIVE_API_LEVEL=android-9 ../
|
|
cd ..
|
|
cmake --build build_v8a --config Release
|
|
mkdir -p plugin_lua53/Plugins/Android/libs/arm64-v8a/
|
|
cp build_v8a/libxlua.so plugin_lua53/Plugins/Android/libs/arm64-v8a/libxlua.so
|
|
|
|
mkdir -p build_x86 && cd build_x86
|
|
cmake -DANDROID_ABI=x86 -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.toolchain.cmake -DANDROID_TOOLCHAIN_NAME=x86-clang -DANDROID_NATIVE_API_LEVEL=android-9 ../
|
|
cd ..
|
|
cmake --build build_x86 --config Release
|
|
mkdir -p plugin_lua53/Plugins/Android/libs/x86/
|
|
cp build_x86/libxlua.so plugin_lua53/Plugins/Android/libs/x86/libxlua.so
|
|
|
|
|
|
|