commit | aeffbf776abff483634d1fc1bba0abce15b6d72e | [log] [tgz] |
---|---|---|
author | Dan Willemsen <dwillemsen@google.com> | Wed Nov 25 15:29:32 2015 -0800 |
committer | Dan Willemsen <dwillemsen@google.com> | Mon Nov 30 17:03:34 2015 -0800 |
tree | f66d827ac5177a7b5dabe2d1137581f816a4488d | |
parent | 6afb72ff1bde8ad53bb0da4b85fa15e73e1bb1fe [diff] |
Allow wrapping of PackageContext Turn PackageContext into an interface so that build systems can wrap it to add more custom helpers. This does introduce an API change, though it should be fairly simple. NewPackageContext used to provide an opaque *PackageContext struct, now it provides a PackageContext interface. Change-Id: I383c64a303d857ef5e0dec86ad77f791ba4c9639
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.