Boost logo

Boost-Commit :

From: john_at_[hidden]
Date: 2008-08-07 07:14:28


Author: johnmaddock
Date: 2008-08-07 07:14:28 EDT (Thu, 07 Aug 2008)
New Revision: 48015
URL: http://svn.boost.org/trac/boost/changeset/48015

Log:
Add project-root.jam
Added:
   sandbox/type_traits/libs/type_traits/project-root.jam (contents, props changed)

Added: sandbox/type_traits/libs/type_traits/project-root.jam
==============================================================================
--- (empty file)
+++ sandbox/type_traits/libs/type_traits/project-root.jam 2008-08-07 07:14:28 EDT (Thu, 07 Aug 2008)
@@ -0,0 +1,59 @@
+#
+# 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 tt-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) ;
+ }
+}
+
+
+project tt
+ : requirements
+ <include>$(boost-root)
+ <include>$(tt-header-include)
+ : # 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