diff options
author | 2023-12-07 13:10:56 -0800 | |
---|---|---|
committer | 2023-12-08 13:51:05 -0800 | |
commit | 8ff105860d20f2ccbb8d8044bf562f94100b7f6a (patch) | |
tree | b01575cd628eb36807b7ca274de28fd6a1971e17 /xml/xml.go | |
parent | e51c6e4109e8063e54cf7d8ced1b7da7f9359c34 (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 'xml/xml.go')
-rw-r--r-- | xml/xml.go | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/xml/xml.go b/xml/xml.go index 65fe12a8e..c28107847 100644 --- a/xml/xml.go +++ b/xml/xml.go @@ -16,7 +16,6 @@ package xml import ( "android/soong/android" - "android/soong/bazel" "android/soong/etc" "github.com/google/blueprint" @@ -68,8 +67,6 @@ type prebuiltEtcXmlProperties struct { } type prebuiltEtcXml struct { - android.BazelModuleBase - etc.PrebuiltEtc properties prebuiltEtcXmlProperties @@ -132,44 +129,5 @@ func PrebuiltEtcXmlFactory() android.Module { etc.InitPrebuiltEtcModule(&module.PrebuiltEtc, "etc") // This module is device-only android.InitAndroidArchModule(module, android.DeviceSupported, android.MultilibFirst) - android.InitBazelModule(module) return module } - -type bazelPrebuiltEtcXmlAttributes struct { - Src bazel.LabelAttribute - Filename bazel.LabelAttribute - Dir string - Installable bazel.BoolAttribute - Filename_from_src bazel.BoolAttribute - Schema *string -} - -func (p *prebuiltEtcXml) ConvertWithBp2build(ctx android.Bp2buildMutatorContext) { - baseAttrs, convertible := p.PrebuiltEtc.Bp2buildHelper(ctx) - - if !convertible { - return - } - - var schema *string - if p.properties.Schema != nil { - schema = p.properties.Schema - } - - attrs := &bazelPrebuiltEtcXmlAttributes{ - Src: baseAttrs.Src, - Filename: baseAttrs.Filename, - Dir: baseAttrs.Dir, - Installable: baseAttrs.Installable, - Filename_from_src: baseAttrs.Filename_from_src, - Schema: schema, - } - - props := bazel.BazelTargetModuleProperties{ - Rule_class: "prebuilt_xml", - Bzl_load_location: "//build/bazel/rules/prebuilt_xml.bzl", - } - - ctx.CreateBazelTargetModule(props, android.CommonAttributes{Name: p.Name()}, attrs) -} |