WEBOS: Add webos backend
IPK can be built with "make webosrelease".
This commit is contained in:
parent
72d206dc73
commit
7c5c6803ab
8 changed files with 117 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -19,6 +19,7 @@ lib*.a
|
|||
/MT32_CONTROL.ROM
|
||||
/MT32_PCM.ROM
|
||||
/ScummVM.app
|
||||
/*.ipk
|
||||
/.project
|
||||
/.cproject
|
||||
|
||||
|
|
19
backends/platform/webos/webos.mk
Normal file
19
backends/platform/webos/webos.mk
Normal file
|
@ -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
|
28
configure
vendored
28
configure
vendored
|
@ -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
|
||||
|
|
10
dists/webos/mojo/appinfo.json
Normal file
10
dists/webos/mojo/appinfo.json
Normal file
|
@ -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
|
||||
}
|
BIN
dists/webos/mojo/icon.png
Normal file
BIN
dists/webos/mojo/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
1
dists/webos/mojo/package.properties
Normal file
1
dists/webos/mojo/package.properties
Normal file
|
@ -0,0 +1 @@
|
|||
filemode.755=start,bin/scummvm
|
36
dists/webos/mojo/scummvmrc-default
Normal file
36
dists/webos/mojo/scummvmrc-default
Normal file
|
@ -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
|
27
dists/webos/mojo/start
Executable file
27
dists/webos/mojo/start
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue