Boost logo

Boost-Commit :

From: sixtrillion_at_[hidden]
Date: 2007-05-29 22:07:34


Author: sixtrillion
Date: 2007-05-29 22:07:33 EDT (Tue, 29 May 2007)
New Revision: 4360
URL: http://svn.boost.org/trac/boost/changeset/4360

Log:
There is probably a better way to handle this, but I'm moving a project-root.jam file here, along with related stuff. This is to make compilation possible with a fresh download from the sandbox.

Added:
   sandbox/libs/extension/Jamrules
   sandbox/libs/extension/boost-build.jam
   sandbox/libs/extension/project-root.jam

Added: sandbox/libs/extension/Jamrules
==============================================================================

Added: sandbox/libs/extension/boost-build.jam
==============================================================================
--- (empty file)
+++ sandbox/libs/extension/boost-build.jam 2007-05-29 22:07:33 EDT (Tue, 29 May 2007)
@@ -0,0 +1,43 @@
+# Copyright Rene Rivera 2007.
+#
+# 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)
+
+# For instructions see Jamfile.v2, or "bjam --help".
+
+local rule if-has-file ( file + : dir * )
+{
+ local result ;
+ if $(dir)
+ {
+ result = [ GLOB $(dir) : $(file) ] ;
+ }
+ return $(result[1]:P) ;
+}
+
+#~ Attempts to find the Boost source tree...
+
+local boost-src = [ if-has-file configure :
+ [ MATCH --boost=(.*) : $(ARGV) ]
+ $(BOOST)
+ $(.boost-build-file:D)/../boost
+ ] ;
+
+#~ Attempts to find the Boost.Build files...
+
+local boost-build-src = [ if-has-file bootstrap.jam :
+ [ MATCH --boost-build=(.*) : $(ARGV) ]
+ $(BOOST_BUILD_PATH)
+ $(BOOST_BUILD)
+ $(boost-src)/tools/build/v2
+ ] ;
+
+#~ Set some common vars to refer to the Boost sources...
+
+BOOST ?= $(boost-src) ;
+BOOST_ROOT ?= $(boost-src) ;
+
+#~ And load up Boost.Build...
+
+boost-build $(boost-build-src) ;

Added: sandbox/libs/extension/project-root.jam
==============================================================================


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