From 8ff105860d20f2ccbb8d8044bf562f94100b7f6a Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 7 Dec 2023 13:10:56 -0800 Subject: 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 --- xml/xml.go | 42 ------------------------------------------ 1 file changed, 42 deletions(-) (limited to 'xml/xml.go') 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) -} -- cgit v1.2.3-59-g8ed1b