Merge changes from topic "prebuilt-cc-shared-always" into main

* changes:
  Implement bp2build for java_sdk_library_import
  Always convert prebuilt libraries
  Always convert prebuilt cc library headers
This commit is contained in:
Liz Kammer
2023-09-20 13:13:51 +00:00
committed by Gerrit Code Review
6 changed files with 178 additions and 50 deletions

View File

@@ -153,8 +153,13 @@ func libraryHeadersBp2Build(ctx android.TopDownMutatorContext, module *Module) {
tags := android.ApexAvailableTagsWithoutTestApexes(ctx, module)
name := module.Name()
if module.IsPrebuilt() {
name = android.RemoveOptionalPrebuiltPrefix(name)
}
ctx.CreateBazelTargetModule(props, android.CommonAttributes{
Name: module.Name(),
Name: name,
Tags: tags,
}, attrs)
}