Feature
|
Allowed values
|
Notes
|
variant
|
debug,release
|
|
link
|
shared,static
|
Determines if Boost.Build creates shared or static libraries
|
threading
|
single,multi
|
Cause the produced binaries to be thread-safe. This requires proper support in the source code itself.
|
address-model
|
32,64
|
Explicitly request either 32-bit or 64-bit code generation. This typically requires that your compiler is appropriately configured. Please refer to
the section called “C++ Compilers”
and your compiler documentation in case of problems.
|
toolset
|
(Depends on configuration)
|
The C++ compiler to use. See
the section called “C++ Compilers”
for a detailed list.
(Vs2008)msvc-8.0 (vs2010)msvc-10.0
|
include
|
(Arbitrary string)
|
Additional include paths for C and C++ compilers.
|
define
|
(Arbitrary string)
|
Additional macro definitions for C and C++ compilers. The string should be either SYMBOL or SYMBOL=VALUE
|
cxxflags
|
(Arbitrary string)
|
Custom options to pass to the C++ compiler.
|
cflags
|
(Arbitrary string)
|
Custom options to pass to the C compiler.
|
linkflags
|
(Arbitrary string)
|
Custom options to pass to the C++ linker.
|
runtime-link
|
shared,static
|
Determines if shared or static version of C and C++ runtimes should be used.
|
--build-dir=
|
编译的临时文件会放在builddir里(这样比较好管理,编译完就可以把它删除了)
|
--stagedir=
|
存放编译后库文件的路径,默认是stage
|
--build-type=
complete
|
编译所有版本,不然只会编译一小部分版本(确切地说是相当于:variant=release, threading=multi;link=shared|static;runtime-link=shared)
|
variant=
debug|release
|
决定编译什么版本(对应文件中的d 调试版本 不出现表示 release 版)
|
link=
static|shared
|
决定使用静态库还是动态库。(对应文件中的BOOST_LIB_PREFIX )
|
threading=
single|multi
|
决定使用单线程还是多线程库。(对应文件中的BOOST_LIB_THREAD_OPT)
|
runtime-link=
static|shared
|
决定是静态还是动态链接C/C++标准库。(对应文件中的BOOST_LIB_THREAD_OPT)
|
--with-
|
只编译指定的库,如输入--with-regex就只编译regex库了。
|
--show-
libraries
|
显示需要编译的库名称
|