Loading cc/binary_sdk_member.go +1 −1 Original line number Diff line number Diff line Loading @@ -111,7 +111,7 @@ func (p *nativeBinaryInfoProperties) PopulateFromVariant(ctx android.SdkMemberCo ccModule := variant.(*Module) p.archType = ccModule.Target().Arch.ArchType.String() p.outputFile = ccModule.OutputFile().Path() p.outputFile = getRequiredMemberOutputFile(ctx, ccModule) if ccModule.linker != nil { specifiedDeps := specifiedDeps{} Loading cc/library_sdk_member.go +12 −1 Original line number Diff line number Diff line Loading @@ -354,7 +354,7 @@ func (p *nativeLibInfoProperties) PopulateFromVariant(ctx android.SdkMemberConte // If the library has some link types then it produces an output binary file, otherwise it // is header only. if !p.memberType.noOutputFiles { p.outputFile = ccModule.OutputFile().Path() p.outputFile = getRequiredMemberOutputFile(ctx, ccModule) } // Separate out the generated include dirs (which are arch specific) from the Loading Loading @@ -388,6 +388,17 @@ func (p *nativeLibInfoProperties) PopulateFromVariant(ctx android.SdkMemberConte } } func getRequiredMemberOutputFile(ctx android.SdkMemberContext, ccModule *Module) android.Path { var path android.Path outputFile := ccModule.OutputFile() if outputFile.Valid() { path = outputFile.Path() } else { ctx.SdkModuleContext().ModuleErrorf("member variant %s does not have a valid output file", ccModule) } return path } func (p *nativeLibInfoProperties) AddToPropertySet(ctx android.SdkMemberContext, propertySet android.BpPropertySet) { addPossiblyArchSpecificProperties(ctx.SdkModuleContext(), ctx.SnapshotBuilder(), p, propertySet) } Loading
cc/binary_sdk_member.go +1 −1 Original line number Diff line number Diff line Loading @@ -111,7 +111,7 @@ func (p *nativeBinaryInfoProperties) PopulateFromVariant(ctx android.SdkMemberCo ccModule := variant.(*Module) p.archType = ccModule.Target().Arch.ArchType.String() p.outputFile = ccModule.OutputFile().Path() p.outputFile = getRequiredMemberOutputFile(ctx, ccModule) if ccModule.linker != nil { specifiedDeps := specifiedDeps{} Loading
cc/library_sdk_member.go +12 −1 Original line number Diff line number Diff line Loading @@ -354,7 +354,7 @@ func (p *nativeLibInfoProperties) PopulateFromVariant(ctx android.SdkMemberConte // If the library has some link types then it produces an output binary file, otherwise it // is header only. if !p.memberType.noOutputFiles { p.outputFile = ccModule.OutputFile().Path() p.outputFile = getRequiredMemberOutputFile(ctx, ccModule) } // Separate out the generated include dirs (which are arch specific) from the Loading Loading @@ -388,6 +388,17 @@ func (p *nativeLibInfoProperties) PopulateFromVariant(ctx android.SdkMemberConte } } func getRequiredMemberOutputFile(ctx android.SdkMemberContext, ccModule *Module) android.Path { var path android.Path outputFile := ccModule.OutputFile() if outputFile.Valid() { path = outputFile.Path() } else { ctx.SdkModuleContext().ModuleErrorf("member variant %s does not have a valid output file", ccModule) } return path } func (p *nativeLibInfoProperties) AddToPropertySet(ctx android.SdkMemberContext, propertySet android.BpPropertySet) { addPossiblyArchSpecificProperties(ctx.SdkModuleContext(), ctx.SnapshotBuilder(), p, propertySet) }