Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53012 - in branches/release: libs/flyweight libs/flyweight/test tools/build/CMake
From: troy_at_[hidden]
Date: 2009-05-14 22:15:56


Author: troy
Date: 2009-05-14 22:15:55 EDT (Thu, 14 May 2009)
New Revision: 53012
URL: http://svn.boost.org/trac/boost/changeset/53012

Log:
tests for flyweight... one is broken due to only-multithreaded-and-shared requirement
Added:
   branches/release/libs/flyweight/CMakeLists.txt (contents, props changed)
   branches/release/libs/flyweight/module.cmake (contents, props changed)
   branches/release/libs/flyweight/test/CMakeLists.txt (contents, props changed)
Text files modified:
   branches/release/tools/build/CMake/BoostCore.cmake | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Added: branches/release/libs/flyweight/CMakeLists.txt
==============================================================================
--- (empty file)
+++ branches/release/libs/flyweight/CMakeLists.txt 2009-05-14 22:15:55 EDT (Thu, 14 May 2009)
@@ -0,0 +1,12 @@
+# Add a library target to the build system
+boost_library_project(
+ flyweight
+ TESTDIRS test
+ HEADERS flyweight flyweight.hpp
+ # DOCDIRS
+ DESCRIPTION "Flyweights are small-sized handle classes granting constant access to shared common data, thus allowing for the management of large amounts of entities within reasonable memory limits. Boost.Flyweight makes it easy to use this common programming idiom by providing the class template flyweight<T>, which acts as a drop-in replacement for const T."
+ MODULARIZED
+ AUTHORS "Joaquín M López Muñoz <fixme -at- fixme.com>"
+)
+
+

Added: branches/release/libs/flyweight/module.cmake
==============================================================================
--- (empty file)
+++ branches/release/libs/flyweight/module.cmake 2009-05-14 22:15:55 EDT (Thu, 14 May 2009)
@@ -0,0 +1 @@
+boost_module(flyweight DEPENDS mpl parameter preprocessor interprocess type_traits)

Added: branches/release/libs/flyweight/test/CMakeLists.txt
==============================================================================
--- (empty file)
+++ branches/release/libs/flyweight/test/CMakeLists.txt 2009-05-14 22:15:55 EDT (Thu, 14 May 2009)
@@ -0,0 +1,29 @@
+# Boost.Flyweight tests Jamfile
+#
+# Copyright 2006-2008 Joaquín M López Muñoz.
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+#
+# See http://www.boost.org/libs/flyweight for library home page.
+
+boost_add_library(intermod_holder_dll
+ intermod_holder_dll.cpp
+ COMPILE_FLAGS "-DBOOST_FLYWEIGHT_TEST_INTERMOD_HOLDER_DLL_SOURCE=1"
+ NO_SINGLE_THREADED
+ NO_STATIC
+ NO_INSTALL
+ )
+
+boost_test_run(test_assoc_cont_factory test_assoc_cont_factory.cpp test_assoc_cont_fact_main.cpp)
+boost_test_run(test_basic test_basic.cpp test_basic_main.cpp)
+boost_test_run(test_custom_factory test_custom_factory.cpp test_custom_factory_main.cpp)
+boost_test_run(test_init test_init.cpp test_init_main.cpp)
+
+boost_test_run(test_intermod_holder test_intermod_holder.cpp test_intermod_holder_main.cpp
+ DEPENDS intermod_holder_dll)
+
+boost_test_run(test_multictor test_multictor.cpp test_multictor_main.cpp)
+boost_test_run(test_no_locking test_no_locking.cpp test_no_locking_main.cpp)
+boost_test_run(test_no_tracking test_no_tracking.cpp test_no_tracking_main.cpp)
+boost_test_run(test_set_factory test_set_factory.cpp test_set_factory_main.cpp)

Modified: branches/release/tools/build/CMake/BoostCore.cmake
==============================================================================
--- branches/release/tools/build/CMake/BoostCore.cmake (original)
+++ branches/release/tools/build/CMake/BoostCore.cmake 2009-05-14 22:15:55 EDT (Thu, 14 May 2009)
@@ -632,7 +632,7 @@
 #
 # If any of the features listed conflict with this library, no new
 # targets will be built. For example, if the library provides the
-# option NOT_MULTI_THREADED, and one of the features provided is
+# option NO_MULTI_THREADED, and one of the features provided is
 # MULTI_THREADED, this macro will essentially be a no-op.
 macro(boost_library_variant LIBNAME)
   set(THIS_VARIANT_COMPILE_FLAGS "${THIS_LIB_COMPILE_FLAGS}")
@@ -1050,7 +1050,7 @@
 # [feature_LINK_LIBS linklibs]
 # [DEPENDS libdepend1 libdepend2 ...]
 # [MODULE]
-# [NOT_feature]
+# [NO_feature]
 # [EXTRA_VARIANTS variant1 variant2 ...]
 # [FORCE_VARIANTS variant1])
 #


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