commit | e4b0d3596697858cfcf6dd3e4ab376a2905c8e2c | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Mon Nov 02 14:58:10 2015 -0800 |
committer | Colin Cross <ccross@android.com> | Mon Nov 02 15:40:55 2015 -0800 |
tree | 3c9f9ef4f586e3c8b2aae37e131c7767e00718ec | |
parent | 80117687294aaebcdc1df11a456cd1655e58ab8d [diff] |
Add proptools.TypeEqual When appending properties, it may be necessary to determine if two property structs are the same "type". A simple Go type comparison is not sufficient, as there may be interface{} values in the property structs that contain different types. Add proptools.TypeEqual that returns true if they have equal types and all embedded pointers to structs and interfaces to pointers to structs have the same nilitude and type.
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.