commit | 036a1df37488b1704c59a74260ca3811f7188fd5 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Thu Dec 17 15:49:30 2015 -0800 |
committer | Colin Cross <ccross@android.com> | Thu Dec 17 17:26:20 2015 -0800 |
tree | 959fd176f2068e9ce4f1a91c87aa72846711fade | |
parent | eb97a6e7a1afa6d4817545bec3304e906ecc35f7 [diff] |
Allow primary builder to handle missing dependencies In some cases the primary builder may need to handle missing dependencies. Add Context.SetAllowMissingDependencies to cause Blueprint to store the list of missing dependencies without immediately emitting an error, and ModuleContext.GetMissingDependencies to return the missing dependencies to the primary builder. If the primary builder does not call ModuleContext.GetMissingDependencies Blueprint will emit dependency errors.
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.