diff options
author | Max Horn | 2010-07-31 22:43:09 +0000 |
---|---|---|
committer | Max Horn | 2010-07-31 22:43:09 +0000 |
commit | 4b9df2203f065293ac4067f76fd58afe87d4e3c8 (patch) | |
tree | 7716aefc49bc3d862ee7494597f5c8f5a34a9ee5 /backends/platform/ds | |
parent | 450b82355d05f52bb900bcd4656ea850442b5140 (diff) | |
download | scummvm-rg350-4b9df2203f065293ac4067f76fd58afe87d4e3c8.tar.gz scummvm-rg350-4b9df2203f065293ac4067f76fd58afe87d4e3c8.tar.bz2 scummvm-rg350-4b9df2203f065293ac4067f76fd58afe87d4e3c8.zip |
DS: Add shell script which emulates old DS builds using configure&make
svn-id: r51556
Diffstat (limited to 'backends/platform/ds')
-rwxr-xr-x | backends/platform/ds/setup-builddirs.sh | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/backends/platform/ds/setup-builddirs.sh b/backends/platform/ds/setup-builddirs.sh new file mode 100755 index 0000000000..9d9cf3ffb6 --- /dev/null +++ b/backends/platform/ds/setup-builddirs.sh @@ -0,0 +1,57 @@ +#!/bin/sh + +# TODO: Allow specifying (a list of) build ids (a, b, ...) on the command line. +# TODO: Allow overriding the LOGO variable + +# TODO: Computer srcdir in a better way +srcdir=../../../`dirname $0`/.. + +BASE_PARAM="--host=ds --disable-translation --disable-all-engines" + +for build in a b c d e f g h i k; do + echo "--- Setting up build $build ---" + mkdir -p build-$build && cd build-$build + case $build in + a) + EXTRA_PARAM="--enable-scumm" + ;; + b) + EXTRA_PARAM="--enable-sky --enable-queen" + ;; + c) + EXTRA_PARAM="--enable-agos" + ;; + d) + EXTRA_PARAM="--enable-gob --enable-cine --enable-agi" + ;; + e) + EXTRA_PARAM="--enable-saga --disable-mad" + ;; + f) + EXTRA_PARAM="--enable-kyra --disable-mad" + ;; + g) + EXTRA_PARAM="--enable-lure" + ;; + h) + EXTRA_PARAM="--enable-parallaction" + ;; + i) + EXTRA_PARAM="--enable-made --disable-mad" + ;; + k) + EXTRA_PARAM="--enable-cruise --disable-mad" + ;; + *) + echo "Invalid build $build selected" + exit 1 + ;; + esac + + defname="DS_BUILD_`echo $build | tr '[a-z]' '[A-Z]'`" + CPPFLAGS="$CPPFLAGS -D$defname" + $srcdir/configure $BASE_PARAM $EXTRA_PARAM + cd .. + echo DONE + echo +done |