commit | 7ea1c168fe103d9c7e247218ed916bea11618b55 | [log] [tgz] |
---|---|---|
author | Lukacs T. Berki <lberki@google.com> | Tue Mar 16 08:54:33 2021 +0100 |
committer | Lukacs T. Berki <lberki@google.com> | Wed Mar 17 08:33:21 2021 +0100 |
tree | 5d32e929a36add4ea5117dce0e072a9afdfceab7 | |
parent | 5353744f1d0068559bb2ae4980066f126f035e0e [diff] |
Make it possible to call Blueprint from Go. In addition to the command line interface, a new struct is created that holds all the information Blueprint needs to do its job. Test: Presubmits. Change-Id: I0d6c924e09e069b3c1ae2000722efb52fd561e79
Blueprint is a meta-build system that reads in Blueprints files that describe modules that need to be built, and produces a Ninja manifest describing the commands that need to be run and their dependencies. Where most build systems use built-in rules or a domain-specific language to describe the logic for converting module descriptions to build rules, Blueprint delegates this to per-project build logic written in Go. For large, heterogenous projects this allows the inherent complexity of the build logic to be maintained in a high-level language, while still allowing simple changes to individual modules by modifying easy to understand Blueprints files.