Author: loonycyborg
Date: Mon Jun 23 11:20:53 2008
New Revision: 27428
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27428&view=rev
Log:
Added option "fast" to scons recipe.
Modified:
trunk/SConstruct
trunk/scons/boost.py
Modified: trunk/SConstruct
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=27428&r1=27427&r2=27428&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Mon Jun 23 11:20:53 2008
@@ -72,6 +72,7 @@
PathOption('boostlibdir', 'Directory where boost libraries are
installed.', '/usr/lib'),
('boost_suffix', 'Suffix of boost libraries.'),
PathOption('gettextdir', 'Root directory of Gettext\'s installation.', "",
PathOption.PathAccept),
+ BoolOption("fast", "Make scons faster at cost of less precise dependency
tracking.", False)
)
#
@@ -139,6 +140,12 @@
if env["cachedir"]:
CacheDir(env["cachedir"])
+if env["fast"]:
+ EnsureSConsVersion(0,98)
+ env.Decider('MD5-timestamp')
+ SetOption('max_drift', 1)
+ SetOption('implicit_cache', 1)
+
#
# Check some preconditions
#
Modified: trunk/scons/boost.py
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/scons/boost.py?rev=27428&r1=27427&r2=27428&view=diff
==============================================================================
--- trunk/scons/boost.py (original)
+++ trunk/scons/boost.py Mon Jun 23 11:20:53 2008
@@ -13,7 +13,10 @@
header_name = boost_headers.get(boost_lib, boost_lib + ".hpp")
libname = "boost_" + boost_lib + env.get("boost_suffix", "")
- env.AppendUnique(CPPPATH = [boostdir], LIBPATH = [boostlibdir])
+ if env["fast"]:
+ env.AppendUnique(CXXFLAGS = "-I" + boostdir, LIBPATH = [boostlibdir])
+ else:
+ env.AppendUnique(CPPPATH = [boostdir], LIBPATH = [boostlibdir])
env.AppendUnique(LIBS = [libname])
test_program = """
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits