From c3d87d31129405975f9a889e3c1c96cdcbe275a4 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 4 Jun 2020 13:25:17 -0700 Subject: 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 --- java/java.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'java/java.go') 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...) } } -- cgit v1.2.3-59-g8ed1b