mirror of
https://github.com/edubart/otclient.git
synced 2025-11-03 20:26:23 +01:00
Added .bat file to compile on windows
This commit is contained in:
18
android/compile_android_unix.sh
Normal file
18
android/compile_android_unix.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
mkdir -p ../build_android && cd ../build
|
||||
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE=../android/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_NATIVE_API_LEVEL=android-16 -DANDROID_TOOLCHAIN_NAME=arm-linux-androideabi-4.6 ..
|
||||
make
|
||||
|
||||
cd ../
|
||||
|
||||
cp -r libs android/project/
|
||||
cp $ANDROID_NDK/libraries/lib/libSDL2.so android/project/libs/armeabi-v7a
|
||||
|
||||
cd android/project
|
||||
|
||||
android update project -p . --name OTClientMob --target android-16
|
||||
ant debug
|
||||
|
||||
cd bin
|
||||
adb install -r OTClientMob-debug.apk
|
||||
Reference in New Issue
Block a user