Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50991 - in sandbox/SCons: . libs/date_time/build libs/filesystem/build libs/iostreams/build libs/program_options/build libs/regex/build libs/serialization/build libs/signals/build libs/system/build libs/test/build libs/wave/build tools/scons
From: loonycyborg_at_[hidden]
Date: 2009-02-03 09:08:55


Author: loonycyborg
Date: 2009-02-03 09:08:52 EST (Tue, 03 Feb 2009)
New Revision: 50991
URL: http://svn.boost.org/trac/boost/changeset/50991

Log:
Added BoostLibrary wrapper method and made use of it.

Added:
   sandbox/SCons/tools/scons/
   sandbox/SCons/tools/scons/boost-libs.py (contents, props changed)
Text files modified:
   sandbox/SCons/SConstruct | 2 +-
   sandbox/SCons/libs/date_time/build/SConscript | 4 ++--
   sandbox/SCons/libs/filesystem/build/SConscript | 4 ++--
   sandbox/SCons/libs/iostreams/build/SConscript | 4 ++--
   sandbox/SCons/libs/program_options/build/SConscript | 4 ++--
   sandbox/SCons/libs/regex/build/SConscript | 3 ++-
   sandbox/SCons/libs/serialization/build/SConscript | 4 ++--
   sandbox/SCons/libs/signals/build/SConscript | 4 ++--
   sandbox/SCons/libs/system/build/SConscript | 2 +-
   sandbox/SCons/libs/test/build/SConscript | 12 ++++++------
   sandbox/SCons/libs/wave/build/SConscript | 4 ++--
   11 files changed, 24 insertions(+), 23 deletions(-)

Modified: sandbox/SCons/SConstruct
==============================================================================
--- sandbox/SCons/SConstruct (original)
+++ sandbox/SCons/SConstruct 2009-02-03 09:08:52 EST (Tue, 03 Feb 2009)
@@ -1,6 +1,6 @@
 EnsureSConsVersion(0, 98, 5)
 
-env = Environment()
+env = Environment(toolpath = ["tools/scons"], tools = ["default", "boost-libs"])
 Export("env")
 
 SConscript("libs/SConscript")

Modified: sandbox/SCons/libs/date_time/build/SConscript
==============================================================================
--- sandbox/SCons/libs/date_time/build/SConscript (original)
+++ sandbox/SCons/libs/date_time/build/SConscript 2009-02-03 09:08:52 EST (Tue, 03 Feb 2009)
@@ -1,6 +1,6 @@
 Import("env")
