]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/quickbook/examples/standalone-quickbook/Jamroot.jam
update sources to v12.2.3
[ceph.git] / ceph / src / boost / tools / quickbook / examples / standalone-quickbook / Jamroot.jam
1 #
2 # Copyright (c) 2006 João Abecasis
3 #
4 # Distributed under the Boost Software License, Version 1.0. (See
5 # accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
7 #
8
9 ##
10 ## IMPORTANT NOTE: This file MUST NOT be copied over a boost installation
11 ##
12
13 path-constant top : . ;
14
15 import modules ;
16 import path ;
17
18 local boost-root = [ modules.peek : BOOST_ROOT ] ;
19
20 if ! $(boost-root)
21 {
22 local boost-search-dirs = [ modules.peek : BOOST_BUILD_PATH ] ;
23
24 for local dir in $(boost-search-dirs)
25 {
26 if [ path.glob $(dir)/../../../ : boost/version.hpp ]
27 {
28 boost-root += $(dir)/../../../ ;
29 }
30 }
31
32 if $(boost-root)
33 {
34 boost-root = [ path.make $(boost-root[1]) ] ;
35 }
36 else
37 {
38 ECHO "Warning: couldn't find BOOST_ROOT in" $(boost-root) ;
39 }
40 }
41
42 path-constant BOOST_ROOT : $(boost-root) ;
43 modules.poke : QUICKBOOK_ROOT : $(top) ;
44
45 use-project /boost : $(BOOST_ROOT) ;