commit | b519a7e1b69b6b658d8a0b7171323ffc03965ded | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Feb 01 13:21:35 2017 -0800 |
committer | Colin Cross <ccross@android.com> | Thu Feb 02 16:48:06 2017 -0800 |
tree | 20db4d2e796137460ac4b815e49c05d171c9cac7 | |
parent | 2eeb7ee14b6d8e1ec497cfa514cf22c1b4772c39 [diff] |
Add globbing to filesystem mocking Add globbing to filesystem mocking so that more code can be tested against the mock. Also moves the filesystem mock to pathtools, and renames pathtools.GlobWithExcludes to pathtools.Glob, replacing the existing pathtools.Glob. Test: blueprint tests Change-Id: I722df8121bc870c4a861d7c249245c57dcb607be
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.