aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorEugene Sandulenko2006-10-06 19:01:39 +0000
committerEugene Sandulenko2006-10-06 19:01:39 +0000
commit3d84f1104688db0b23b6fe9ccc86b587ac597837 (patch)
treedf9c7c4fdbfbbb8c1aa67d6e5f4ffc9bcdac9fb4 /configure
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 'configure')
-rwxr-xr-xconfigure29
1 files changed, 28 insertions, 1 deletions
diff --git a/configure b/configure
index e558a6328c..2a5cf0ba8c 100755
--- a/configure
+++ b/configure
@@ -303,7 +303,7 @@ Usage: $0 [OPTIONS]...
Configuration:
-h, --help display this help and exit
- --backend=BACKEND backend to build (sdl, x11, morphos, dc, gp32, null) [sdl]
+ --backend=BACKEND backend to build (sdl, x11, morphos, dc, gp32, gp2x, null) [sdl]
Installation directories:
--prefix=DIR use this prefix for installing ScummVM [/usr/local]
@@ -527,6 +527,10 @@ ppc-amigaos)
_host_os=amigaos
_host_cpu=ppc
;;
+gp2x)
+ _host_os=gp2x-linux
+ _host_cpu=arm
+ ;;
*)
guessed_host=`$_srcdir/config.guess`
_host_cpu=`echo $guessed_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
@@ -545,6 +549,9 @@ mingw* | cygwin* | os2-emx*)
arm-riscos)
EXEEXT=",ff8"
;;
+gp2x-linux)
+ EXEEXT=".gpe"
+ ;;
*)
EXEEXT=""
;;
@@ -704,6 +711,18 @@ if test -n "$_host"; then
type_2_byte='short'
type_4_byte='int'
;;
+ gp2x)
+ echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
+ DEFINES="$DEFINES -DUNIX -DGP2X"
+ _def_endianness='#define SCUMM_LITTLE_ENDIAN'
+ _def_align='#define SCUMM_NEED_ALIGNMENT'
+ type_1_byte='char'
+ type_2_byte='short'
+ type_4_byte='int'
+ _backend="gp2x"
+ _mak_hq_scalers='DISABLE_HQ_SCALERS = 1'
+ _build_hq_scalers="no"
+ ;;
ppc-amigaos)
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
_def_endianness='#define SCUMM_BIG_ENDIAN'
@@ -1288,6 +1307,14 @@ case $_backend in
LIBS="$LIBS `$_sdlconfig --libs`"
MODULES="$MODULES backends/platform/sdl"
;;
+ gp2x)
+ find_sdlconfig
+ INCLUDES="$INCLUDES `$_sdlconfig --cflags`"
+ LIBS="$LIBS `$_sdlconfig --libs`"
+ LDFLAGS="$LDFLAGS -static"
+ CXXFLAGS="$CXXFLAGS -march=armv4t"
+ MODULES="$MODULES backends/platform/gp2x"
+ ;;
x11)
INCLUDES="$INCLUDES -I/usr/X11R6/include"
LIBS="$LIBS -lpthread -lXext -lX11"