diff options
author | 2023-12-07 13:10:56 -0800 | |
---|---|---|
committer | 2023-12-08 13:51:05 -0800 | |
commit | 8ff105860d20f2ccbb8d8044bf562f94100b7f6a (patch) | |
tree | b01575cd628eb36807b7ca274de28fd6a1971e17 /aidl_library/aidl_library.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 'aidl_library/aidl_library.go')
-rw-r--r-- | aidl_library/aidl_library.go | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/aidl_library/aidl_library.go b/aidl_library/aidl_library.go index 2c0aef77f..b49c51619 100644 --- a/aidl_library/aidl_library.go +++ b/aidl_library/aidl_library.go @@ -16,8 +16,6 @@ package aidl_library import ( "android/soong/android" - "android/soong/bazel" - "github.com/google/blueprint" "github.com/google/blueprint/proptools" ) @@ -53,57 +51,9 @@ type aidlLibraryProperties struct { type AidlLibrary struct { android.ModuleBase - android.BazelModuleBase properties aidlLibraryProperties } -type bazelAidlLibraryAttributes struct { - Srcs bazel.LabelListAttribute - Hdrs bazel.LabelListAttribute - Strip_import_prefix *string - Deps bazel.LabelListAttribute -} - -func (lib *AidlLibrary) ConvertWithBp2build(ctx android.Bp2buildMutatorContext) { - srcs := bazel.MakeLabelListAttribute( - android.BazelLabelForModuleSrc( - ctx, - lib.properties.Srcs, - ), - ) - - hdrs := bazel.MakeLabelListAttribute( - android.BazelLabelForModuleSrc( - ctx, - lib.properties.Hdrs, - ), - ) - - tags := []string{"apex_available=//apex_available:anyapex"} - deps := bazel.MakeLabelListAttribute(android.BazelLabelForModuleDeps(ctx, lib.properties.Deps)) - - attrs := &bazelAidlLibraryAttributes{ - Srcs: srcs, - Hdrs: hdrs, - Strip_import_prefix: lib.properties.Strip_import_prefix, - Deps: deps, - } - - props := bazel.BazelTargetModuleProperties{ - Rule_class: "aidl_library", - Bzl_load_location: "//build/bazel/rules/aidl:aidl_library.bzl", - } - - ctx.CreateBazelTargetModule( - props, - android.CommonAttributes{ - Name: lib.Name(), - Tags: bazel.MakeStringListAttribute(tags), - }, - attrs, - ) -} - type AidlLibraryInfo struct { // The direct aidl files of the module Srcs android.Paths @@ -170,7 +120,6 @@ func AidlLibraryFactory() android.Module { module := &AidlLibrary{} module.AddProperties(&module.properties) android.InitAndroidModule(module) - android.InitBazelModule(module) return module } |