23 lines
1.2 KiB
XML
23 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<!-- temporarily work around https://github.com/xamarin/xamarin-macios/issues/11667 -->
|
|
<Target Name="_SkiaSharpExpandNativeReferencesFixes" BeforeTargets="_ExpandNativeReferences">
|
|
<ItemGroup>
|
|
<_PossibleNativeReference
|
|
Include="@(ResolvedFileToPublish)"
|
|
Condition="
|
|
'%(ResolvedFileToPublish.AssetType)' == 'native' and
|
|
'%(ResolvedFileToPublish.Filename)' == 'libSkiaSharp' and
|
|
'%(ResolvedFileToPublish.Extension)' == '.dylib' and
|
|
'%(ResolvedFileToPublish.NuGetPackageId)' != '' and
|
|
'%(ResolvedFileToPublish.PathInPackage)' != ''" />
|
|
<NativeReference Include="@(_PossibleNativeReference)">
|
|
<Kind>Dynamic</Kind>
|
|
<RuntimeIdentifier>$([System.Text.RegularExpressions.Regex]::Match('%(_PossibleNativeReference.PathInPackage)', 'runtimes/([^/]+)/native/.*').Groups[1].Value)</RuntimeIdentifier>
|
|
</NativeReference>
|
|
<_PossibleNativeReference Remove="@(_PossibleNativeReference)" />
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
</Project> |