Merge changes from topic "api_export"
* changes: Allowlist conversion of api providing module types Multi-tree API bp2build converter for ndk_library
This commit is contained in:
@@ -554,12 +554,15 @@ var (
|
||||
}
|
||||
|
||||
Bp2buildModuleTypeAlwaysConvertList = []string{
|
||||
"aidl_interface_headers",
|
||||
"api_domain",
|
||||
"license",
|
||||
"linker_config",
|
||||
"java_import",
|
||||
"java_import_host",
|
||||
"ndk_headers",
|
||||
"ndk_library",
|
||||
"sysprop_library",
|
||||
"aidl_interface_headers",
|
||||
}
|
||||
|
||||
Bp2buildModuleDoNotConvertList = []string{
|
||||
|
@@ -28,6 +28,28 @@ func RegisterApiDomainBuildComponents(ctx RegistrationContext) {
|
||||
ctx.RegisterModuleType("api_domain", ApiDomainFactory)
|
||||
}
|
||||
|
||||
type ApiSurface int
|
||||
|
||||
// TODO(b/246656800): Reconcile with android.SdkKind
|
||||
const (
|
||||
PublicApi ApiSurface = iota
|
||||
SystemApi
|
||||
VendorApi
|
||||
)
|
||||
|
||||
func (a ApiSurface) String() string {
|
||||
switch a {
|
||||
case PublicApi:
|
||||
return "publicapi"
|
||||
case SystemApi:
|
||||
return "systemapi"
|
||||
case VendorApi:
|
||||
return "vendorapi"
|
||||
default:
|
||||
return "invalid"
|
||||
}
|
||||
}
|
||||
|
||||
type apiDomain struct {
|
||||
ModuleBase
|
||||
BazelModuleBase
|
||||
|
Reference in New Issue
Block a user