commit | d7b0f60802a5ab4310e169c17495f32856a850c9 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Thu Jun 02 15:30:20 2016 -0700 |
committer | Colin Cross <ccross@android.com> | Mon Aug 08 17:26:57 2016 -0700 |
tree | f08533c11ddc64749f9b564d89e5a715f8eab53b | |
parent | fd1ef9ec7adf31093c2859f4ec6bafbde5ba041d [diff] |
Allow tests to mock filesystem Tests can call Context.MockFileSystem to pass in a map of filenames to contents. Change-Id: Idd67c68f7cb43bc2117cc78336347db7e2f21991
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.