commit | 41ca49ff91e2c7beb4d39b44ee6131aad7bb4106 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Thu Sep 29 13:19:34 2016 -0700 |
committer | Colin Cross <ccross@android.com> | Thu Sep 29 14:31:40 2016 -0700 |
tree | 4a5806d21bb81a273a4aa7f843a0da04d6cbfb44 | |
parent | f5909d9cb5e309886007c4720f6b3d344cf0a479 [diff] |
Add proptools functions to escape strings Blueprint properties that end up as command line arguments need to be both ninja and shell escaped. Provide helpers that primary builders can use to appropriately escape them. Change-Id: Ifd697d87edb1c6f0a910377835c391bbe8f95b42
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.