summaryrefslogtreecommitdiff
path: root/android/api_domain.go
diff options
context:
space:
mode:
author Chris Parsons <cparsons@google.com> 2023-09-22 16:21:53 +0000
committer Chris Parsons <cparsons@google.com> 2023-09-22 19:19:22 +0000
commit6666d0f6b1974eed981c54dd5a988b6ce03cae33 (patch)
tree7fd41d1796d57079ecd30e0cbe7c1f96413a5a93 /android/api_domain.go
parent68a3d9b33edc2beff065ee2031b0b2e00361ff74 (diff)
Switch bp2build mutator to bottom up
This should be no-op, as the underlying mutator has not changed yet. Some other refactoring is required and done in this CL: - Delete some old, dead ApiBp2build code - Fix casting to TopDownMutator when it's not necessary This change is required to prepare for allowlist v2 work, as only BottomUp mutators can AddDependency. Bug: 285631638 Test: m nothing Test: presubmits Change-Id: I5212a5f5634cc13056195783e6df37ff8eb000da
Diffstat (limited to 'android/api_domain.go')
-rw-r--r--android/api_domain.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/android/api_domain.go b/android/api_domain.go
index 587ceaefa..0603c7016 100644
--- a/android/api_domain.go
+++ b/android/api_domain.go
@@ -107,24 +107,3 @@ func contributionBazelAttributes(ctx TopDownMutatorContext, contributions []stri
bazelLabels := BazelLabelForModuleDepsWithFn(ctx, contributions, addSuffix)
return bazel.MakeLabelListAttribute(bazelLabels)
}
-
-type bazelApiDomainAttributes struct {
- Cc_api_contributions bazel.LabelListAttribute
- Java_api_contributions bazel.LabelListAttribute
-}
-
-var _ ApiProvider = (*apiDomain)(nil)
-
-func (a *apiDomain) ConvertWithApiBp2build(ctx TopDownMutatorContext) {
- props := bazel.BazelTargetModuleProperties{
- Rule_class: "api_domain",
- Bzl_load_location: "//build/bazel/rules/apis:api_domain.bzl",
- }
- attrs := &bazelApiDomainAttributes{
- Cc_api_contributions: contributionBazelAttributes(ctx, a.properties.Cc_api_contributions),
- Java_api_contributions: contributionBazelAttributes(ctx, a.properties.Java_api_contributions),
- }
- ctx.CreateBazelTargetModule(props, CommonAttributes{
- Name: ctx.ModuleName(),
- }, attrs)
-}