aboutsummaryrefslogtreecommitdiff
path: root/dists/androidsdl/scummvm/AndroidBuild.sh
blob: b5dc538b9e143cb1abc390cf8f03fc10deb8f0ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

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

#ln -sf libtremor.a $LOCAL_PATH/../../../obj/local/$1/libvorbisidec.a
ln -sf libflac.a $LOCAL_PATH/../../../obj/local/$1/libFLAC.a
ln -sf libvorbis.a $LOCAL_PATH/../../../obj/local/$1/libvorbisfile.a
ln -sf libtheora.so $LOCAL_PATH/../../../obj/local/$1/libtheoradec.so
ln -sf libglshim.a $LOCAL_PATH/../../../obj/local/$1/libGL.a

if [ \! -f scummvm/config.mk ] ; then
	../setEnvironment-$1.sh sh -c "cd scummvm && env LIBS='-lflac -lvorbis -logg -lmad -lz -lgcc -ltheora -lpng -lfreetype -lfaad -lgnustl_static' ./configure --host=androidsdl-$1 --enable-zlib --enable-vorbis --enable-mad --enable-flac --enable-png --enable-theoradec --enable-vkeybd --enable-release --enable-mt32emu --disable-readline --disable-nasm --disable-timidity --disable-fluidsynth --datadir=. "
fi
../setEnvironment-$1.sh make -C scummvm -j2 && cp -f scummvm/scummvm libapplication-$1.so