[Scummvm-cvs-logs] SF.net SVN: scummvm:[45076] scummvm/trunk/configure
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Wed Oct 14 14:56:14 CEST 2009
Revision: 45076
http://scummvm.svn.sourceforge.net/scummvm/?rev=45076&view=rev
Author: fingolfin
Date: 2009-10-14 12:56:14 +0000 (Wed, 14 Oct 2009)
Log Message:
-----------
Tweak configure for PS2 to disable debug mode by default and enable relase mode by default
Modified Paths:
--------------
scummvm/trunk/configure
Modified: scummvm/trunk/configure
===================================================================
--- scummvm/trunk/configure 2009-10-14 12:53:57 UTC (rev 45075)
+++ scummvm/trunk/configure 2009-10-14 12:56:14 UTC (rev 45076)
@@ -902,6 +902,16 @@
_host_os=ps2
_host_cpu=mips64r5900el
_host_alias=ee
+ if test "$_debug_build" = auto; then
+ # Disable debug mode by default. The resulting binaries are far too big in general,
+ # and one has to disable multiple engines to make it usable.
+ _debug_build=no
+ fi
+
+ if test "$_release_build" = auto; then
+ # Enable release build by default.
+ _release_build=yes
+ fi
;;
*)
if test -n "$_host"; then
@@ -1538,6 +1548,17 @@
add_line_to_config_mk 'CC = ee-gcc'
# HACK to fix linking for now. It seems ee-g++ does not handle linking correctly.
LD=ee-gcc
+
+ if test "$_debug_build" = yes; then
+ # TODO: Setup debug build properly
+ DEFINES="$DEFINES -D__PS2_DEBUG__"
+ #INCLUDES="$INCLUDES -I$(PS2GDB)/ee"
+ #LDFLAGS="$LDFLAGS -L$(PS2GDB)/lib"
+ LDFLAGS="$LDFLAGS -lps2gdbStub -lps2ip -ldebug"
+ else
+ # If not building for debug mode, strip binaries.
+ CXXFLAGS="$CXXFLAGS -s"
+ fi
;;
*)
echo "Continuing with auto-detected values ... if you have problems, please add your target to configure."
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list