Created kotlinAttributes struct
makes it clearer which attributes are kotlin specific embedded within javaCommonAttributes since both java_* and android_* use kotlin. Change-Id: Ib7c9b912a9901cd1c3d150ab1e0a79011d8e07de Test: go test ./bp2build
This commit is contained in:
@@ -1092,11 +1092,6 @@ func (a *AndroidLibrary) ConvertWithBp2build(ctx android.TopDownMutatorContext)
|
||||
} else if !depLabels.Deps.IsEmpty() {
|
||||
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