|
Boost-Commit : |
From: jmcintyre_at_[hidden]
Date: 2007-07-30 23:47:30
Author: jared
Date: 2007-07-30 23:47:30 EDT (Mon, 30 Jul 2007)
New Revision: 7603
URL: http://svn.boost.org/trac/boost/changeset/7603
Log:
initial project-root for pinhole
Added:
sandbox/pinhole/libs/pinhole/project-root.jam (contents, props changed)
Added: sandbox/pinhole/libs/pinhole/project-root.jam
==============================================================================
--- (empty file)
+++ sandbox/pinhole/libs/pinhole/project-root.jam 2007-07-30 23:47:30 EDT (Mon, 30 Jul 2007)
@@ -0,0 +1,55 @@
+#
+# Copyright (c) 2007 Jared McIntyre
+# 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 pinhole-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 ;
+use-project /boost/signals : $(boost-root)/libs/signals/build ;
+
+project explore
+ : requirements
+ <include>$(boost-root)
+ <include>$(pinhole-header-include)
+ <library>$(boost-root)/libs/test/build//boost_unit_test_framework/<link>static
+ <library>$(boost-root)/libs/signals/build//boost_signals/<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