diff options
author | Colin Cross <ccross@android.com> | 2020-06-04 13:25:17 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2020-06-15 09:46:31 -0700 |
commit | 9855207d0e8b496327255c6bc3a4d36d8449775e (patch) | |
tree | 842bd1a4dac48a2a127c2d3a09b0c1b50ab0fde9 /java/java.go | |
parent | 5a3458ddc0ec26bfb9230b2daf66b4070a854278 (diff) | |
download | build_soong-9855207d0e8b496327255c6bc3a4d36d8449775e.tar.gz build_soong-9855207d0e8b496327255c6bc3a4d36d8449775e.tar.bz2 build_soong-9855207d0e8b496327255c6bc3a4d36d8449775e.zip |
Define Soong phony rules in Make
To support dist-for-goals in Soong, we need to define all phony rules
in Make so that dist-for-goals can insert additional dependencies on
them. Collect all the phony rules in phonySingleton and write them
out as Make rules when Soong is embedded in Make, or as blueprint.Phony
rules when Soong is run standalone.
Bug: 153485543
Test: m checkbuild
Change-Id: I68201eff30744b0f487fc4f11f033767b53a627d
Merged-In: I68201eff30744b0f487fc4f11f033767b53a627d
(cherry picked from commit c3d87d31129405975f9a889e3c1c96cdcbe275a4)
Diffstat (limited to 'java/java.go')
-rw-r--r-- | java/java.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/java/java.go b/java/java.go index b0865040..f563a387 100644 --- a/java/java.go +++ b/java/java.go @@ -2852,11 +2852,7 @@ func (ks *kytheExtractJavaSingleton) GenerateBuildActions(ctx android.SingletonC }) // TODO(asmundak): perhaps emit a rule to output a warning if there were no xrefTargets if len(xrefTargets) > 0 { - ctx.Build(pctx, android.BuildParams{ - Rule: blueprint.Phony, - Output: android.PathForPhony(ctx, "xref_java"), - Inputs: xrefTargets, - }) + ctx.Phony("xref_java", xrefTargets...) } } |