Boost 1.62.0 编译参数

Boost.Build 2015.07-git

项目帮助:
    项目在Jamroot有Jamfile文件

用法:
    B2 [options] [properties] [install|stage]
    构建和安装Boost

目标及相关选项:                                                        Targets and Related Options

  install                 将头文件和已编译的库文件安装到                Install headers and compiled library files to the
  =======                 下列配置位置.                                 configured locations (below).

  --prefix=<PREFIX>       架构独立文件安装目录                          Install architecture independent files here.
                          默认; C:Boost Win32                          Default; C:Boost on Win32
                          默认; /usr/local Unix. Linux, 等.             Default; /usr/local on Unix. Linux, etc.
                                                                        
  --exec-prefix=<EPREFIX> 架构独立文件安装目录                          Install architecture dependent files here.
                          默认; <PREFIX>                                Default; <PREFIX>
                                                                        
  --libdir=<DIR>          库文件安装目录.                               Install library files here.
                          默认; <EPREFIX>/lib                           Default; <EPREFIX>/lib
                                                                        
  --includedir=<HDRDIR>   头文件安装目录.                               Install header files here.
                          默认; <PREFIX>/include                        Default; <PREFIX>/include

  stage                   编译和安装 已编译库文件到                     Build and install only compiled library files to the
  =====                   stage目录.                                    stage directory.
                                                                        
  --stagedir=<STAGEDIR>   库文件安装目录                                Install library files here
                          Default; ./stage                              Default; ./stage

options:

  --build-type=<type>     编译指定预定义variant集的库.                  Build the specified pre-defined set of variations of
                          注意,在编译时使用哪些variant                 the libraries. Note, that which variants get built
                          取决于每个库支持什么.                         depends on what each library supports.
                                                                        
                              -- minimal -- (默认) 编译variant最小集.       -- minimal -- (default) Builds a minimal set of
                              在Windows上, 它们是使用共享运行库的           variants. On Windows, these are static
                              debug和release静态多线程库.                   multithreaded libraries in debug and release
                              在Linux上,它们是                             modes, using shared runtime. On Linux, these are
                              release静态和共享多线程库                     static and shared multithreaded libraries in
                                                                            release mode.
                              -- complete -- 编译所有可用variant.           -- complete -- Build all possible variations.
                                                                            
  --build-dir=DIR         编译在此目录,而不是编译在                    Build in this location instead of building within
                          代码目录。推荐!                               the distribution tree. Recommended!
                                                                        
  --show-libraries        显示需要编译的Boost库列表                     Display the list of Boost libraries that require
                          和安装步骤,然后退出                          build and installation steps, and then exit.

  --layout=<layout>       确定是否选择库名和头位置                      Determine whether to choose library names and header
                          这样能在同一个系统中                          locations such that multiple versions of Boost or
                          使用多版本Boost库和多编译器                   multiple compilers can be used on the same system.

                              -- versioned -- Boost二进制文件名称包括   -- versioned -- Names of boost binaries include
                              Boost版本号、编译器名称和版本             the Boost version number, name and version of
                              和编码生成属性。                          the compiler and encoded build properties. Boost
                              Boost头文件安装在<HDRDIR>子目录           headers are installed in a subdirectory of
                              <HDRDIR>的名字包含Boost版本号。           whose name contains the Boost version number.

                              -- tagged -- Boost二进制文件名称包括      -- tagged -- Names of boost binaries include the
                              编码生成属性如variant和多线程,           encoded build properties such as variant and
                              但是不包括编译器名称和版本                threading, but do not including compiler name
                              或Boost版本。这个选项在                   and version, or Boost version. This option is
                              你用相同编译器编译几个不同variant的Boost useful if you build several variants of Boost,
                              时有用                                    using the same compiler.

                              -- system -- 二进制文件名不包括           -- system -- Binaries names do not include the
                              Boost版本号或编译器名称和版本             Boost version number or the name and version
                              Boost头文件                               number of the compiler. Boost headers are
                              安装在<HDRDIR>子目录,这个选项            installed directly into <HDRDIR>. This option is
                              用于在发布系统集成包                      intended for system integrators building
                                                                        distribution packages.

                          默认值,在Windows下为'versioned'              The default value is 'versioned' on Windows, and
                          在Unix下为'system'                            'system' on Unix.

  --buildid=ID            为生成库名添加指定ID                          Add the specified ID to the name of built libraries.
                          默认不添加                                    The default is to not add anything.

  --python-buildid=ID     为生成依赖于Python的库名添加指定ID            Add the specified ID to the name of built libraries
                          默认不添加                                    that depend on Python. The default is to not add
                          本ID在--buildid的基础上添加                   anything. This ID is added in addition to --buildid.

  --help                  显示帮助                                      This message.

  --with-<library>        编译和安装指定<library>                       Build and install the specified <library>. If this
                          如果使用本选项,                              option is used, only libraries specified using this
                          只会编译指定库                                option will be built.

  --without-<library>     不进行编译,stage,或安装指定<library>          Do not build, stage, or install the specified
                          默认编译所有库                                <library>. By default, all libraries are built.

Properties:

  toolset=toolset         指定构建工具集                                Indicate the toolset to build with.
                                                                        
  variant=debug|release   选择编译选项                                  Select the build variant
                                                                        
  link=static|shared      生成静态还是共享库                            Whether to build static or shared libraries
                                                                        
  threading=single|multi  生成单线程还是多线程库                        Whether to build single or multithreaded binaries
                                                                        
  runtime-link=static|shared                                            
                          静态还是动态链接C和C++运行时。                Whether to link to static or shared C and C++ runtime.
原文地址:https://www.cnblogs.com/yaoyu126/p/6095392.html