4
4
# Copyright Douglas Gregor 2005.
5
5
#
6
6
# Distributed under the Boost Software License, Version 1.0.
7
- # (See accompanying file LICENSE_1_0.txt or copy at
8
- # http://www.boost.org/LICENSE_1_0.txt)
7
+ # (See accompanying file LICENSE_1_0.txt or copy at
8
+ # http://www.boost.org/LICENSE_1_0.txt)
9
9
10
10
# Usage:
11
11
#
12
- # bjam [options] [properties] [install|stage]
12
+ # b2 [options] [properties] [install|stage]
13
13
#
14
14
# Builds and installs Boost.
15
15
#
31
31
# --includedir=<HDRDIR> Install header files here.
32
32
# Default; <PREFIX>/include
33
33
#
34
- # stage Build and install only compiled library files
35
- # ===== to the stage directory.
34
+ # stage Build and install only compiled library files to the
35
+ # ===== stage directory.
36
36
#
37
37
# --stagedir=<STAGEDIR> Install library files here
38
38
# Default; ./stage
39
39
#
40
40
# Other Options:
41
41
#
42
- # --build-type=<type> Build the specified pre-defined set of variations
43
- # of the libraries. Note, that which variants get
44
- # built depends on what each library supports.
42
+ # --build-type=<type> Build the specified pre-defined set of variations of
43
+ # the libraries. Note, that which variants get built
44
+ # depends on what each library supports.
45
45
#
46
- # minimal (default) - Builds a minimal set of
47
- # variants. On Windows, these are static
46
+ # -- minimal -- (default) Builds a minimal set of
47
+ # variants. On Windows, these are static
48
48
# multithreaded libraries in debug and release
49
- # modes, using shared runtime. On Linux, these
50
- # are static and shared multithreaded libraries
51
- # in release mode.
49
+ # modes, using shared runtime. On Linux, these are
50
+ # static and shared multithreaded libraries in
51
+ # release mode.
52
52
#
53
- # complete - Build all possible variations.
53
+ # -- complete - - Build all possible variations.
54
54
#
55
- # --build-dir=DIR Build in this location instead of building
56
- # within the distribution tree. Recommended!
55
+ # --build-dir=DIR Build in this location instead of building within
56
+ # the distribution tree. Recommended!
57
57
#
58
- # --show-libraries Displays the list of Boost libraries that require
59
- # build and installation steps, then exit.
58
+ # --show-libraries Display the list of Boost libraries that require
59
+ # build and installation steps, and then exit.
60
60
#
61
- # --layout=<layout> Determines whether to choose library names
62
- # and header locations such that multiple
63
- # versions of Boost or multiple compilers can
64
- # be used on the same system.
61
+ # --layout=<layout> Determine whether to choose library names and header
62
+ # locations such that multiple versions of Boost or
63
+ # multiple compilers can be used on the same system.
65
64
#
66
- # versioned - Names of boost binaries
67
- # include the Boost version number, name and
68
- # version of the compiler and encoded build
69
- # properties. Boost headers are installed in a
70
- # subdirectory of <HDRDIR> whose name contains
71
- # the Boost version number.
65
+ # -- versioned -- Names of boost binaries include
66
+ # the Boost version number, name and version of
67
+ # the compiler and encoded build properties. Boost
68
+ # headers are installed in a subdirectory of
69
+ # <HDRDIR> whose name contains the Boost version
70
+ # number.
72
71
#
73
- # tagged -- Names of boost binaries include the
72
+ # -- tagged -- Names of boost binaries include the
74
73
# encoded build properties such as variant and
75
74
# threading, but do not including compiler name
76
75
# and version, or Boost version. This option is
77
76
# useful if you build several variants of Boost,
78
77
# using the same compiler.
79
78
#
80
- # system - Binaries names do not include the
79
+ # -- system - - Binaries names do not include the
81
80
# Boost version number or the name and version
82
- # number of the compiler. Boost headers are
83
- # installed directly into <HDRDIR>. This option
84
- # is intended for system integrators who are
85
- # building distribution packages.
81
+ # number of the compiler. Boost headers are
82
+ # installed directly into <HDRDIR>. This option is
83
+ # intended for system integrators building
84
+ # distribution packages.
86
85
#
87
86
# The default value is 'versioned' on Windows, and
88
87
# 'system' on Unix.
89
88
#
90
- # --buildid=ID Adds the specified ID to the name of built
91
- # libraries. The default is to not add anything.
92
- #
93
- # --python-buildid=ID Adds the specified ID to the name of built
94
- # libraries that depend on Python. The default
95
- # is to not add anything. This ID is added in
96
- # addition to --buildid.
89
+ # --buildid=ID Add the specified ID to the name of built libraries.
90
+ # The default is to not add anything.
97
91
#
92
+ # --python-buildid=ID Add the specified ID to the name of built libraries
93
+ # that depend on Python. The default is to not add
94
+ # anything. This ID is added in addition to --buildid.
98
95
#
99
96
# --help This message.
100
97
#
101
- # --with-<library> Build and install the specified <library>
102
- # If this option is used, only libraries
103
- # specified using this option will be built.
98
+ # --with-<library> Build and install the specified <library>. If this
99
+ # option is used, only libraries specified using this
100
+ # option will be built.
104
101
#
105
102
# --without-<library> Do not build, stage, or install the specified
106
103
# <library>. By default, all libraries are built.
107
104
#
108
105
# Properties:
109
106
#
110
- # toolset=toolset Indicates the toolset to build with.
107
+ # toolset=toolset Indicate the toolset to build with.
111
108
#
112
109
# variant=debug|release Select the build variant
113
110
#
114
111
# link=static|shared Whether to build static or shared libraries
115
112
#
116
113
# threading=single|multi Whether to build single or multithreaded binaries
117
- #
118
- # runtime-link=static|shared
119
- # Whether to link to static or shared C and C++ runtime.
120
- #
114
+ #
115
+ # runtime-link=static|shared
116
+ # Whether to link to static or shared C and C++
117
+ # runtime.
118
+ #
121
119
122
120
# TODO:
123
121
# - handle boost version
@@ -132,7 +130,7 @@ import set ;
132
130
import path ;
133
131
134
132
path-constant BOOST_ROOT : . ;
135
- constant BOOST_VERSION : 1.53 .0 ;
133
+ constant BOOST_VERSION : 1.54 .0 ;
136
134
constant BOOST_JAMROOT_MODULE : $(__name__) ;
137
135
138
136
boostcpp.set-version $(BOOST_VERSION) ;
@@ -165,12 +163,12 @@ rule tag ( name : type ? : property-set )
165
163
{
166
164
return [ boostcpp.tag $(name) : $(type) : $(property-set) ] ;
167
165
}
168
-
166
+
169
167
rule handle-static-runtime ( properties * )
170
168
{
171
- # Using static runtime with shared libraries is impossible on Linux,
172
- # and dangerous on Windows. Therefore, we disallow it. This might
173
- # be drastic, but it was disabled for a while with nobody complaining.
169
+ # Using static runtime with shared libraries is impossible on Linux, and
170
+ # dangerous on Windows. Therefore, we disallow it. This might be drastic,
171
+ # but it was disabled for a while without anybody complaining.
174
172
175
173
# For CW, static runtime is needed so that std::locale works.
176
174
if <link>shared in $(properties) && <runtime-link>static in $(properties) &&
@@ -184,8 +182,7 @@ rule handle-static-runtime ( properties * )
184
182
}
185
183
186
184
all-libraries = [ MATCH .*libs/(.*)/build/.* : [ glob libs/*/build/Jamfile.v2 ]
187
- [ glob libs/*/build/Jamfile ] ]
188
- ;
185
+ [ glob libs/*/build/Jamfile ] ] ;
189
186
190
187
all-libraries = [ sequence.unique $(all-libraries) ] ;
191
188
# The function_types library has a Jamfile, but it's used for maintenance
@@ -251,10 +248,10 @@ rule boost-install ( libraries * )
251
248
}
252
249
253
250
headers =
254
- # The .SUNWCCh files are present in tr1 include directory and have to be installed,
255
- # see http://lists.boost.org/Archives/boost/2007/05/121430.php
251
+ # The .SUNWCCh files are present in tr1 include directory and have to be
252
+ # installed ( see http://lists.boost.org/Archives/boost/2007/05/121430.php).
256
253
[ path.glob-tree $(BOOST_ROOT)/boost : *.hpp *.ipp *.h *.inc *.SUNWCCh : CVS .svn ]
257
- [ path.glob-tree $(BOOST_ROOT)/boost/compatibility/cpp_c_headers : c* : CVS .svn ]
254
+ [ path.glob-tree $(BOOST_ROOT)/boost/compatibility/cpp_c_headers : c* : CVS .svn ]
258
255
[ path.glob boost/tr1/tr1 : * : bcc32 sun CVS .svn ]
259
256
;
260
257
0 commit comments