diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | backends/platform/webos/webos.mk | 19 | ||||
-rwxr-xr-x | configure | 28 | ||||
-rw-r--r-- | dists/webos/mojo/appinfo.json | 10 | ||||
-rw-r--r-- | dists/webos/mojo/icon.png | bin | 0 -> 3290 bytes | |||
-rw-r--r-- | dists/webos/mojo/package.properties | 1 | ||||
-rw-r--r-- | dists/webos/mojo/scummvmrc-default | 36 | ||||
-rwxr-xr-x | dists/webos/mojo/start | 27 |
8 files changed, 117 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore index 07b62271ab..4973581993 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ lib*.a /MT32_CONTROL.ROM /MT32_PCM.ROM /ScummVM.app +/*.ipk /.project /.cproject diff --git a/backends/platform/webos/webos.mk b/backends/platform/webos/webos.mk new file mode 100644 index 0000000000..6e8997ca74 --- /dev/null +++ b/backends/platform/webos/webos.mk @@ -0,0 +1,19 @@ +# WebOS specific build targets + +PATH_DIST = $(srcdir)/dists/webos +PATH_RESOURCES = $(PATH_DIST)/mojo + +STAGING_DIR=STAGING/org.scummvm + +webosrelease: + rm -rf $(STAGING_DIR) + rm -f *.ipk + mkdir -p $(STAGING_DIR) + mkdir -p $(STAGING_DIR)/bin + mkdir -p $(STAGING_DIR)/lib + cp -f $(PATH_RESOURCES)/* $(STAGING_DIR) + cp -f scummvm $(STAGING_DIR)/bin + $(WEBOS_SDK)/bin/palm-package $(STAGING_DIR) + rm -rf STAGING + +.PHONY: webosrelease @@ -655,7 +655,7 @@ Configuration: -h, --help display this help and exit --backend=BACKEND backend to build (android, dc, dingux, ds, gp2x, gph, iphone, linuxmoto, maemo, n64, null, openpandora, ps2, - psp, samsungtv, sdl, symbian, wii, wince) [sdl] + psp, samsungtv, sdl, symbian, webos, wii, wince) [sdl] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX @@ -1669,11 +1669,8 @@ case $_host_os in ;; webos) CXXFLAGS="$CXXFLAGS --sysroot=$WEBOS_PDK/arm-gcc/sysroot" - CXXFLAGS="$CXXFLAGS -I$WEBOS_PDK/include/SDL" - CXXFLAGS="$CXXFLAGS -DWEBOS" 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 @@ -2056,6 +2053,21 @@ if test -n "$_host"; then _mt32emu=no _vkeybd=yes ;; + webos) + _unix=yes + _need_memalign=yes + add_line_to_config_mk 'USE_ARM_SOUND_ASM = 1' + add_line_to_config_mk 'USE_ARM_SMUSH_ASM = 1' + add_line_to_config_mk 'USE_ARM_GFX_ASM = 1' + add_line_to_config_mk 'USE_ARM_COSTUME_ASM = 1' + add_line_to_config_mk 'USE_ARM_SCALER_ASM = 1' + _backend="webos" + _port_mk="backends/platform/webos/webos.mk" + _build_scalers=no + _timidity=no + _mt32emu=no + _seq_midi=no + ;; wii) _endian=big _need_memalign=yes @@ -2142,7 +2154,7 @@ fi # Enable 16bit support only for backends which support it # case $_backend in - android | dingux | dreamcast | gph | openpandora | psp | samsungtv | sdl | wii) + android | dingux | dreamcast | gph | openpandora | psp | samsungtv | sdl | webos | wii) if test "$_16bit" = auto ; then _16bit=yes else @@ -3118,6 +3130,12 @@ case $_backend in LIBS="$LIBS `$_sdlconfig --prefix="$_sdlpath" --libs`" DEFINES="$DEFINES -DSDL_BACKEND" ;; + webos) + INCLUDES="$INCLUDES -I$WEBOS_PDK/include/SDL" + LIBS="$LIBS -lSDL -lpdl" + DEFINES="$DEFINES -DWEBOS -DSDL_BACKEND" + MODULES="$MODULES backends/platform/sdl" + ;; wii) DEFINES="$DEFINES -D__WII__ -DGEKKO" case $_host_os in diff --git a/dists/webos/mojo/appinfo.json b/dists/webos/mojo/appinfo.json new file mode 100644 index 0000000000..1008dfe82c --- /dev/null +++ b/dists/webos/mojo/appinfo.json @@ -0,0 +1,10 @@ +{ + "id": "org.scummvm", + "version": "1.3.0001", + "vendor": "ScummVM Team", + "type": "pdk", + "main": "start", + "title": "ScummVM", + "icon": "icon.png", + "requiredMemory": 64 +} diff --git a/dists/webos/mojo/icon.png b/dists/webos/mojo/icon.png Binary files differnew file mode 100644 index 0000000000..eb9d8e37e7 --- /dev/null +++ b/dists/webos/mojo/icon.png diff --git a/dists/webos/mojo/package.properties b/dists/webos/mojo/package.properties new file mode 100644 index 0000000000..962e809ec6 --- /dev/null +++ b/dists/webos/mojo/package.properties @@ -0,0 +1 @@ +filemode.755=start,bin/scummvm diff --git a/dists/webos/mojo/scummvmrc-default b/dists/webos/mojo/scummvmrc-default new file mode 100644 index 0000000000..2961fb2733 --- /dev/null +++ b/dists/webos/mojo/scummvmrc-default @@ -0,0 +1,36 @@ +[scummvm] +mute=false +speech_volume=192 +native_mt32=false +midi_gain=100 +talkspeed=60 +subtitles=true +multi_midi=false +fullscreen=true +sfx_volume=192 +music_volume=192 +autosave_period=300 +music_driver=auto +opl_driver=auto +aspect_ratio=false +versioninfo=1.0.0 +speech_mute=false +enable_gs=false +browser_lastpath=/media/internal/ScummVM/Games +themepath=/media/internal/ScummVM/Themes +savepath=/media/internal/ScummVM/Saves +extrapath=/media/internal/ScummVM/Extras +pluginspath=/media/internal/ScummVM/Plugins +vkeybdpath=/media/cryptofs/apps/usr/palm/applications/org.scummvm/share/scummvm + +[keymapper] +keymap_global_VIRT=C+k +keymap_global_SKCT=A+ESCAPE +keymap_global_REMP=AT +keymap_global_MENU=A+FORWARD +keymap_gui_CLOS=A+ESCAPE +keymap_gui_CLIK=RETURN +keymap_global_PAUS=SPACE +keymap_global_SKLI=PERIOD +keymap_gui_VIRT=C+k +keymap_gui_REMP=AT diff --git a/dists/webos/mojo/start b/dists/webos/mojo/start new file mode 100755 index 0000000000..5a338e0b62 --- /dev/null +++ b/dists/webos/mojo/start @@ -0,0 +1,27 @@ +#!/bin/sh + +# Get app directory +APPDIR=$(readlink -f $(dirname $0)) + +# Create the initial ScummVM directory structure +mkdir -p /media/internal/ScummVM/Games +mkdir -p /media/internal/ScummVM/Saves +mkdir -p /media/internal/ScummVM/Screenshots +mkdir -p /media/internal/ScummVM/Themes +mkdir -p /media/internal/ScummVM/Extras +mkdir -p /media/internal/ScummVM/Plugins + +# Install default configuration file if not already present +if [ ! -f $APPDIR/scummvmrc ] +then + cp $APPDIR/scummvmrc-default $APPDIR/scummvmrc +fi + +# Change into the screenshots directory so screenshots are saved there +cd /media/internal/ScummVM/Screenshots + +# Set library path so the app finds its custom shared libraries +export LD_LIBRARY_PATH=$APPDIR/lib + +# Run the game +exec $APPDIR/bin/scummvm -c $APPDIR/scummvmrc |