aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure54
1 files changed, 18 insertions, 36 deletions
diff --git a/configure b/configure
index 5519a0a862..367289ee12 100755
--- a/configure
+++ b/configure
@@ -2192,12 +2192,7 @@ case $_backend in
LIBS="$LIBS -lronin -lm"
;;
dingux)
- find_sdlconfig
- INCLUDES="$INCLUDES `$_sdlconfig --prefix="$_sdlpath" --cflags`"
- LIBS="$LIBS `$_sdlconfig --prefix="$_sdlpath" --libs`"
- DEFINES="$DEFINES -DSDL_BACKEND -DDINGUX"
- LDFLAGS="$LDFLAGS "
- MODULES="$MODULES backends/platform/sdl"
+ DEFINES="$DEFINES -DDINGUX"
;;
ds)
# TODO ds
@@ -2206,28 +2201,15 @@ case $_backend in
INCLUDES="$INCLUDES "'-Ibackends/platform/ds/arm9/data'
;;
gp2x)
- find_sdlconfig
- INCLUDES="$INCLUDES `$_sdlconfig --prefix="$_sdlpath" --cflags`"
- LIBS="$LIBS `$_sdlconfig --prefix="$_sdlpath" --libs`"
- LDFLAGS="$LDFLAGS"
- DEFINES="$DEFINES -DSDL_BACKEND"
;;
gph)
- find_sdlconfig
- INCLUDES="$INCLUDES `$_sdlconfig --prefix="$_sdlpath" --cflags`"
- LIBS="$LIBS `$_sdlconfig --prefix="$_sdlpath" --libs`"
- LDFLAGS="$LDFLAGS"
- DEFINES="$DEFINES -DSDL_BACKEND"
;;
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"
;;
linuxmoto)
- find_sdlconfig
- INCLUDES="$INCLUDES `$_sdlconfig --prefix="$_sdlpath" --cflags`"
- LIBS="$LIBS `$_sdlconfig --prefix="$_sdlpath" --libs`"
- DEFINES="$DEFINES -DSDL_BACKEND -DLINUXMOTO"
+ DEFINES="$DEFINES -DLINUXMOTO"
;;
n64)
INCLUDES="$INCLUDES "'-I$(N64SDK)/include'
@@ -2240,11 +2222,6 @@ case $_backend in
DEFINES="$DEFINES -DUSE_NULL_DRIVER"
;;
openpandora)
- find_sdlconfig
- INCLUDES="$INCLUDES `$_sdlconfig --prefix="$_sdlpath" --cflags`"
- LIBS="$LIBS `$_sdlconfig --prefix="$_sdlpath" --libs`"
- LDFLAGS="$LDFLAGS"
- DEFINES="$DEFINES -DSDL_BACKEND"
;;
ps2)
# TODO ps2
@@ -2261,18 +2238,8 @@ case $_backend in
LIBS="$LIBS -lpng -Wl,-Map,mapfile.txt"
;;
samsungtv)
- find_sdlconfig
- INCLUDES="$INCLUDES `$_sdlconfig --prefix="$_sdlpath" --cflags`"
- LIBS="$LIBS `$_sdlconfig --prefix="$_sdlpath" --libs`"
- DEFINES="$DEFINES -DSDL_BACKEND -DSAMSUNGTV"
+ DEFINES="$DEFINES -DSAMSUNGTV"
LDFLAGS="$LDFLAGS -shared -fpic"
- MODULES="$MODULES backends/platform/sdl"
- ;;
- sdl)
- find_sdlconfig
- INCLUDES="$INCLUDES `$_sdlconfig --prefix="$_sdlpath" --cflags`"
- LIBS="$LIBS `$_sdlconfig --prefix="$_sdlpath" --libs`"
- DEFINES="$DEFINES -DSDL_BACKEND"
;;
webos)
# There is no sdl-config in the WebOS PDK so we don't use find_sdlconfig here.
@@ -2296,6 +2263,8 @@ case $_backend in
LIBS="$LIBS -static -lSDL"
DEFINES="$DEFINES -DSDL_BACKEND"
;;
+ sdl)
+ ;;
*)
echo "support for $_backend backend not implemented in configure script yet"
exit 1
@@ -2304,6 +2273,19 @@ esac
MODULES="$MODULES backends/platform/$_backend"
#
+# Setup SDL specifics for SDL based backends
+#
+case $_backend in
+ dingux | gp2x | gph | linuxmoto | openpandora | samsungtv | sdl)
+ find_sdlconfig
+ INCLUDES="$INCLUDES `$_sdlconfig --prefix="$_sdlpath" --cflags`"
+ LIBS="$LIBS `$_sdlconfig --prefix="$_sdlpath" --libs`"
+ DEFINES="$DEFINES -DSDL_BACKEND"
+ ;;
+esac
+
+
+#
# Enable 16bit support only for backends which support it
#
case $_backend in