|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r72625 - sandbox/SOC/2011/checks
From: pbristow_at_[hidden]
Date: 2011-06-17 07:47:04
Author: pbristow
Date: 2011-06-17 07:47:04 EDT (Fri, 17 Jun 2011)
New Revision: 72625
URL: http://svn.boost.org/trac/boost/changeset/72625
Log:
Project Jamroot.jam
Added:
sandbox/SOC/2011/checks/Jamroot.jam (contents, props changed)
Added: sandbox/SOC/2011/checks/Jamroot.jam
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/Jamroot.jam 2011-06-17 07:47:04 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,42 @@
+#
+# 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 ] ;
+
+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) ;
+ }
+}
+
+path-constant BOOST_ROOT : $(boost-root) ;
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