commit | 1fa1a148530253fcfe64673f9780a5f5f3abb949 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Fri Oct 27 16:30:46 2017 -0700 |
committer | Colin Cross <ccross@android.com> | Fri Oct 27 16:32:15 2017 -0700 |
tree | 1729e37976457f04b89b859a78c742d0ec60cfce | |
parent | c63f1fd784d138fa9d4e9a5af8c7d851c349a715 [diff] |
Set fields in CreateModule to match current module When a mutator calls CreateModule, set the blueprints file and line number to the values of the module that the mutator was visiting. Change-Id: I4526f14a744be944e42582bc46f11a9a7b502f03
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.