commit | 0bc7e077ebfe716c6353c6fe5b9c01087867ee12 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Oct 27 18:15:15 2015 -0700 |
committer | Colin Cross <ccross@android.com> | Sat Oct 31 20:09:58 2015 -0700 |
tree | 97397f676755e70ca8e9a133faa115b2f0afcde6 | |
parent | 75c938b6ed6b97a2b7a695a37ba6af160c3289fb [diff] |
Add helpers for extending properties to proptools It is common for a mutator to append or prepend property structs together. Add helper functions to append or prepend properties in property structs. The append operation is defined as appending string and slices of strings normally, OR-ing bool values, and recursing into embedded structs, pointers to structs, and interfaces containing pointers to structs. Appending or prepending the zero value of a property will always be a no-op.
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.