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

Commit fbd7fabf authored by Alix Espino's avatar Alix Espino Committed by Gerrit Code Review
Browse files

Merge "bp2build support libs for *->android_library_import"

parents 51c1f853 14101de2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -133,6 +133,7 @@ android_library_import {
						"exports": `[":static_import_dep"]`,
					},
				),
				MakeNeverlinkDuplicateTarget("android_library", "TestImport"),
			},
		},
	)
+15 −0
Original line number Diff line number Diff line
@@ -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) {