commit | 2f212479e2dc2500d39bf4475b929aec7f212dc4 | [log] [tgz] |
---|---|---|
author | Martin Stjernholm <mast@google.com> | Fri Mar 06 00:29:24 2020 +0000 |
committer | Martin Stjernholm <mast@google.com> | Tue May 26 20:52:43 2020 +0100 |
tree | 4e5b6ab10bead47ef74cd09fa573ee8571c03fc9 | |
parent | 2bcc43c60f4a24a067ff5c11e2d752100505c4b3 [diff] |
Add ctx.OtherModule(Reverse)DependencyVariantExists. This allows guarding calls to AddVariationDependencies and AddReverseDependency to register dependencies on optional modules.
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.