aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorKlaus Reimer2011-04-02 22:36:18 +0200
committerMax Horn2011-04-12 11:05:01 +0200
commitf8a73665d3c23e1b0c0176af76a1f5a8bf36befe (patch)
treeaf8595018c0d1bdafeaecd7d02913a86fb6b70b1 /configure
parent214f93e6aa7ea698672946f9650103e96ab37109 (diff)
downloadscummvm-rg350-f8a73665d3c23e1b0c0176af76a1f5a8bf36befe.tar.gz
scummvm-rg350-f8a73665d3c23e1b0c0176af76a1f5a8bf36befe.tar.bz2
scummvm-rg350-f8a73665d3c23e1b0c0176af76a1f5a8bf36befe.zip
WEBOS: Add build support for webos
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure26
1 files changed, 26 insertions, 0 deletions
diff --git a/configure b/configure
index 63669bb276..da3640ac99 100755
--- a/configure
+++ b/configure
@@ -698,6 +698,7 @@ Special configuration feature:
ps2 for PlayStation 2
psp for PlayStation Portable
samsungtv for Samsung TV
+ webos for HP Palm WebOS
wii for Nintendo Wii
wince for Windows CE
@@ -1134,6 +1135,11 @@ samsungtv)
_host_cpu=arm
_host_alias=arm-linux-gnueabi
;;
+webos)
+ _host_os=webos
+ _host_cpu=arm
+ _host_alias=arm-none-linux-gnueabi
+ ;;
wii)
_host_os=wii
_host_cpu=ppc
@@ -1241,6 +1247,16 @@ psp)
exit 1
fi
;;
+webos)
+ if test -z "$WEBOS_SDK"; then
+ echo "Please set WEBOS_SDK in your environment. export WEBOS_SDK=<path to WebOS SDK>"
+ exit 1
+ fi
+ if test -z "$WEBOS_PDK"; then
+ echo "Please set WEBOS_PDK in your environment. export WEBOS_PDK=<path to WebOS PDK>"
+ exit 1
+ fi
+ ;;
*)
;;
esac
@@ -1651,6 +1667,16 @@ case $_host_os in
LIBS="$LIBS -lnsl -lsocket"
_unix=yes
;;
+ webos)
+ CXXFLAGS="$CXXFLAGS --sysroot=$WEBOS_PDK/arm-gcc/sysroot"
+ CXXFLAGS="$CXXFLAGS -I$WEBOS_PDK/include/SDL"
+ LDFLAGS="$LDFLAGS -L$WEBOS_PDK/device/lib"
+ LDFLAGS="$LDFLAGS -Wl,--allow-shlib-undefined"
+ LIBS="$LIBS -lSDL -lpdl"
+ add_line_to_config_mk "WEBOS_SDK = $WEBOS_SDK"
+ _unix=yes
+ _seq_midi=no
+ ;;
wii)
CXXFLAGS="$CXXFLAGS -Os -mrvl -mcpu=750 -meabi -mhard-float"
CXXFLAGS="$CXXFLAGS -ffunction-sections -fdata-sections -fmodulo-sched"