Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51008 - sandbox/SCons/tools/scons
From: loonycyborg_at_[hidden]
Date: 2009-02-04 07:39:40


Author: loonycyborg
Date: 2009-02-04 07:39:39 EST (Wed, 04 Feb 2009)
New Revision: 51008
URL: http://svn.boost.org/trac/boost/changeset/51008

Log:
Added aliases to request building of only particular libs, e.g. "scons iostreams"

Text files modified:
   sandbox/SCons/tools/scons/boost-libs.py | 7 +++++--
   1 files changed, 5 insertions(+), 2 deletions(-)

Modified: sandbox/SCons/tools/scons/boost-libs.py
==============================================================================
--- sandbox/SCons/tools/scons/boost-libs.py (original)
+++ sandbox/SCons/tools/scons/boost-libs.py 2009-02-04 07:39:39 EST (Wed, 04 Feb 2009)
@@ -2,9 +2,12 @@
 
 def BoostLibrary(env, lib, sources):
     if env["LINK_DYNAMIC"]:
- env.SharedLibrary("boost_" + lib, sources)
+ lib_node = env.SharedLibrary("boost_" + lib, sources)
     else:
- env.StaticLibrary("boost_" + lib, sources)
+ lib_node = env.StaticLibrary("boost_" + lib, sources)
+
+ env.Alias(lib, lib_node)
+ return lib_node
 
 def exists(env):
     return True


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk