commit | dfb4c9f7af8351a23a77560f64f73afbd420b031 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Dec 13 16:45:06 2016 -0800 |
committer | Colin Cross <ccross@android.com> | Wed Dec 14 10:42:00 2016 -0800 |
tree | 4b5274bc6ba0b4ec445b7415984cd741caea68e4 | |
parent | 92844f0da8a0abe48ecb81a71216ecff909422ee [diff] |
Add ModuleContext method to get dependency by name Instead of forcing every mutator or module to use VisitDirectDeps to iterate through its deps, allow it to request a dependency by name to return the Module. Change-Id: I18b23bffa324bb9d93a7743b6e2a19c07058c775
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.