aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gp2x/build/config.sh
diff options
context:
space:
mode:
authorEugene Sandulenko2006-10-06 19:01:39 +0000
committerEugene Sandulenko2006-10-06 19:01:39 +0000
commit3d84f1104688db0b23b6fe9ccc86b587ac597837 (patch)
treedf9c7c4fdbfbbb8c1aa67d6e5f4ffc9bcdac9fb4 /backends/platform/gp2x/build/config.sh
parente75bea0c8f454bbeac842414a7ab8c4c77321801 (diff)
downloadscummvm-rg350-3d84f1104688db0b23b6fe9ccc86b587ac597837.tar.gz
scummvm-rg350-3d84f1104688db0b23b6fe9ccc86b587ac597837.tar.bz2
scummvm-rg350-3d84f1104688db0b23b6fe9ccc86b587ac597837.zip
Patch #1432376: "Very basic GP2X Backend"
svn-id: r24144
Diffstat (limited to 'backends/platform/gp2x/build/config.sh')
-rw-r--r--backends/platform/gp2x/build/config.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/backends/platform/gp2x/build/config.sh b/backends/platform/gp2x/build/config.sh
new file mode 100644
index 0000000000..b1d23b03fc
--- /dev/null
+++ b/backends/platform/gp2x/build/config.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+echo Quick script to make running configure all the time less painful
+echo and let all the build work be done from the backend/build folder.
+
+# Set the paths up here to generate the config.
+
+PATH=/tools/open2x_gcc/gcc-4.0.2-glibc-2.3.5/arm-open2x-linux/arm-open2x-linux/bin:$PATH
+PATH=/tools/open2x_gcc/gcc-4.0.2-glibc-2.3.5/arm-open2x-linux/bin:$PATH
+
+# Export the tool names for cross-compiling
+export CXX=arm-open2x-linux-g++
+export CXXFLAGS=-march=armv4t
+export CPPFLAGS=-I/tools/open2x_gcc/gcc-4.0.2-glibc-2.3.5/arm-open2x-linux/include
+export LDFLAGS=-L/tools/open2x_gcc/gcc-4.0.2-glibc-2.3.5/arm-open2x-linux/lib
+export DEFINES=-DNDEBUG
+
+# Edit the configure line to suit.
+cd ../../../..
+./configure --backend=gp2x --disable-mt32emu --host=gp2x --disable-mpeg2 --disable-flac --disable-nasm --disable-hq-scalers --with-sdl-prefix=/tools/open2x_gcc/gcc-4.0.2-glibc-2.3.5/arm-open2x-linux/bin --enable-tremor --with-tremor-prefix=/tools/open2x_gcc/gcc-4.0.2-glibc-2.3.5/arm-open2x-linux --enable-zlib --with-zlib-prefix=/tools/open2x_gcc/gcc-4.0.2-glibc-2.3.5/arm-open2x-linux --enable-mad --with-mad-prefix=/tools/open2x_gcc/gcc-4.0.2-glibc-2.3.5/arm-open2x-linux
+
+echo Generating config for GP2X complete. Check for errors. \ No newline at end of file