commit | 6d529f0e16b861d3b504f622137858f4ad094d9a | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Nov 17 16:16:58 2015 -0800 |
committer | Colin Cross <ccross@android.com> | Wed Nov 18 15:29:12 2015 -0800 |
tree | 1cfb14acf3758886b11c093c7d5d0caee74dfc91 | |
parent | e6006362dab1494107f591c5ae3f168d8adbd512 [diff] |
Make removing abandoned files optional Build logic can now implement a RemoveAbandonedFiles, and the bootstrap logic will only remove abandoned files if that method returns true. Leaving the method unimplemented will result in the existing behavior of always removing abandoned files.
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.