Boost.Build特色(譯)

Boost.Build

Boost.Build makes it easy to build C++ projects, everywhere.c++

Boost.Build讓構建C++項目在任何地方都很容易。git

You name your executables and libraries and list their sources. Boost.Build takes care about compiling your sources with right options, creating static and shared libraries, making executables, and other chores — whether you’re using gcc, msvc, or a dozen more supported C++ compilers — on Windows, OSX, Linux and commercial UNIX systems.github

咱們只須要命名可執行文件(庫),並列出它們的源代碼。Boost.Build負責在Windows、OSX、Linux和商業UNIX系統上使用正確的選項編譯源代碼、建立靜態和共享庫、建立可執行程序,以及其餘一些繁瑣的工做 — 無論是使用gcc、msvc仍是其餘十幾個受支持的c++編譯器。多線程

  • Simple and high level build description. In most cases a name of target and list of sources is all you need.app

  • 簡單和高層次的構建描述。在大多數狀況下,只須要目標名稱和源列表。ui

  • Portability. Most important build properties have symbolic names that work everywhere. Why memorize compiler flags necessary for multi-threaded 64-bit shared library, if Boost.Build can do it for you?線程

  • 可移植性。最重要的構建屬性都有符號名,這些符號名在任何地方都適用。若是Boost.Build可以代勞,爲何要記住多線程64位共享庫所需的編譯器標誌呢?debug

  • Variant builds. When you build the same project twice with different properties, all produced files are placed in different directories, so you can build with 2 versions of gcc, or both debug and release variants in one invocation.調試

  • 多版本構建。當您使用不一樣的屬性兩次構建相同的項目時,全部生成的文件都放在不一樣的目錄中,所以您可使用gcc的兩個版本進行構建,或者在一次調用中同時構建調試和發行版。ip

  • Global dependencies. No matter what directory you build in, Boost.Build will always check all dependencies in your entire project, preventing inconsistent binaries. And it’s easy to use one Boost.Build project in other, again with full dependency tracking.

  • 全局依賴關係。不管在哪一個目錄中構建,Boost.Build都會檢查整個項目中的全部依賴項,防止不一致的二進制文件。並且在其餘項目中使用一個Boost.Build項目也很容易,一樣也具備徹底的依賴性跟蹤。

  • Usage requirements. A target can specify properties, like include paths and preprocessor defines, that are necessary to use it. Those properties will be automatically applied whenever the target is used.

  • 按需使用。目標能夠指定須要使用的屬性, 好比包含路徑和預處理器定義。這些屬性將在使用目標時自動應用。

相關文章
相關標籤/搜索