File: AndroidBuild.sh

package info (click to toggle)
aranym 1.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,488 kB
  • sloc: cpp: 178,117; ansic: 170,405; perl: 5,637; sh: 5,547; asm: 2,282; makefile: 1,324; objc: 218
file content (33 lines) | stat: -rwxr-xr-x 946 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

LOCAL_PATH=`dirname $0`
LOCAL_PATH=`cd $LOCAL_PATH && pwd`

ln -sf libsdl-1.2.so $LOCAL_PATH/../../../obj/local/armeabi-v7a/libSDL.so
ln -sf libsdl-1.2.so $LOCAL_PATH/../../../obj/local/armeabi-v7a/libpthread.so
ln -sf libsdl_image.so $LOCAL_PATH/../../../obj/local/armeabi-v7a/libSDL_image.so

if [ "$1" = armeabi-v7a ]; then
if [ \! -f aranym/configure ] ; then
	export NO_CONFIGURE=1
	sh -c "cd aranym && ./autogen.sh"
fi

configure_options="--host=arm-linux-androideabi \
	--prefix=/storage/sdcard/Android/data/org.aranym.sdl/files \
	--disable-opengl \
	--disable-nfclipbrd \
	--disable-cxx-exceptions \
	--disable-ethernet \
	--disable-ata-cdrom \
	--disable-parport \
	--disable-sdl2 \
	--enable-disasm=builtin \
	"

if [ \! -f aranym/Makefile ] ; then
  $LOCAL_PATH/../setEnvironment-armeabi-v7a.sh sh -c "cd aranym && ./configure $configure_options"
fi

make -C aranym && cp aranym/src/aranym libapplication-armeabi-v7a.so
fi