summaryrefslogtreecommitdiff
path: root/aconfig/aconfig_values.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2023-12-07 13:10:56 -0800
committer Colin Cross <ccross@android.com> 2023-12-08 13:51:05 -0800
commit8ff105860d20f2ccbb8d8044bf562f94100b7f6a (patch)
treeb01575cd628eb36807b7ca274de28fd6a1971e17 /aconfig/aconfig_values.go
parente51c6e4109e8063e54cf7d8ced1b7da7f9359c34 (diff)
Remove ConvertWithBp2build implementations
Remove the ConvertWithBp2build implementations from all the module types, along with the related code. Bug: 315353489 Test: m blueprint_tests Change-Id: I212672286686a318893bc7348ddd5a5ec51e77a7
Diffstat (limited to 'aconfig/aconfig_values.go')
-rw-r--r--aconfig/aconfig_values.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/aconfig/aconfig_values.go b/aconfig/aconfig_values.go
index 03a930dbd..621aae8cf 100644
--- a/aconfig/aconfig_values.go
+++ b/aconfig/aconfig_values.go
@@ -16,7 +16,6 @@ package aconfig
import (
"android/soong/android"
- "android/soong/bazel"
"github.com/google/blueprint"
)
@@ -24,7 +23,6 @@ import (
type ValuesModule struct {
android.ModuleBase
android.DefaultableModuleBase
- android.BazelModuleBase
properties struct {
// aconfig files, relative to this Android.bp file
@@ -41,7 +39,6 @@ func ValuesFactory() android.Module {
android.InitAndroidModule(module)
android.InitDefaultableModule(module)
module.AddProperties(&module.properties)
- android.InitBazelModule(module)
return module
}
@@ -69,27 +66,3 @@ func (module *ValuesModule) GenerateAndroidBuildActions(ctx android.ModuleContex
}
ctx.SetProvider(valuesProviderKey, providerData)
}
-
-type bazelAconfigValuesAttributes struct {
- Srcs bazel.LabelListAttribute
- Package string
-}
-
-func (module *ValuesModule) ConvertWithBp2build(ctx android.Bp2buildMutatorContext) {
- if ctx.ModuleType() != "aconfig_values" {
- return
- }
-
- srcs := bazel.MakeLabelListAttribute(android.BazelLabelForModuleSrc(ctx, module.properties.Srcs))
-
- attrs := bazelAconfigValuesAttributes{
- Srcs: srcs,
- Package: module.properties.Package,
- }
- props := bazel.BazelTargetModuleProperties{
- Rule_class: "aconfig_values",
- Bzl_load_location: "//build/bazel/rules/aconfig:aconfig_values.bzl",
- }
-
- ctx.CreateBazelTargetModule(props, android.CommonAttributes{Name: module.Name()}, &attrs)
-}