bp2build support libs for *->android_library_import
Test: bp2build tests Bug: 258688914 Change-Id: Ibeae04e4c006f84f902774821c92f463a7c709eb
This commit is contained in:
15
java/aar.go
15
java/aar.go
@@ -1041,6 +1041,21 @@ func (a *AARImport) ConvertWithBp2build(ctx android.TopDownMutatorContext) {
|
||||
},
|
||||
)
|
||||
|
||||
neverlink := true
|
||||
ctx.CreateBazelTargetModule(
|
||||
bazel.BazelTargetModuleProperties{
|
||||
Rule_class: "android_library",
|
||||
Bzl_load_location: "//build/bazel/rules/android:rules.bzl",
|
||||
},
|
||||
android.CommonAttributes{Name: name + "-neverlink"},
|
||||
&bazelAndroidLibrary{
|
||||
javaLibraryAttributes: &javaLibraryAttributes{
|
||||
Neverlink: bazel.BoolAttribute{Value: &neverlink},
|
||||
Exports: bazel.MakeSingleLabelListAttribute(bazel.Label{Label: ":" + name}),
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
func (a *AndroidLibrary) ConvertWithBp2build(ctx android.TopDownMutatorContext) {
|
||||
|
Reference in New Issue
Block a user