[cig-commits] commit: Adding the ability to build sub-directories

Mercurial hg at geodynamics.org
Mon Nov 24 11:27:56 PST 2008


changeset:   16:824ddd11c13d
user:        LukeHodkinson
date:        Mon Aug 11 10:40:30 2008 +0000
files:       SConfig/SConscript
description:
Adding the ability to build sub-directories
individually. Libraries will be updated with
any changes made after any individual path
is built. Use it like this:

  scons target=<path to build>

For example:

  scons target=StGermain/Base

Will build everything under StGermain/Base.


diff -r bab7956d9531 -r 824ddd11c13d SConfig/SConscript
--- a/SConfig/SConscript	Fri Aug 08 04:47:03 2008 +0000
+++ b/SConfig/SConscript	Mon Aug 11 10:40:30 2008 +0000
@@ -280,3 +280,8 @@ env['_INTLIBS'] = '${_interleave(INTLIBS
 env['_INTLIBS'] = '${_interleave(INTLIBS, __env__)}'
 env['LINKCOM'] += ' $STATICLIBS $_INTLIBS' # Needed for static libs. Thanks SCons. :(
 env['SHLINKCOM'] += ' $STATICLIBS $_INTLIBS' # Needed for static libs. Thanks SCons. :(
+
+#
+# Scan command line targets to see if the user has specified any directories
+# they want singled out to be built alone.
+env['dir_target'] = ARGUMENTS.get('target', '')



More information about the CIG-COMMITS mailing list