Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51079 - in sandbox/SCons: libs/thread/build tools/scons
From: loonycyborg_at_[hidden]
Date: 2009-02-07 14:25:39


Author: loonycyborg
Date: 2009-02-07 14:25:38 EST (Sat, 07 Feb 2009)
New Revision: 51079
URL: http://svn.boost.org/trac/boost/changeset/51079

Log:
Added support for Boost.Thread

Added:
   sandbox/SCons/libs/thread/build/SConscript (contents, props changed)
Text files modified:
   sandbox/SCons/tools/scons/boost-build-variants.py | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Added: sandbox/SCons/libs/thread/build/SConscript
==============================================================================
--- (empty file)
+++ sandbox/SCons/libs/thread/build/SConscript 2009-02-07 14:25:38 EST (Sat, 07 Feb 2009)
@@ -0,0 +1,12 @@
+# vi: syntax=python:et:ts=4
+Import("env")
+
+if env["THREADING"] == "multi":
+ env.BoostLibrary(
+ "thread",
+ Split("""
+ pthread/thread.cpp
+ pthread/exceptions.cpp
+ pthread/once.cpp
+ """)
+ )

Modified: sandbox/SCons/tools/scons/boost-build-variants.py
==============================================================================
--- sandbox/SCons/tools/scons/boost-build-variants.py (original)
+++ sandbox/SCons/tools/scons/boost-build-variants.py 2009-02-07 14:25:38 EST (Sat, 07 Feb 2009)
@@ -44,6 +44,7 @@
 def SetProperty(env, **kw):
     for (prop,value) in kw.items():
         getattr(features, prop, lambda x, y : None)(env, value)
+ env[prop.upper()] = value
 
 def exists():
     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