commit | 01739302cbf3c26e28bd8dcecc7dc90ae0bbdfc0 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Nov 18 15:15:41 2015 -0800 |
committer | Colin Cross <ccross@android.com> | Wed Nov 18 15:15:41 2015 -0800 |
tree | 5fadc24878b4006a78ba7b67c35cf38c1894d4e5 | |
parent | e6006362dab1494107f591c5ae3f168d8adbd512 [diff] |
Allow multiple calls to ctx.SetBuildDir ctx.SetBuildDir is called by the bootstrap singleton, which is always last. In order to allow the primary builder to set the directory for .ninja_log/.ninja_deps, remove the panic on multiple calls to ctx.SetBuildDir, and always used the value passed by the first caller.
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.