commit | 96e56704960a9eaa09969728bc215fdfb45b76af | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Thu Mar 19 17:28:06 2015 -0700 |
committer | Colin Cross <ccross@android.com> | Fri Mar 20 16:55:32 2015 -0700 |
tree | 1a32964044b1b323290af7a6a45030e0bc7f8529 | |
parent | 85398a916a07e894e01057dfa2dd7f07343ef9b2 [diff] |
Allow parsing Blueprints files without evaluating Running bpfmt or bpmodify on a Blueprints file that references variables defined in a parent Blueprints file causes parse errors on unknown variables. Modify the parser to parse in two modes, parser.Parse and parser.ParseAndEval. The first parses without attempting to evaluate variables and expressions, the second performs a full evaluation. Change-Id: Ic11948ea77c8e65379d7260591ada15db0e4f5b9
Blueprint is a meta-build system that reads in Blueprints files that describe modules that need to be built, and produces a Ninja (http://martine.github.io/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.