Move setting of link type properties to linkPropertyInfo am: f68f85a3ca am: c64e43dcd3 am: b03c953d56

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

Change-Id: I4387bffdb4b222dfdfdd8b4f374ad6afd64f2593
This commit is contained in:
Paul Duffin
2021-09-16 09:01:53 +00:00
committed by Automerger Merge Worker

View File

@@ -1608,8 +1608,7 @@ func (archInfo *archTypeSpecificInfo) addToPropertySet(ctx *memberContext, archP
addSdkMemberPropertiesToSet(ctx, archInfo.Properties, archTypePropertySet)
for _, linkInfo := range archInfo.linkInfos {
linkPropertySet := archTypePropertySet.AddPropertySet(linkInfo.linkType)
addSdkMemberPropertiesToSet(ctx, linkInfo.Properties, linkPropertySet)
linkInfo.addToPropertySet(ctx, archTypePropertySet)
}
}
@@ -1640,6 +1639,11 @@ func newLinkSpecificInfo(ctx android.SdkMemberContext, linkType string, variantP
return linkInfo
}
func (l *linkTypeSpecificInfo) addToPropertySet(ctx *memberContext, propertySet android.BpPropertySet) {
linkPropertySet := propertySet.AddPropertySet(l.linkType)
addSdkMemberPropertiesToSet(ctx, l.Properties, linkPropertySet)
}
func (l *linkTypeSpecificInfo) String() string {
return fmt.Sprintf("LinkType{%s}", l.linkType)
}