Add the name of the sdk library to dynamically generated java modules
The name of the sdk library will be used in source vs prebuilt selection. For soong modules that are not dynamically created from a java_sdk_library, the value will be nil. Bug: 308174768 Test: TH Change-Id: Ic7e9889f00c6184992b663a7124967bb0794d475
This commit is contained in:
@@ -48,6 +48,7 @@ func RegisterStubsBuildComponents(ctx android.RegistrationContext) {
|
||||
// Droidstubs
|
||||
type Droidstubs struct {
|
||||
Javadoc
|
||||
embeddableInModuleAndImport
|
||||
|
||||
properties DroidstubsProperties
|
||||
apiFile android.Path
|
||||
@@ -184,6 +185,7 @@ func DroidstubsFactory() android.Module {
|
||||
|
||||
module.AddProperties(&module.properties,
|
||||
&module.Javadoc.properties)
|
||||
module.initModuleAndImport(module)
|
||||
|
||||
InitDroiddocModule(module, android.HostAndDeviceSupported)
|
||||
|
||||
@@ -930,6 +932,8 @@ type PrebuiltStubsSourcesProperties struct {
|
||||
type PrebuiltStubsSources struct {
|
||||
android.ModuleBase
|
||||
android.DefaultableModuleBase
|
||||
embeddableInModuleAndImport
|
||||
|
||||
prebuilt android.Prebuilt
|
||||
|
||||
properties PrebuiltStubsSourcesProperties
|
||||
@@ -1008,6 +1012,7 @@ func PrebuiltStubsSourcesFactory() android.Module {
|
||||
module := &PrebuiltStubsSources{}
|
||||
|
||||
module.AddProperties(&module.properties)
|
||||
module.initModuleAndImport(module)
|
||||
|
||||
android.InitPrebuiltModule(module, &module.properties.Srcs)
|
||||
InitDroiddocModule(module, android.HostAndDeviceSupported)
|
||||
|
Reference in New Issue
Block a user