Boost libraries - build only what I need

前端 未结 6 671
囚心锁ツ
囚心锁ツ 2020-12-22 23:54

I downloaded the Boost libraries and now I want to build only a few of the libraries. What would be the right command for this? Apparently the built-type=complete option giv

6条回答
  •  囚心锁ツ
    2020-12-23 00:22

    The BCP utility is a tool for extracting subsets of Boost. It's useful for Boost authors who want to distribute their library separately from Boost, and for Boost users who want to distribute a subset of Boost with their application.

    The current version of Boost (1.50.0) uses Boost.Build. The new workflow for building BCP is as follows:

    From the root Boost directory, type:

    bootstrap.bat
    

    Then, once Boost.Build has been built, type:

    b2 tools/bcp
    

    To extract, for example interprocess only, you could use:

    $ mkdir /tmp/interprocess #bcp needs this
    $ bcp interprocess /tmp/interprocess
    

    This copies interprocess and its dependencies to /tmp/interprocess.

提交回复
热议问题