CONFIGURE: Add -DGPH_DEVICE to all the GPH device targets.

Also add wrapper around the plugin dir. for the OpenPandora from 1.2.0 branch.

svn-id: r53640
This commit is contained in:
John Willis 2010-10-20 13:03:19 +00:00
parent 4e936522ee
commit f835d49e2a

26
configure vendored
View file

@ -676,7 +676,7 @@ Fine tuning of the installation directories:
Special configuration feature: Special configuration feature:
--host=HOST cross-compile to target HOST (arm-linux, ...) --host=HOST cross-compile to target HOST (arm-linux, ...)
special targets: android for Android special targets: android for Android
caanoo for GP2X Caanoo caanoo for Caanoo
dingux for Dingux dingux for Dingux
dreamcast for Sega Dreamcast dreamcast for Sega Dreamcast
ds for Nintendo DS ds for Nintendo DS
@ -1626,9 +1626,9 @@ if test -n "$_host"; then
_need_memalign=yes _need_memalign=yes
;; ;;
caanoo) caanoo)
# This uses the GPH backend.
DEFINES="$DEFINES -DGPH_DEVICE"
DEFINES="$DEFINES -DCAANOO -DREDUCE_MEMORY_USAGE" DEFINES="$DEFINES -DCAANOO -DREDUCE_MEMORY_USAGE"
# Disable DOSBOX OPL for now.
DEFINES="$DEFINES -DDISABLE_DOSBOX_OPL"
if test "$_debug_build" = yes; then if test "$_debug_build" = yes; then
DEFINES="$DEFINES -DGPH_DEBUG" DEFINES="$DEFINES -DGPH_DEBUG"
else else
@ -1717,9 +1717,9 @@ if test -n "$_host"; then
add_line_to_config_h "#define USE_WII_DI" add_line_to_config_h "#define USE_WII_DI"
;; ;;
gp2x) gp2x)
# This uses the GPH backend.
DEFINES="$DEFINES -DGPH_DEVICE"
DEFINES="$DEFINES -DGP2X -DREDUCE_MEMORY_USAGE" DEFINES="$DEFINES -DGP2X -DREDUCE_MEMORY_USAGE"
# Disable DOSBOX OPL for now.
DEFINES="$DEFINES -DDISABLE_DOSBOX_OPL"
if test "$_debug_build" = yes; then if test "$_debug_build" = yes; then
DEFINES="$DEFINES -DGPH_DEBUG" DEFINES="$DEFINES -DGPH_DEBUG"
fi fi
@ -1741,9 +1741,9 @@ if test -n "$_host"; then
_port_mk="backends/platform/gp2x/gp2x-bundle.mk" _port_mk="backends/platform/gp2x/gp2x-bundle.mk"
;; ;;
gp2xwiz) gp2xwiz)
# This uses the GPH backend.
DEFINES="$DEFINES -DGPH_DEVICE"
DEFINES="$DEFINES -DGP2XWIZ -DREDUCE_MEMORY_USAGE" DEFINES="$DEFINES -DGP2XWIZ -DREDUCE_MEMORY_USAGE"
# Disable DOSBOX OPL for now.
DEFINES="$DEFINES -DDISABLE_DOSBOX_OPL"
if test "$_debug_build" = yes; then if test "$_debug_build" = yes; then
DEFINES="$DEFINES -DGPH_DEBUG" DEFINES="$DEFINES -DGPH_DEBUG"
fi fi
@ -1861,8 +1861,6 @@ if test -n "$_host"; then
;; ;;
openpandora) openpandora)
DEFINES="$DEFINES -DOPENPANDORA -DREDUCE_MEMORY_USAGE" DEFINES="$DEFINES -DOPENPANDORA -DREDUCE_MEMORY_USAGE"
# Disable DOSBOX OPL for now.
DEFINES="$DEFINES -DDISABLE_DOSBOX_OPL"
if test "$_release_build" = no; then if test "$_release_build" = no; then
DEFINES="$DEFINES -DOP_DEBUG" DEFINES="$DEFINES -DOP_DEBUG"
else else
@ -2675,8 +2673,16 @@ test "x$prefix" = xNONE && prefix=/usr/local
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
DEFINES="$DEFINES -DDATA_PATH=\\\"$datadir\\\"" DEFINES="$DEFINES -DDATA_PATH=\\\"$datadir\\\""
DEFINES="$DEFINES -DPLUGIN_DIRECTORY=\\\"$libdir/scummvm\\\""
case $_backend in
openpandora)
# Add ../plugins as a path so plugins can be found when running from a .PND.
DEFINES="$DEFINES -DPLUGIN_DIRECTORY=\\\"../plugins\\\""
;;
*)
DEFINES="$DEFINES -DPLUGIN_DIRECTORY=\\\"$libdir/scummvm\\\""
;;
esac
# #
# Set variables for profiling. # Set variables for profiling.