转载

Bazel —— 来自 Google 的开源代码构建工具

阿里百川,开启移动应用开发的新篇章

Bazel 是 Google 的一款可再生的代码构建工具。它主要是用于构建 Google 的软件,处理出现在谷歌的开发环境的构建问题,比如说:大规模数据构建问题,共享代码库问题,从源代码构建的软件的相关问题。

Bazel 支持多种语言并且跨平台,还支持自动化测试和部署、具有再现性(Reproducibility)和规模化等特征。Bazel 在谷歌大规模软件开发实践能力方面起着至关重要的作用。

具有以下功能:

  • 支持自动化测试和发布

  • 支持多语言和多平台的多样性

使用方法:

% bazel help                            [Bazel release bazel-<version>] Usage: bazel <command> <options> ...  Available commands:   analyze-profile     Analyzes build profile data.   build               Builds the specified targets.    canonicalize-flags  Canonicalize Bazel flags.   clean               Removes output files and optionally stops the server.    help                Prints help for commands, or the index.    info                Displays runtime info about the bazel server.    query               Executes a dependency graph query.    run                 Runs the specified target.   shutdown            Stops the Bazel server.   test                Builds and runs the specified test targets.  Getting more help:   bazel help <command>                    Prints help and options for <command>.   bazel help startup_options                    Options for the JVM hosting Bazel.   bazel help target-syntax                    Explains the syntax for specifying targets.   bazel help info-keys                    Displays a list of keys used by the info command. 
正文到此结束
Loading...