aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorneonloop2021-04-21 01:01:51 +0000
committerneonloop2021-04-21 01:01:51 +0000
commit5b6fb7f7e17ea74ccef3d703ca42ffdbf31b91a9 (patch)
tree470d89f023a8a99881cb47f923f26accb73e8fe8 /configure
parentaceaaca20cb8a59c50bbf9c137937eea63ef4778 (diff)
downloadscummvm-rg350-5b6fb7f7e17ea74ccef3d703ca42ffdbf31b91a9.tar.gz
scummvm-rg350-5b6fb7f7e17ea74ccef3d703ca42ffdbf31b91a9.tar.bz2
scummvm-rg350-5b6fb7f7e17ea74ccef3d703ca42ffdbf31b91a9.zip
Initial trimui model s support
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure57
1 files changed, 55 insertions, 2 deletions
diff --git a/configure b/configure
index b0de33e8d3..38f57e57a8 100755
--- a/configure
+++ b/configure
@@ -1001,6 +1001,7 @@ Special configuration feature:
samsungtv for Samsung TV
switch for Nintendo Switch
tizen for Samsung Tizen
+ trimui for TrimUI S
webos for HP Palm WebOS
wii for Nintendo Wii
@@ -1774,6 +1775,11 @@ tizen)
_host_cpu=arm
_host_alias=arm-linux-gnueabi
;;
+trimui)
+ _host_os=linux
+ _host_cpu=arm
+ _host_alias=arm-buildroot-linux-gnueabi
+ ;;
webos)
_host_os=webos
_host_cpu=arm
@@ -3519,6 +3525,37 @@ if test -n "$_host"; then
# Tizen relies on the OpenGL ES output thus we always enable it.
_opengl_mode=gles
;;
+ trimui)
+ _sysroot=`$CXX --print-sysroot`
+ _sdlpath=$_sysroot/usr/bin
+ append_var DEFINES "-DTRIMUI -DDINGUX -DGCW0"
+ append_var DEFINES "-DDISABLE_DOSBOX_OPL"
+ append_var DEFINES "-DREDUCE_MEMORY_USAGE"
+ append_var CXXFLAGS "-msoft-float"
+ _backend="dingux"
+ _mt32emu=no
+ _nuked_opl=no
+ _optimization_level=-Ofast
+ # Disable alsa midi to get the port build on OpenDingux toolchain
+ _alsa=no
+ # Disable cloud and SDL_Net due to outdated toolchain
+ _cloud=no
+ _sdlnet=no
+ _libcurl=no
+ _vkeybd=yes
+ _build_hq_scalers=no
+ _mad=yes
+ _build_scalers=yes
+ # Force disable vorbis on dingux, it has terrible performance compared to tremor
+ _vorbis=no
+ # Force disable seq on dingux, no way to use it and it would get enabled by default with configure
+ _seq_midi=no
+ _sdlconfig=sdl-config
+ _savegame_timestamp=no
+ _port_mk="backends/platform/dingux/dingux.mk"
+ static_libs=''
+ dynamic_libs=''
+ ;;
webos)
_backend="webos"
_port_mk="backends/platform/webos/webos.mk"
@@ -3589,7 +3626,7 @@ case $_backend in
append_var LDFLAGS "-lronin -lm"
fi
;;
- dingux | miyoo)
+ dingux | miyoo | trimui)
append_var DEFINES "-DDINGUX"
_sdl=auto
;;
@@ -3869,7 +3906,7 @@ fi
# Enable 16bit support only for backends which support it
#
case $_backend in
- 3ds | android | androidsdl | dingux | miyoo | dc | gph | iphone | ios7 | maemo | openpandora | psp | psp2 | samsungtv | sdl | switch | tizen | webos | wii)
+ 3ds | android | androidsdl | dingux | miyoo | dc | gph | iphone | ios7 | maemo | openpandora | psp | psp2 | samsungtv | sdl | switch | tizen | trimui | webos | wii)
if test "$_16bit" = auto ; then
_16bit=yes
else
@@ -5761,6 +5798,22 @@ case $_backend in
# than pick up anything unhygenic from the Android libs.
LIBS="-Wl,-Bstatic $static_libs -Wl,-Bdynamic -lgcc $system_libs -llog -landroid -lGLESv1_CM"
;;
+ dingux)
+ if test "$_host" = trimui; then
+ for lib in $LIBS; do
+ case $lib in
+ -lmad|-lvorbisidec|-logg)
+ static_libs="$static_libs $lib"
+ ;;
+ *)
+ dynamic_libs="$dynamic_libs $lib"
+ ;;
+ esac
+ done
+
+ LIBS="-Wl,-Bstatic $static_libs -Wl,-Bdynamic $dynamic_libs"
+ fi
+ ;;
n64)
# Move some libs down here, otherwise some symbols requires by libvorbis aren't found
# during linking stage