Browse Source

Add support using libgdiplus on macOS

js/color-alpha-handling
AlexNDRmac 5 years ago
parent
commit
2871e8ed2e
No known key found for this signature in database GPG Key ID: ECCF738337BCF66F
  1. 8
      src/ImageSharp/ImageSharp.csproj
  2. 4
      tests/ImageSharp.Benchmarks/ImageSharp.Benchmarks.csproj
  3. 2
      tests/ImageSharp.Tests/ImageSharp.Tests.csproj

8
src/ImageSharp/ImageSharp.csproj

@ -28,6 +28,14 @@
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" />
</ItemGroup>
<!-- Enable support for using libgdiplus on macOS -->
<ItemGroup Condition="$(TargetFramework.StartsWith('netcoreapp')) AND $([MSBuild]::IsOSPlatform('OSX'))">
<PackageReference Include="runtime.osx.10.10-x64.CoreCompat.System.Drawing" Version="5.8.64" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework.StartsWith('netstandard')) AND $([MSBuild]::IsOSPlatform('OSX'))">
<PackageReference Include="runtime.osx.10.10-x64.CoreCompat.System.Drawing" Version="5.8.64" />
</ItemGroup>
<ItemGroup Condition=" $(TargetFramework.StartsWith('netstandard')) OR '$(TargetFramework)' == 'net472'">
<PackageReference Include="System.Numerics.Vectors" />
<PackageReference Include="System.Buffers" />

4
tests/ImageSharp.Benchmarks/ImageSharp.Benchmarks.csproj

@ -26,7 +26,9 @@
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Condition="'$(OS)' == 'Windows_NT'" />
<PackageReference Include="Colourful" />
<PackageReference Include="Pfim" />
<PackageReference Include="SharpZipLib" />
<!-- Enable support for using libgdiplus on macOS -->
<PackageReference Include="runtime.osx.10.10-x64.CoreCompat.System.Drawing" Version="5.8.64" Condition="$([MSBuild]::IsOSPlatform('OSX'))" />
<PackageReference Include="SharpZipLib" />
<PackageReference Include="System.Drawing.Common" />
</ItemGroup>

2
tests/ImageSharp.Tests/ImageSharp.Tests.csproj

@ -22,6 +22,8 @@
<PackageReference Include="Microsoft.DotNet.RemoteExecutor" />
<PackageReference Include="Microsoft.DotNet.XUnitExtensions" />
<PackageReference Include="Moq" />
<!-- Enable support for using libgdiplus on macOS -->
<PackageReference Include="runtime.osx.10.10-x64.CoreCompat.System.Drawing" Version="5.8.64" Condition="$([MSBuild]::IsOSPlatform('OSX'))" />
<PackageReference Include="SharpZipLib" />
<PackageReference Include="System.Drawing.Common" />
</ItemGroup>

Loading…
Cancel
Save