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.

  • 按需使用。目标能够指定须要使用的属性, 好比包含路径和预处理器定义。这些属性将在使用目标时自动应用。

相关文章
相关标签/搜索