summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2020-06-04 13:25:17 -0700
committerColin Cross <ccross@android.com>2020-06-09 14:38:50 -0700
commitc3d87d31129405975f9a889e3c1c96cdcbe275a4 (patch)
tree24d500cb6ae5657f11a552ec167b496a43d6563f /java/java.go
parent2fce23ae6d0e66c00940fd249845c4880b478092 (diff)
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. Test: m checkbuild Change-Id: I68201eff30744b0f487fc4f11f033767b53a627d
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/java/java.go b/java/java.go
index af68e56b7..9a352dbe0 100644
--- a/java/java.go
+++ b/java/java.go
@@ -2863,11 +2863,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...)
}
}