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"]
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits