2013-03-06 22:57:02 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
failed=0;
|
|
|
|
|
2013-03-12 21:33:49 +00:00
|
|
|
# check if testing mingw
|
2013-03-12 22:18:55 +00:00
|
|
|
if [ "$CC" = "i686-w64-mingw32-gcc" ]; then
|
2013-03-12 21:33:49 +00:00
|
|
|
MAKE=./cross-make-mingw.sh
|
2013-03-12 23:52:36 +00:00
|
|
|
haveExternalLibs=0
|
2013-03-12 21:33:49 +00:00
|
|
|
else
|
|
|
|
MAKE=make
|
2013-03-12 23:52:36 +00:00
|
|
|
haveExternalLibs=1
|
2013-03-12 21:33:49 +00:00
|
|
|
fi
|
|
|
|
|
2013-03-06 22:57:02 +00:00
|
|
|
# Default Build
|
2013-03-12 21:33:49 +00:00
|
|
|
($MAKE clean release) || failed=1;
|
2013-03-06 22:57:02 +00:00
|
|
|
|
|
|
|
# Test additional options
|
2013-03-12 23:52:36 +00:00
|
|
|
if [ $haveExternalLibs -eq 1 ]; then
|
2013-03-18 19:02:29 +00:00
|
|
|
($MAKE clean release USE_CODEC_VORBIS=1 USE_FREETYPE=1) || failed=1;
|
2013-03-12 23:52:36 +00:00
|
|
|
fi
|
2013-03-06 22:57:02 +00:00
|
|
|
|
|
|
|
if [ $failed -eq 1 ]; then
|
2013-03-07 00:00:03 +00:00
|
|
|
echo "Build failure.";
|
2013-03-06 22:57:02 +00:00
|
|
|
else
|
2013-03-07 00:00:03 +00:00
|
|
|
echo "All builds successful.";
|
2013-03-06 22:57:02 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
exit $failed;
|
|
|
|
|