commit | e32cc80f200c09f3547a45f2535fb0cfd9ea4464 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Jun 07 12:28:16 2016 -0700 |
committer | Colin Cross <ccross@android.com> | Wed Jun 08 14:48:53 2016 -0700 |
tree | 16b68a65b75fa320a3fb539d92705c94b22a34dc | |
parent | aedd4903a9ddded8113c704e350436a977df651c [diff] |
Refactor blueprint parser nodes to an interface Refactor the blueprint parser Value object, which contained a Type enum and members to hold every possible type, into an interface (now called Expression). Rename the existing Expression object that represented a binary operator Operator. Also adds and fixes some new printer test cases with mulitline expressions. Change-Id: Icf4a20f92c8c2a27f18df8ca515a9d7f282ff133
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.