commit | 174ae059cce33116c04c61dc885e6e5b250eb19f | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Mar 03 17:37:03 2015 -0800 |
committer | Colin Cross <ccross@android.com> | Wed Mar 04 14:00:50 2015 -0800 |
tree | 39d22cf2997928a53ac537284411e062442ad8ed | |
parent | cb7b9ad6ca7dfa4affc0dda877a6a33dbc3baeb9 [diff] |
Report variant errors instead of panicing Variant errors can be introduced by Blueprints files, so print a module error instead of panicing.
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 langauge 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.