aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gp2xwiz/build/bundle.sh
diff options
context:
space:
mode:
authorJohn Willis2009-07-27 18:05:16 +0000
committerJohn Willis2009-07-27 18:05:16 +0000
commitebe6a0ac236058a72e14dfee9d5969cd497e4f1e (patch)
treecf207ac72a7e0b177d163ed4e36fd8d5b420f320 /backends/platform/gp2xwiz/build/bundle.sh
parent595501b60c86ef41397b82026b0abd0390ff75cd (diff)
downloadscummvm-rg350-ebe6a0ac236058a72e14dfee9d5969cd497e4f1e.tar.gz
scummvm-rg350-ebe6a0ac236058a72e14dfee9d5969cd497e4f1e.tar.bz2
scummvm-rg350-ebe6a0ac236058a72e14dfee9d5969cd497e4f1e.zip
GP2XWiz: Update GP2X Wiz bundle.sh to copy libraries into the distribution file from the tool chain where the libraries are broken on the device. Also add LD_LIBRARY_PATH 'hack' to launch script to ensure bundled libraries are used over system ones.
svn-id: r42847
Diffstat (limited to 'backends/platform/gp2xwiz/build/bundle.sh')
-rwxr-xr-xbackends/platform/gp2xwiz/build/bundle.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/backends/platform/gp2xwiz/build/bundle.sh b/backends/platform/gp2xwiz/build/bundle.sh
index 506dfcb742..492ba9e1c6 100755
--- a/backends/platform/gp2xwiz/build/bundle.sh
+++ b/backends/platform/gp2xwiz/build/bundle.sh
@@ -8,6 +8,8 @@ mkdir "scummvm-wiz-`date '+%Y-%m-%d'`/scummvm"
mkdir "scummvm-wiz-`date '+%Y-%m-%d'`/scummvm/saves"
mkdir "scummvm-wiz-`date '+%Y-%m-%d'`/scummvm/plugins"
mkdir "scummvm-wiz-`date '+%Y-%m-%d'`/scummvm/engine-data"
+mkdir "scummvm-wiz-`date '+%Y-%m-%d'`/scummvm/lib"
+
echo "Please put your save games in this dir" >> "scummvm-wiz-`date '+%Y-%m-%d'`/scummvm/saves/PUT_SAVES_IN_THIS_DIR"
@@ -27,6 +29,13 @@ cp ../../../../dists/pred.dic ./scummvm-wiz-`date '+%Y-%m-%d'`/scummvm/
cp ../../../../dists/engine-data/* ./scummvm-wiz-`date '+%Y-%m-%d'`/scummvm/engine-data
cp ../../../../plugins/* ./scummvm-wiz-`date '+%Y-%m-%d'`/scummvm/plugins
+# Copy over dynamic libs needed by the app (as the ones in the default filesystem are broken).
+f=`which arm-open2x-linux-g++`
+loc=`dirname "$f"`
+cp $loc/../lib/libz.so.1.2.3 ./scummvm-wiz-`date '+%Y-%m-%d'`/scummvm/lib/libz.so.1
+cp $loc/../lib/libvorbisidec.so.1.0.2 ./scummvm-wiz-`date '+%Y-%m-%d'`/scummvm/lib/libvorbisidec.so.1
+
+
echo Making Stripped exe.
arm-open2x-linux-strip ./scummvm-wiz-`date '+%Y-%m-%d'`/scummvm/scummvm.wiz