Last active
August 29, 2015 14:05
-
-
Save thomassuckow/4742940dc5f54f37857a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2002-2003 David Abrahams. | |
# Copyright (C) 2002-2003 Vladimir Prus. | |
# Copyright (C) 2003,2007 Rene Rivera. | |
# Use, modification and distribution are subject to 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) | |
# This is the initial file loaded by Boost Jam when run from any Boost library | |
# folder. It allows us to choose which Boost Build installation to use for | |
# building Boost libraries. Unless explicitly selected using a command-line | |
# option, the version included with the Boost library distribution is used (as | |
# opposed to any other Boost Build version installed on the user's system). | |
local rule if-has-file ( file + : dir * ) | |
{ | |
local result ; | |
if $(dir) | |
{ | |
result = [ GLOB $(dir) : $(file) ] ; | |
} | |
return $(result[1]:P) ; | |
} | |
local boost-src = [ if-has-file boost.css : | |
[ MATCH --boost=(.*) : $(ARGV) ] | |
$(BOOST) | |
$(BOOST_ROOT) | |
$(self:D) | |
] ; | |
BOOST = $(boost-src) ; | |
BOOST_ROOT = $(boost-src) ; | |
local boost-build-src = [ if-has-file bootstrap.jam : | |
[ MATCH --boost-build=(.*) : $(ARGV) ] | |
$(BOOST_BUILD_PATH) | |
$(BOOST_BUILD) | |
$(self:D)/kernel | |
$(self:D)/tools/build/v2/kernel | |
$(self:D)/tools/build/src | |
/usr/local/share/boost-build/kernel | |
] ; | |
boost-build $(boost-build-src) ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment