-
-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathSixLabors.ImageSharp.Drawing.WebGPU.targets
More file actions
28 lines (24 loc) · 1.33 KB
/
SixLabors.ImageSharp.Drawing.WebGPU.targets
File metadata and controls
28 lines (24 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="utf-8"?>
<Project>
<!-- NuGet selects this buildTransitive target for WebGPU consumers, so chain to the generated build target containing license validation. -->
<Import Project="$(MSBuildThisFileDirectory)..\build\SixLabors.ImageSharp.Drawing.WebGPU.targets"
Condition="Exists('$(MSBuildThisFileDirectory)..\build\SixLabors.ImageSharp.Drawing.WebGPU.targets')" />
<!--
Work around Silk.NET native runtime assets not always landing in the final output directory.
See https://github.com/dotnet/Silk.NET/issues/2465
-->
<Target Name="SixLaborsImageSharpDrawingWebGPUCopyNativeLibraries"
AfterTargets="Build"
Condition="'$(DesignTimeBuild)' != 'true'
and '$(IsCrossTargetingBuild)' != 'true'
and '$(SixLaborsWebGPUCopyNativeLibraries)' != 'false'">
<ItemGroup>
<_SixLaborsImageSharpDrawingWebGPUNativeLibs Include="@(RuntimeTargetsCopyLocalItems)"
Condition="'%(RuntimeTargetsCopyLocalItems.AssetType)' == 'native'" />
</ItemGroup>
<Copy SourceFiles="@(_SixLaborsImageSharpDrawingWebGPUNativeLibs)"
DestinationFolder="$(TargetDir)"
SkipUnchangedFiles="true"
Condition="'@(_SixLaborsImageSharpDrawingWebGPUNativeLibs)' != ''" />
</Target>
</Project>