Move API providing modules from bp2build to api_bp2build workspace

The module types in scope are
1. ndk_library
2. ndk_headers, versioned_ndk_headers
3. api_domain

These modules will no longer generate Bazel targets in bp2build
workspace. A new soong mode `api_bp2build` will be used to generate API
specific targets in a separate Bazel workspace at out/soong/api_bp2build

Test: go test ./bp2build

Change-Id: I01d06b6d8b8364c0d56d6d3f07f8f8bf21db31d7
This commit is contained in:
Spandan Das
2022-09-29 00:28:24 +00:00
parent 5af0bd3e48
commit 8b4a5f352e
7 changed files with 22 additions and 15 deletions

View File

@@ -67,7 +67,6 @@ func ApiDomainFactory() Module {
m := &apiDomain{}
m.AddProperties(&m.properties)
InitAndroidArchModule(m, DeviceSupported, MultilibBoth)
InitBazelModule(m)
return m
}
@@ -108,7 +107,9 @@ type bazelApiDomainAttributes struct {
Cc_api_contributions bazel.LabelListAttribute
}
func (a *apiDomain) ConvertWithBp2build(ctx TopDownMutatorContext) {
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",