Merge "bp2build support .kt in android_library"
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user