commit | 2ca94325bf11bf8051ca6cfcffdffc236982baa6 | [log] [tgz] |
---|---|---|
author | Jeff Gaston <jeffrygaston@google.com> | Fri Oct 06 16:50:47 2017 -0700 |
committer | Jeff Gaston <jeffrygaston@google.com> | Wed Oct 18 15:11:19 2017 -0700 |
tree | 9f1d4a2369a876ef242db91eaaeb363b51a0a4b5 | |
parent | 6cd6ebc7681e2991ce57346d71952ae32f9a00ad [diff] |
Have bpfmt show usage when run without any arguments This is partially in hopes of making it generally easier to use, and partially in hopes of specifically making it less tempting to do bpfmt Android.bp > Android.bp which actually would just erase the contents of Android.bp Test: bpfmt Android.bp 2>&1 | grep usage && echo ok Bug: 67326589 Change-Id: I41c23aca6214f27dbdf55e5931f9392c318e82ed
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.