Merge "bp2build support .kt in android_library"

This commit is contained in:
Treehugger Robot
2023-01-25 15:47:49 +00:00
committed by Gerrit Code Review
3 changed files with 40 additions and 0 deletions

View File

@@ -1069,6 +1069,10 @@ func (a *AndroidLibrary) ConvertWithBp2build(ctx android.TopDownMutatorContext)
ctx.ModuleErrorf("Module has direct dependencies but no sources. Bazel will not allow this.")
}
if len(a.properties.Common_srcs) != 0 {
commonAttrs.Common_srcs = bazel.MakeLabelListAttribute(android.BazelLabelForModuleSrc(ctx, a.properties.Common_srcs))
}
name := a.Name()
props := bazel.BazelTargetModuleProperties{
Rule_class: "android_library",