commit | 3deba3df45410b68bb9e855be558d1053c3cdfc2 | [log] [tgz] |
---|---|---|
author | Logan Chien <loganchien@google.com> | Mon Jun 25 11:52:48 2018 +0800 |
committer | Logan Chien <loganchien@google.com> | Tue Jun 26 12:20:08 2018 +0800 |
tree | b3a295c4b4aaa56ca3d51aa9dfa8dfb6a3e28dcf | |
parent | 3b3bd2aac06df69c50ac3653a0cf2822d806cbfd [diff] |
Emit errors on mixed property syntax This commit refines `compat` condition in `parseProperty()` so that a module definition would either use the new syntax or the old syntax, but not something in the between, such as cc_library { name: "bad_example", srcs= ["bad.c"], } Test: lunch aosp_arm64-userdebug; make # runs unit test Change-Id: If2d3e5d55edccc28d314d99b83b0f54e5c53ac35
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.