Remove SdkMemberType.FinalizeModule
This was only being used to set the "stl" property for cc library sdk member type and so that functionality was moved to AddPrebuiltModule() and FinalizeModule was removed. Required a few test changes to move the property to the correct position in the generated module. Bug: 142918168 Test: m nothing Change-Id: If6400189833d4ff3285e7a7adf63a9b509e2a03b
This commit is contained in:
@@ -105,15 +105,12 @@ func (mt *librarySdkMemberType) AddPrebuiltModule(sdkModuleContext android.Modul
|
||||
if sdkVersion != "" {
|
||||
pbm.AddProperty("sdk_version", sdkVersion)
|
||||
}
|
||||
return pbm
|
||||
}
|
||||
|
||||
func (mt *librarySdkMemberType) FinalizeModule(sdkModuleContext android.ModuleContext, builder android.SnapshotBuilder, member android.SdkMember, bpModule android.BpModule) {
|
||||
ccModule := (member.Variants()[0]).(*Module)
|
||||
stl := ccModule.stl.Properties.Stl
|
||||
if stl != nil {
|
||||
bpModule.AddProperty("stl", proptools.String(stl))
|
||||
pbm.AddProperty("stl", proptools.String(stl))
|
||||
}
|
||||
return pbm
|
||||
}
|
||||
|
||||
func (mt *librarySdkMemberType) CreateVariantPropertiesStruct() android.SdkMemberProperties {
|
||||
|
Reference in New Issue
Block a user