mail[Wesnoth-commits] r24980 - /trunk/SConstruct


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by esr on March 22, 2008 - 14:09:
Author: esr
Date: Sat Mar 22 14:09:01 2008
New Revision: 24980

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24980&view=rev
Log:
More option coverage in the scons recipe.

Modified:
    trunk/SConstruct

Modified: trunk/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=24980&r1=24979&r2=24980&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Sat Mar 22 14:09:01 2008
@@ -20,7 +20,10 @@
 opts = Options()
 opts.Add(PathOption('prefix', 'autotools-style installation prefix', 
"/usr/local"))
 opts.Add(PathOption('datadir', 'read-only architecture-independent game 
data', "wesnoth", PathOption.PathAccept))
+opts.Add(PathOption('prefsdir', 'user preferences directory', ".wesnoth", 
PathOption.PathAccept))
 opts.Add(BoolOption('debug', 'Set to build for debugging', False))
+opts.Add(BoolOption('profile', 'Set to build for debugging', False))
+opts.Add(BoolOption('strict', 'Set to strict compilation', False))
 opts.Add(BoolOption('tests', 'Set to enable static building of Wesnoth', 
False))
 opts.Add(BoolOption('python','Clear to disable Python support', True))
 opts.Add(BoolOption('lite', 'Set to build lite version of wesnoth (no music 
or large images)', False))
@@ -82,8 +85,17 @@
 else:
     env["CXXFLAGS"] = Split("-O2 -ansi")
 
+if env['profile']:
+    env["CXXFLAGS"].append("-pg")
+
+if env['strict']:
+    env["CXXFLAGS"].append("-Werror -Wno-unused -Wno-sign-compare")
+
 if env['tinygui']:
     env["CXXFLAGS"].append("-DUSE_TINY_GUI")
+
+if env['smallgui']:
+    env["CXXFLAGS"].append("-DUSE_SMALL_GUI")
 
 if env['lowmem']:
     env["CXXFLAGS"].append("-DLOW_MEM")
@@ -139,6 +151,7 @@
 
 configsyms["DATADIR"] = envdict["datadir"]
 configsyms["LOCALEDIR"] = envdict["localedir"]
+configsyms["PREFERENCES_DIR"] = envdict["prefsdir"]
 configsyms["USE_DUMMYLOCALES"] = envdict["dummy_locales"]
 #configsyms["USE_INTERNAL_DATA"] = envdict["internal_data"]
 




Related Messages


Powered by MHonArc, Updated Sat Mar 22 14:21:32 2008