commit | 4604a81721007a79e6b4fc5ed4a78ebde95d6cc0 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Jan 20 13:44:53 2021 -0800 |
committer | Colin Cross <ccross@android.com> | Wed Jan 20 13:47:37 2021 -0800 |
tree | a2e21dd9ab07ffed52bacc57bd674ea8418233fa | |
parent | e535c97cc90096a84861fc8743f6a9515a22b68e [diff] |
Use info.IsDir() instead of info.Mode()&os.ModeDir != 0 Use the info.IsDir() shortcut. Test: glob_test.go Change-Id: Ibba8bbc6af295e3d86321b0c070a84c2b7008dd9
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.