commit | 222e2458b1551080d82da5958662740e03164e6d | [log] [tgz] |
---|---|---|
author | Yuchen Wu <yuchenericwu@google.com> | Tue Oct 06 14:03:27 2015 -0700 |
committer | Yuchen Wu <yuchenericwu@google.com> | Tue Oct 06 20:03:07 2015 -0700 |
tree | 4a2fc47545e5451f3b9376c2359cd44b862370e9 | |
parent | e12c78095755517799fe022b70fdf93d6896dcab [diff] |
Add walkDeps to context and module_ctx. walkDeps performs a pre-order DFS (unlike visitDepsDepthFirst which is a post-order DFS). The visit function takes in both a parent and child node and returns a bool indicating if the child node should be traversed.
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.