Boost logo

Boost-Commit :

From: jefffaust_at_[hidden]
Date: 2007-05-29 00:37:08


Author: jefffaust
Date: 2007-05-29 00:37:06 EDT (Tue, 29 May 2007)
New Revision: 4349
URL: http://svn.boost.org/trac/boost/changeset/4349

Log:
Allow sandbox tests to be separate from boost install.

Added:
   sandbox/explore/libs/explore/project-root.jam
Text files modified:
   sandbox/explore/libs/explore/test/Jamfile.v2 | 4 +---
   1 files changed, 1 insertions(+), 3 deletions(-)

Added: sandbox/explore/libs/explore/project-root.jam
==============================================================================
--- (empty file)
+++ sandbox/explore/libs/explore/project-root.jam 2007-05-29 00:37:06 EDT (Tue, 29 May 2007)
@@ -0,0 +1,61 @@
+#
+# Copyright (c) 2006 João Abecasis
+#
+# 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)
+#
+
+##
+## IMPORTANT NOTE: This file MUST NOT be copied over a boost installation
+##
+
+path-constant top : . ;
+
+import modules ;
+import path ;
+
+local boost-root = [ modules.peek : BOOST_ROOT ] ;
+local explore-header-include = $(top)/../.. ;
+
+if ! $(boost-root)
+{
+ local boost-search-dirs = [ modules.peek : BOOST_BUILD_PATH ] ;
+
+ for local dir in $(boost-search-dirs)
+ {
+ if [ path.glob $(dir)/../../../ : boost/version.hpp ]
+ {
+ boost-root += $(dir)/../../../ ;
+ }
+ }
+
+ if $(boost-root)
+ {
+ boost-root = [ path.make $(boost-root[1]) ] ;
+ }
+ else
+ {
+ ECHO "Warning: couldn't find BOOST_ROOT in" $(boost-root) ;
+ }
+}
+
+use-project /boost/regex : $(boost-root)/libs/regex/build ;
+use-project /boost/unit_test : $(boost-root)/libs/test/build ;
+
+project explore
+ : requirements
+ <include>$(boost-root)
+ <include>$(explore-header-include)
+ <library>$(boost-root)/libs/test/build//boost_unit_test_framework/<link>static
+ : # build everything in ./bin.v2
+ build-dir bin.v2
+ ;
+
+
+
+
+
+
+
+

Modified: sandbox/explore/libs/explore/test/Jamfile.v2
==============================================================================
--- sandbox/explore/libs/explore/test/Jamfile.v2 (original)
+++ sandbox/explore/libs/explore/test/Jamfile.v2 2007-05-29 00:37:06 EDT (Tue, 29 May 2007)
@@ -10,11 +10,9 @@
 # bring in rules for testing
 import testing ;
 
-project
+project
     : source-location .
     : requirements
- <hardcode-dll-paths>true
- <library>../../test/build//boost_test_exec_monitor
     ;
 {
   test-suite printing


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