commit | 8d8a7af4af5e091cfa207599734f722edde5f160 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Nov 03 16:41:29 2015 -0800 |
committer | Colin Cross <ccross@android.com> | Tue Nov 03 16:41:29 2015 -0800 |
tree | 8896fad6e2b0200201eb9356bca27cad74731b4c | |
parent | f401db416d655b89946558931d6580c7556c85e5 [diff] |
Sort reverse dependencies AddReverseDependencies would add modules the target's dependency list in a non-deterministic order based on the order the modules were parsed. Redefine AddReverseDependencies to collect dependencies until the end of the mutator and then add them sorted by name.
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.