diff options
author | 2023-10-05 10:23:58 +0000 | |
---|---|---|
committer | 2023-10-05 10:23:58 +0000 | |
commit | 863e33471a61d2c36ec4c783a84ea9dc7149ccf9 (patch) | |
tree | 944cf1f3f8ee95d68fa0ce4d958d38861ead42b8 /android/api_domain.go | |
parent | f2fd12d97c511a92d4a1ebb582a04e3ac06da03d (diff) |
Delete some api_bp2build dead code.
Follow up of https://android-review.googlesource.com/2630914
Bug: 284029211
Test: presubmits
Change-Id: Idc0ff2f20e54b81cfdf61472a72e9cb027f60554
Diffstat (limited to 'android/api_domain.go')
-rw-r--r-- | android/api_domain.go | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/android/api_domain.go b/android/api_domain.go index 38f48e3d4..0a66c3d73 100644 --- a/android/api_domain.go +++ b/android/api_domain.go @@ -14,14 +14,6 @@ package android -func init() { - RegisterApiDomainBuildComponents(InitRegistrationContext) -} - -func RegisterApiDomainBuildComponents(ctx RegistrationContext) { - ctx.RegisterModuleType("api_domain", ApiDomainFactory) -} - type ApiSurface int // TODO(b/246656800): Reconcile with android.SdkKind @@ -44,50 +36,3 @@ func (a ApiSurface) String() string { return "invalid" } } - -type apiDomain struct { - ModuleBase - BazelModuleBase - - properties apiDomainProperties -} - -type apiDomainProperties struct { - // cc library contributions (.h files/.map.txt) of this API domain - // This dependency is a no-op in Soong, but the corresponding Bazel target in the api_bp2build workspace - // will provide a `CcApiContributionInfo` provider - Cc_api_contributions []string - - // java library contributions (as .txt) of this API domain - // This dependency is a no-op in Soong, but the corresponding Bazel target in the api_bp2build workspace - // will provide a `JavaApiContributionInfo` provider - Java_api_contributions []string -} - -func ApiDomainFactory() Module { - m := &apiDomain{} - m.AddProperties(&m.properties) - InitAndroidArchModule(m, DeviceSupported, MultilibBoth) - return m -} - -// Do not create any dependency edges in Soong for now to skip visibility checks for some systemapi libraries. -// Currently, all api_domain modules reside in build/orchestrator/apis/Android.bp -// However, cc libraries like libsigchain (com.android.art) restrict their visibility to art/* -// When the api_domain module types are collocated with their contributions, this dependency edge can be restored -func (a *apiDomain) DepsMutator(ctx BottomUpMutatorContext) { -} - -// API domain does not have any builld actions yet -func (a *apiDomain) GenerateAndroidBuildActions(ctx ModuleContext) { -} - -const ( - apiContributionSuffix = ".contribution" -) - -// ApiContributionTargetName returns the name of the bp2build target (e.g. cc_api_contribution) of contribution modules (e.g. ndk_library) -// A suffix is necessary to prevent a name collision with the base target in the same bp2build bazel package -func ApiContributionTargetName(moduleName string) string { - return moduleName + apiContributionSuffix -} |