commit | 8de48af6dead4b25ce6a679af50e815b3cec4522 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue May 09 10:03:00 2017 -0700 |
committer | Colin Cross <ccross@android.com> | Tue May 09 10:14:38 2017 -0700 |
tree | a0feabcd3ad2ca99acb28fe82e77381986d197ac | |
parent | 7aa318f83d8a16c1684660d5eca805993f2d0ac5 [diff] |
Escape leading space in ninja strings Spaces normally don't need to be escaped, but leading spaces are trimmed. Escape leading space to allow setting a variable to a value with leading spaces. Test: ninja_string_test.go Change-Id: Ic0ffb076dbd603b7c0203720b9c1ea635c5ded75
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.