|
Boost-Commit : |
From: yuanming_at_[hidden]
Date: 2008-05-25 02:52:22
Author: lakeeast
Date: 2008-05-25 02:52:21 EDT (Sun, 25 May 2008)
New Revision: 45738
URL: http://svn.boost.org/trac/boost/changeset/45738
Log:
Add Jamfile for the cluster project
Added:
sandbox/cluster/libs/algorithm/cluster/project-root.jam (contents, props changed)
Added: sandbox/cluster/libs/algorithm/cluster/project-root.jam
==============================================================================
--- (empty file)
+++ sandbox/cluster/libs/algorithm/cluster/project-root.jam 2008-05-25 02:52:21 EDT (Sun, 25 May 2008)
@@ -0,0 +1,54 @@
+#
+# Copyright (c) 2008 Yuanming Chen
+# 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 cluster-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/unit_test : $(boost-root)/libs/test/build ;
+
+
+project cluster
+ : requirements
+ <include>$(boost-root)
+ <include>$(cluster-header-include)
+ <library>$(boost-root)/libs/test/build//boost_unit_test_framework/<link>static
+ : # build everything in ./bin.v2
+ build-dir bin.v2
+ ;
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