Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions dotnet/targets/Xamarin.Shared.Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2585,6 +2585,36 @@ global using nfloat = global::System.Runtime.InteropServices.NFloat%3B
</ItemGroup>
</Target>

<!--
Add CoreCLR/R2R framework to post-processing so they get stripped.
-->
<Target Name="_CollectR2RFrameworksForPostProcessing"
AfterTargets="_CollectItemsForPostProcessing"
BeforeTargets="_StoreCollectedItemsForPostProcessing;_PreparePostProcessing">
<ItemGroup>
<!-- Add CoreCLR runtime -->
<_PostProcessingItem
Include="@(_CreatedFrameworksFromDylibs->'$([System.IO.Path]::GetFileName($(AppBundleDir)))/$(_AppFrameworksRelativePath)%(Filename).framework/%(Filename)')">
<Kind>Framework</Kind>
<NoSymbolStrip>false</NoSymbolStrip>
<NoDSymUtil>true</NoDSymUtil>
<DSymName>%(Filename).dSYM</DSymName>
<dSYMInfoPlistRelativePath>%(Filename).dSYM\Contents\Info.plist</dSYMInfoPlistRelativePath>
<BCSymbolMapName>%(Filename).bcsymbolmap</BCSymbolMapName>
</_PostProcessingItem>
<!-- Add R2R composite -->
<_PostProcessingItem
Include="$([System.IO.Path]::GetFileName('$(AppBundleDir)'))/$(_AppFrameworksRelativePath)$(_R2RFrameworkName).framework/$(_R2RFrameworkName)" Condition="'$(CreateR2RFramework)' == 'true'">
<Kind>Framework</Kind>
<NoSymbolStrip>false</NoSymbolStrip>
<NoDSymUtil>true</NoDSymUtil>
<DSymName>$(_R2RFrameworkName).dSYM</DSymName>
<dSYMInfoPlistRelativePath>$(_R2RFrameworkName).dSYM\Contents\Info.plist</dSYMInfoPlistRelativePath>
<BCSymbolMapName>$(_R2RFrameworkName).bcsymbolmap</BCSymbolMapName>
</_PostProcessingItem>
</ItemGroup>
</Target>

<!-- Import existing targets -->

<PropertyGroup>
Expand Down
Loading