aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorOystein Eftevaag2007-11-13 08:06:15 +0000
committerOystein Eftevaag2007-11-13 08:06:15 +0000
commit05b5a493f85350ec5df86dc95045fee6e193ed27 (patch)
tree84ad89c3bcc76e82b4e80281850411b0507f4351 /configure
parentc908a8a73fe5d908c23208fc259d16b647c09d56 (diff)
downloadscummvm-rg350-05b5a493f85350ec5df86dc95045fee6e193ed27.tar.gz
scummvm-rg350-05b5a493f85350ec5df86dc95045fee6e193ed27.tar.bz2
scummvm-rg350-05b5a493f85350ec5df86dc95045fee6e193ed27.zip
Initial commit of the iPhone/iPod Touch backend
svn-id: r29488
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure26
1 files changed, 24 insertions, 2 deletions
diff --git a/configure b/configure
index a817eb8a21..acd0a59c55 100755
--- a/configure
+++ b/configure
@@ -207,7 +207,7 @@ EOF
if test -n "$_host"; then
# In cross-compiling mode, we cannot run the result
- eval "$1 -o tmp_cxx_compiler$EXEEXT tmp_cxx_compiler.cpp" 2> /dev/null && rm -f tmp_cxx_compiler$EXEEXT tmp_cxx_compiler.cpp
+ eval "$1 $CXXFLAGS -o tmp_cxx_compiler$EXEEXT tmp_cxx_compiler.cpp" 2> /dev/null && rm -f tmp_cxx_compiler$EXEEXT tmp_cxx_compiler.cpp
else
eval "$1 $CXXFLAGS -o tmp_cxx_compiler$EXEEXT tmp_cxx_compiler.cpp" 2> /dev/null && eval "./tmp_cxx_compiler 2> /dev/null" && rm -f tmp_cxx_compiler$EXEEXT tmp_cxx_compiler.cpp
fi
@@ -732,6 +732,10 @@ i586-mingw32msvc)
_host_os=mingw32msvc
_host_cpu=i586
;;
+iphone)
+ _host_os=iphone
+ _host_cpu=arm
+ ;;
*)
if test -z "$_host"; then
guessed_host=`$_srcdir/config.guess`
@@ -977,6 +981,12 @@ case $_host_os in
mint*)
DEFINES="$DEFINES -DUNIX -DSYSTEM_NOT_SUPPORTING_D_TYPE"
;;
+ iphone*)
+ DEFINES="$DEFINES -DUNIX -DIPHONE"
+ LIBS="$LIBS -lobjc -framework UIKit -framework CoreGraphics -framework CoreSurface \
+ -framework LayerKit -framework GraphicsServices -framework CoreFoundation \
+ -framework Foundation -framework AudioToolbox -framework CoreAudio"
+ ;;
amigaos*)
# TODO: anything to be added here?
;;
@@ -1064,7 +1074,15 @@ if test -n "$_host"; then
_ranlib=i586-mingw32msvc-ranlib
LIBS="$LIBS -lmingw32 -lwinmm"
OBJS="$OBJS scummvmico.o"
- ;;
+ ;;
+ arm-iphone)
+ echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes"
+ _endian=little
+ _need_memalign=yes
+ type_1_byte='char'
+ type_2_byte='short'
+ type_4_byte='int'
+ ;;
*)
echo "Continuing with auto-detected values ... if you have problems, please add your target to configure."
;;
@@ -1546,6 +1564,10 @@ case $_backend in
DEFINES="$DEFINES -DX11_BACKEND"
MODULES="$MODULES backends/platform/x11"
;;
+ iphone)
+ DEFINES="$DEFINES -DIPHONE_BACKEND"
+ MODULES="$MODULES backends/platform/iphone"
+ ;;
*)
echo "support for $_backend backend not implemented in configure script yet"
exit 1