commit | 72bd193edf53a3c2873d8575a362a6058988fbe7 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Mon Mar 16 00:13:59 2015 -0700 |
committer | Colin Cross <ccross@android.com> | Mon Mar 16 00:13:59 2015 -0700 |
tree | d7998efe6d688677b634ee612c29a7a5d29acc9e | |
parent | 96555d687eda26cb78596dc9270d3b029bfd2a1e [diff] |
Fix a bug in spliceModules and add tests spliceModules was carefully reallocating the slice if necessary, and then throwing away the reallocated slice and writing to the too-short original slice. Fix the bug, and add tests that would have caught it. Change-Id: Ifc13b2025198b270c97097fd7d28cd36e460c98c
Blueprint is a meta-build system that reads in Blueprints files that describe modules that need to be built, and produces a Ninja (http://martine.github.io/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 langauge 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.