mirror of
https://github.com/libretro/PUAE.git
synced 2024-11-23 07:49:45 +00:00
41 lines
1.0 KiB
Bash
Executable File
41 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
LOCAL_PATH=`dirname $0`
|
|
LOCAL_PATH=`cd $LOCAL_PATH && pwd`
|
|
|
|
ln -sf libsdl-1.2.so $LOCAL_PATH/../../../obj/local/armeabi/libSDL.so
|
|
|
|
if [ \! -f configure ] ; then
|
|
sh -c "./bootstrap.sh"
|
|
fi
|
|
|
|
if [ \! -f Makefile ] ; then
|
|
|
|
# Set here your own NDK path if needed
|
|
# export PATH=$PATH:~/src/endless_space/android-ndk-r4b
|
|
# export PATH=$PATH:~/src/endless_space/android-ndk-r5b
|
|
|
|
IFS='
|
|
'
|
|
|
|
NDK=`which ndk-build`
|
|
NDK=`dirname $NDK`
|
|
LOCAL_PATH=`dirname $0`
|
|
LOCAL_PATH=`cd $LOCAL_PATH && pwd`
|
|
|
|
SCRIPT=setEnvironment-r4b.sh
|
|
CRYSTAX_WCHAR=
|
|
if [ -n "`echo $NDK | grep 'android-ndk-r[56]'`" ]; then
|
|
SCRIPT=setEnvironment-r5b.sh
|
|
if [ -n "`echo $NDK | grep 'android-ndk-r5-crystax-1'`" ]; then
|
|
CRYSTAX_WCHAR=1
|
|
fi
|
|
fi
|
|
|
|
env CRYSTAX_WCHAR=$CRYSTAX_WCHAR $LOCAL_PATH/$SCRIPT "$@"
|
|
|
|
./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"
|
|
fi
|
|
|
|
make -C PUAE && mv -f src/uae libapplication.so
|