commit | f4d18a685de89df74da00de91f057a43affa68c0 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Mar 18 17:43:15 2015 -0700 |
committer | Colin Cross <ccross@android.com> | Wed Mar 18 17:43:15 2015 -0700 |
tree | 6bb0a6e598a1c6a7e46202a7206fb0ebfd65174f | |
parent | bc21793f6c6e20258f5ccd34ed5c088bf3ef2bc0 [diff] |
Add error checking for calling CreateVariations with no variants Calling CreateVariations with no variants will corrupt the modules list with a module with nil logicModule, panic early with a useful message instead. Change-Id: Ic5c921efcba70c54efb5bb21a9626b2999376a69
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.