Merge "Don't create a new module for bp2build conversion."
This commit is contained in:
20
apex/apex.go
20
apex/apex.go
@@ -3231,18 +3231,6 @@ type bazelApexBundleAttributes struct {
|
||||
Prebuilts bazel.LabelListAttribute
|
||||
}
|
||||
|
||||
type bazelApexBundle struct {
|
||||
android.BazelTargetModuleBase
|
||||
bazelApexBundleAttributes
|
||||
}
|
||||
|
||||
func BazelApexBundleFactory() android.Module {
|
||||
module := &bazelApexBundle{}
|
||||
module.AddProperties(&module.bazelApexBundleAttributes)
|
||||
android.InitBazelTargetModule(module)
|
||||
return module
|
||||
}
|
||||
|
||||
func ApexBundleBp2Build(ctx android.TopDownMutatorContext) {
|
||||
module, ok := ctx.Module().(*apexBundle)
|
||||
if !ok {
|
||||
@@ -3330,11 +3318,5 @@ func apexBundleBp2BuildInternal(ctx android.TopDownMutatorContext, module *apexB
|
||||
Bzl_load_location: "//build/bazel/rules:apex.bzl",
|
||||
}
|
||||
|
||||
ctx.CreateBazelTargetModule(BazelApexBundleFactory, module.Name(), props, attrs)
|
||||
ctx.CreateBazelTargetModule(module.Name(), props, attrs)
|
||||
}
|
||||
|
||||
func (m *bazelApexBundle) Name() string {
|
||||
return m.BaseModuleName()
|
||||
}
|
||||
|
||||
func (m *bazelApexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) {}
|
||||
|
Reference in New Issue
Block a user