-env.Library(
- "boost_date_time",
+env.BoostLibrary(
+ "date_time",
     map(Dir("gregorian").File, Split("""
         greg_month.cpp
         greg_weekday.cpp

Modified: sandbox/SCons/libs/filesystem/build/SConscript
==============================================================================
--- sandbox/SCons/libs/filesystem/build/SConscript (original)
+++ sandbox/SCons/libs/filesystem/build/SConscript 2009-02-03 09:08:52 EST (Tue, 03 Feb 2009)
@@ -1,6 +1,6 @@
 Import("env")
-env.Library(
- "boost_filesystem",
+env.BoostLibrary(
+ "filesystem",
     Split("""
         operations.cpp
         path.cpp

Modified: sandbox/SCons/libs/iostreams/build/SConscript
==============================================================================
--- sandbox/SCons/libs/iostreams/build/SConscript (original)
+++ sandbox/SCons/libs/iostreams/build/SConscript 2009-02-03 09:08:52 EST (Tue, 03 Feb 2009)
@@ -1,7 +1,7 @@
 Import("env")
 
-env.Library(
- "boost_iostreams",
+env.BoostLibrary(
+ "iostreams",
    Split("""
    file_descriptor.cpp
    mapped_file.cpp

Modified: sandbox/SCons/libs/program_options/build/SConscript
==============================================================================
--- sandbox/SCons/libs/program_options/build/SConscript (original)
+++ sandbox/SCons/libs/program_options/build/SConscript 2009-02-03 09:08:52 EST (Tue, 03 Feb 2009)
@@ -1,6 +1,6 @@
 Import("env")
-env.Library(
- "boost_program_options",
+env.BoostLibrary(
+ "program_options",
     Split("""
     cmdline.cpp
     config_file.cpp

Modified: sandbox/SCons/libs/regex/build/SConscript
==============================================================================
--- sandbox/SCons/libs/regex/build/SConscript (original)
+++ sandbox/SCons/libs/regex/build/SConscript 2009-02-03 09:08:52 EST (Tue, 03 Feb 2009)
@@ -1,5 +1,6 @@
 Import("env")
-env.Library("boost_regex",
+env.BoostLibrary(
+ "regex",
     Split("""
     c_regex_traits.cpp
     cpp_regex_traits.cpp

Modified: sandbox/SCons/libs/serialization/build/SConscript
==============================================================================
--- sandbox/SCons/libs/serialization/build/SConscript (original)
+++ sandbox/SCons/libs/serialization/build/SConscript 2009-02-03 09:08:52 EST (Tue, 03 Feb 2009)
@@ -1,6 +1,6 @@
 Import("env")
-env.Library(
- "boost_serialization",
+env.BoostLibrary(
+ "serialization",
     Split("""
     basic_archive.cpp
     basic_iarchive.cpp

Modified: sandbox/SCons/libs/signals/build/SConscript
==============================================================================
--- sandbox/SCons/libs/signals/build/SConscript (original)
+++ sandbox/SCons/libs/signals/build/SConscript 2009-02-03 09:08:52 EST (Tue, 03 Feb 2009)
@@ -1,6 +1,6 @@
 Import("env")
-env.Library(
- "boost_signals",
+env.BoostLibrary(
+ "signals",
     Split("""
     trackable.cpp
     connection.cpp

Modified: sandbox/SCons/libs/system/build/SConscript
==============================================================================
--- sandbox/SCons/libs/system/build/SConscript (original)
+++ sandbox/SCons/libs/system/build/SConscript 2009-02-03 09:08:52 EST (Tue, 03 Feb 2009)
@@ -1,2 +1,2 @@
 Import("env")
-env.Library("boost_system", "error_code.cpp")
+env.BoostLibrary("system", "error_code.cpp")

Modified: sandbox/SCons/libs/test/build/SConscript
==============================================================================
--- sandbox/SCons/libs/test/build/SConscript (original)
+++ sandbox/SCons/libs/test/build/SConscript 2009-02-03 09:08:52 EST (Tue, 03 Feb 2009)
@@ -1,14 +1,14 @@
 Import("env")
-env.Library(
- "boost_prg_exec_monitor",
+env.BoostLibrary(
+ "prg_exec_monitor",
     Split("""
     execution_monitor.cpp
     debug.cpp
     cpp_main.cpp
     """)
     )
-env.Library(
- "boost_test_exec_monitor",
+env.BoostLibrary(
+ "test_exec_monitor",
     Split("""
     compiler_log_formatter.cpp
     debug.cpp
@@ -29,8 +29,8 @@
     xml_report_formatter.cpp
     """)
     )
-env.Library(
- "boost_unit_test_framework",
+env.BoostLibrary(
+ "unit_test_framework",
     Split("""
     compiler_log_formatter.cpp
     debug.cpp

Modified: sandbox/SCons/libs/wave/build/SConscript
==============================================================================
--- sandbox/SCons/libs/wave/build/SConscript (original)
+++ sandbox/SCons/libs/wave/build/SConscript 2009-02-03 09:08:52 EST (Tue, 03 Feb 2009)
@@ -1,6 +1,6 @@
 Import("env")
-env.Library(
- "boost_wave",
+env.BoostLibrary(
+ "wave",
     Split("""
     instantiate_cpp_exprgrammar.cpp
     instantiate_cpp_grammar.cpp

Added: sandbox/SCons/tools/scons/boost-libs.py
==============================================================================
--- (empty file)
+++ sandbox/SCons/tools/scons/boost-libs.py 2009-02-03 09:08:52 EST (Tue, 03 Feb 2009)
@@ -0,0 +1,10 @@
+# vi: syntax=python:et:ts=4
+
+def BoostLibrary(env, lib, sources):
+ env.StaticLibrary("boost_" + lib, sources)
+
+def exists(env):
+ return True
+
+def generate(env):
+ env.AddMethod(BoostLibrary)


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