Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5a0089a authored by Jingwen Chen's avatar Jingwen Chen Committed by Gerrit Code Review
Browse files

Merge "bp2build: genrule converter only supports "genrule"."

parents a5d09762 6648045f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -824,6 +824,11 @@ func GenruleBp2Build(ctx android.TopDownMutatorContext) {
		return
	}

	if ctx.ModuleType() != "genrule" {
		// Not a regular genrule. Could be a cc_genrule or java_genrule.
		return
	}

	// Bazel only has the "tools" attribute.
	tools := android.BazelLabelForModuleDeps(ctx, m.properties.Tools)
	tool_files := android.BazelLabelForModuleSrc(ctx, m.properties.Tool_files)