commit | 9607a9f248c2aaf207c5175417004e159cb9176f | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Jun 20 11:16:37 2018 -0700 |
committer | Colin Cross <ccross@android.com> | Wed Jun 20 14:10:18 2018 -0700 |
tree | 81c997e25e79eae2e5b970a940c2f44055196370 | |
parent | 3a16825a7ca3332092439bcac8533fd65a477d43 [diff] |
Allow multiple dependencies on the same module Allow adding multiple dependencies on the same module. Adds a flag to Context.walkDeps to determine whether dependencies should be visited multiple times, and clarifies the behavior of VisitDepsDepthFirst (continues to visit each module once, even if there are multiple dependencies on it) and VisitDirectDeps (may visit a module multiple times). Test: TestWalkDepsDuplicates, TestVisit Change-Id: I58afbe90490aca102d242d63e185386e1fe55d73
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.