diff options
| author | Colin Cross <ccross@android.com> | 2020-07-09 14:24:56 -0700 |
|---|---|---|
| committer | Colin Cross <ccross@android.com> | 2020-07-09 14:28:20 -0700 |
| commit | 9ece72b0550811f743d2e05b4cb0ca374a9a2b02 (patch) | |
| tree | 72691e48692090865e175621e0e5c4b1bc5127fd /live_tracker.go | |
| parent | e635dc0568690809235cf91c10cd648fe6414c21 (diff) | |
| download | platform_build_blueprint-9ece72b0550811f743d2e05b4cb0ca374a9a2b02.tar.gz platform_build_blueprint-9ece72b0550811f743d2e05b4cb0ca374a9a2b02.tar.bz2 platform_build_blueprint-9ece72b0550811f743d2e05b4cb0ca374a9a2b02.zip | |
Add Validations support to Blueprint
The Android fork of Ninja supports "validations", a node that is
added to the top level of the build graph whenever another node
is in the build graph. Add support in Blueprint to specify them
on build statements and write them to the ninja.
Test: ninja_writer_test.go
Change-Id: I87cd1281dbd2ed113cc26a265c50d20c65118c91
Diffstat (limited to 'live_tracker.go')
| -rw-r--r-- | live_tracker.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/live_tracker.go b/live_tracker.go index 40e1930..1d48e58 100644 --- a/live_tracker.go +++ b/live_tracker.go @@ -68,6 +68,11 @@ func (l *liveTracker) AddBuildDefDeps(def *buildDef) error { return err } + err = l.addNinjaStringListDeps(def.Validations) + if err != nil { + return err + } + for _, value := range def.Variables { err = l.addNinjaStringDeps(value) if err != nil { |
