cd32_fmv: align with WinUAE
[rofl0r-PUAE.git] / build_android.sh
blob4039c3d396cb3512bff39248c1ba22aca0de25d9
1 #!/bin/sh
3 LOCAL_PATH=`dirname $0`
4 LOCAL_PATH=`cd $LOCAL_PATH && pwd`
6 ln -sf libsdl-1.2.so $LOCAL_PATH/../../../obj/local/armeabi/libSDL.so
8 if [ \! -f configure ] ; then
9 sh -c "./bootstrap.sh"
12 if [ \! -f Makefile ] ; then
14 # Set here your own NDK path if needed
15 # export PATH=$PATH:~/src/endless_space/android-ndk-r4b
16 # export PATH=$PATH:~/src/endless_space/android-ndk-r5b
18 IFS='
21 NDK=`which ndk-build`
22 NDK=`dirname $NDK`
23 LOCAL_PATH=`dirname $0`
24 LOCAL_PATH=`cd $LOCAL_PATH && pwd`
26 SCRIPT=setEnvironment-r4b.sh
27 CRYSTAX_WCHAR=
28 if [ -n "`echo $NDK | grep 'android-ndk-r[56]'`" ]; then
29 SCRIPT=setEnvironment-r5b.sh
30 if [ -n "`echo $NDK | grep 'android-ndk-r5-crystax-1'`" ]; then
31 CRYSTAX_WCHAR=1
35 env CRYSTAX_WCHAR=$CRYSTAX_WCHAR $LOCAL_PATH/$SCRIPT "$@"
37 ./android/setEnvironment.sh sh -c "./configure --build=x86_64-unknown-linux-gnu --host=arm-linux-androideabi --with-sdl --with-sdl-sound --with-sdl-gfx --with-sdl-gui"
40 make -C PUAE && mv -f src/uae libapplication.so