commit | a7e408af0af05f9bb02e532e4a47220b14665fbb | [log] [tgz] |
---|---|---|
author | Jeff Gaston <jeffrygaston@google.com> | Tue Dec 05 15:11:55 2017 -0800 |
committer | Jeff Gaston <jeffrygaston@google.com> | Tue Dec 05 16:09:02 2017 -0800 |
tree | 016dccbdc2ead75066a2e80df741341cadb48d4c | |
parent | 8fd9578a6a202c3f0a79ce7f819cebfe8e288f7e [diff] |
prevent file=nil panic if syntax error in Blueprints Bug: 65683273 Test: build/soong/scripts/diff_build_graphs.sh \ 'build/blueprint:work^^^' 'build/blueprint:work' Test: put a syntax error in a file and see that the reported error reports the location of the violation Change-Id: Iaeedb91ea8e816cb8e9ee954f21cd6c6bc4afa48
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.