aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJohn Willis2009-06-04 08:30:31 +0000
committerJohn Willis2009-06-04 08:30:31 +0000
commit929ef3e4a8eaf83e5fda75fb1047feb6647e7799 (patch)
tree4c9cf9ce363eb977371e3be19ae88b84b6f207a1 /configure
parent70effa46e55100630df3b902918c75e77d505188 (diff)
downloadscummvm-rg350-929ef3e4a8eaf83e5fda75fb1047feb6647e7799.tar.gz
scummvm-rg350-929ef3e4a8eaf83e5fda75fb1047feb6647e7799.tar.bz2
scummvm-rg350-929ef3e4a8eaf83e5fda75fb1047feb6647e7799.zip
Initial import of the GP2XWiz backend (based on the GP2X and SDL backends). Includes configure changes and one #ifdef to SDL backend. Also updates NEWS.
svn-id: r41156
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure55
1 files changed, 53 insertions, 2 deletions
diff --git a/configure b/configure
index 08b2c9d94e..c2641b31f0 100755
--- a/configure
+++ b/configure
@@ -271,9 +271,12 @@ get_system_exe_extension() {
arm-riscos)
_exeext=",ff8"
;;
+ gp2xwiz-linux)
+ _exeext=".wiz"
+ ;;
gp2x-linux)
_exeext=".gp2x"
- ;;
+ ;;
dreamcast | wii | gamecube | psp)
_exeext=".elf"
;;
@@ -548,7 +551,7 @@ Usage: $0 [OPTIONS]...
Configuration:
-h, --help display this help and exit
- --backend=BACKEND backend to build (sdl, morphos, dc, gp2x, iphone, wii, psp, null) [sdl]
+ --backend=BACKEND backend to build (sdl, morphos, dc, gp2x, gp2xwiz, iphone, wii, psp, null) [sdl]
Installation directories:
--prefix=DIR use this prefix for installing ScummVM [/usr/local]
@@ -782,6 +785,11 @@ ppc-amigaos)
_host_os=amigaos
_host_cpu=ppc
;;
+gp2xwiz)
+ _host_os=gp2xwiz-linux
+ _host_cpu=arm
+ _host_alias=arm-open2x-linux
+ ;;
gp2x)
_host_os=gp2x-linux
_host_cpu=arm
@@ -1177,6 +1185,24 @@ if test -n "$_host"; then
_ranlib=$_host-ranlib
_strip=$_host-strip
;;
+ gp2xwiz)
+ echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
+ DEFINES="$DEFINES -DUNIX -DGP2XWIZ -DNDEBUG -DUSE_ARM_SMUSH_ASM"
+ CXXFLAGS="$CXXFLAGS -mcpu=arm926ej-s -mtune=arm926ej-s"
+ LDFLAGS="$LDFLAGS"
+ _endian=little
+ _need_memalign=yes
+ type_1_byte='char'
+ type_2_byte='short'
+ type_4_byte='int'
+ _ar="$_host_alias-ar cru"
+ _ranlib=$_host_alias-ranlib
+ add_line_to_config_mk 'USE_ARM_SOUND_ASM = 1'
+ add_line_to_config_mk 'USE_ARM_SMUSH_ASM = 1'
+ _backend="gp2xwiz"
+ _build_hq_scalers="no"
+ _mt32emu="no"
+ ;;
gp2x)
echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
DEFINES="$DEFINES -DUNIX -DGP2X -DNDEBUG -DUSE_ARM_SMUSH_ASM"
@@ -1476,6 +1502,24 @@ PRE_OBJS_FLAGS := -Wl,--whole-archive
POST_OBJS_FLAGS := -Wl,--export-all-symbols -Wl,--no-whole-archive -Wl,--out-implib,./libscummvm.a
'
;;
+ gp2xwiz*)
+_def_plugin='
+#define PLUGIN_PREFIX ""
+#define PLUGIN_SUFFIX ".plugin"
+'
+_mak_plugins='
+DYNAMIC_MODULES := 1
+PLUGIN_PREFIX :=
+PLUGIN_SUFFIX := .plugin
+PLUGIN_EXTRA_DEPS = $(EXECUTABLE)
+CXXFLAGS += -DDYNAMIC_MODULES
+CXXFLAGS += -fpic
+PLUGIN_LDFLAGS += -shared
+PRE_OBJS_FLAGS := -Wl,-export-dynamic -Wl,-whole-archive
+POST_OBJS_FLAGS := -Wl,-no-whole-archive
+LIBS += -ldl
+'
+ ;;
dreamcast)
_def_plugin='
#define PLUGIN_PREFIX ""
@@ -1861,6 +1905,13 @@ case $_backend in
LDFLAGS="$LDFLAGS -static"
CXXFLAGS="$CXXFLAGS -march=armv4t"
;;
+ gp2xwiz)
+ find_sdlconfig
+ INCLUDES="$INCLUDES `$_sdlconfig --prefix="$_sdlpath" --cflags`"
+ LIBS="$LIBS `$_sdlconfig --prefix="$_sdlpath" --libs`"
+ LDFLAGS="$LDFLAGS"
+ CXXFLAGS="$CXXFLAGS -mcpu=arm926ej-s -mtune=arm926ej-s"
+ ;;
iphone)
OBJCFLAGS="$OBJCFLAGS --std=c99"
LIBS="$LIBS -lobjc -framework UIKit -framework CoreGraphics -framework OpenGLES -framework QuartzCore -framework GraphicsServices -framework CoreFoundation -framework Foundation -framework AudioToolbox -framework CoreAudio"