commit | 045a59760380d959657d6a342f038a65a9f67562 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Nov 03 16:58:48 2015 -0800 |
committer | Colin Cross <ccross@android.com> | Tue Nov 03 17:00:26 2015 -0800 |
tree | 61fe7c3368e3d6a05ee488cf4a12ffc9b7253774 | |
parent | f401db416d655b89946558931d6580c7556c85e5 [diff] |
Print useful error for self-dependency beforeInModuleList panic'd when checking if a variant was before itself in the module list. Return a real error instead of calling beforeInModuleList, and also fix beforeInModuleList to return false for the same module.
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.