commit | 957b39cba5d16836eda1fe8412fa164102e80cd8 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Mar 21 18:10:01 2018 -0700 |
committer | Colin Cross <ccross@android.com> | Tue Apr 10 16:50:39 2018 -0700 |
tree | 690503714d3e355165fa97a066cc3eec4053d67f | |
parent | fdeaf881f44fbccf478112bda2d091b20b65cc0f [diff] |
Add Patch and PatchList for making textual changes Patch and PatchList provide an API for making changes to substrings of a Blueprint file by parsing the AST and using the token positions to perform text replacements. Test: modify_test.go Change-Id: Ibb8993221982b54602ba5a05486198fab8d35a67
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.