[automerge] Add back the api_srcs argument 2p: b727c1e0ba

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

Bug: 186197911
Change-Id: I3fdfdacf2c083cd7f4c1f88c657e8ab245927f6f
This commit is contained in:
Anton Hansson
2021-09-17 13:21:39 +00:00
committed by Presubmit Automerger Backend

View File

@@ -359,6 +359,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
@@ -1448,6 +1451,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)