Merge "Add back the api_srcs argument" am: 8b1add6dd4

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1830032

Change-Id: I1dd0b451e8d195e7f382b649aedadebb804a429f
This commit is contained in:
Anton Hansson 2021-09-21 14:57:36 +00:00 committed by Automerger Merge Worker
commit 825a2659e6

View file

@ -376,6 +376,9 @@ type ApiScopeProperties struct {
}
type sdkLibraryProperties struct {
// List of source files that are needed to compile the API, but are not part of runtime library.
Api_srcs []string `android:"arch_variant"`
// Visibility for impl library module. If not specified then defaults to the
// visibility property.
Impl_library_visibility []string
@ -1438,6 +1441,7 @@ func (module *SdkLibrary) createStubsSourcesAndApi(mctx android.DefaultableHookC
props.Name = proptools.StringPtr(name)
props.Visibility = childModuleVisibility(module.sdkLibraryProperties.Stubs_source_visibility)
props.Srcs = append(props.Srcs, module.properties.Srcs...)
props.Srcs = append(props.Srcs, module.sdkLibraryProperties.Api_srcs...)
props.Sdk_version = module.deviceProperties.Sdk_version
props.System_modules = module.deviceProperties.System_modules
props.Installable = proptools.BoolPtr(false)