Skip to content

Commit

Permalink
If platform specified copy corresponding libzstd directly to output f…
Browse files Browse the repository at this point in the history
…older
  • Loading branch information
dscheg committed Aug 20, 2017
1 parent 936a4d1 commit 3d43ab8
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions ZstdNet/build/ZstdNet.targets
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)x64\libzstd.dll" Condition="'$(Platform)' == 'x64' OR '$(Platform)' == 'AnyCPU'">
<Link>x64\%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="$(MSBuildThisFileDirectory)x86\libzstd.dll" Condition="'$(Platform)' == 'x86' OR '$(Platform)' == 'AnyCPU'">
<Link>x86\%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup Condition="'$(Platform)' == 'AnyCPU'">
<None Include="$(MSBuildThisFileDirectory)x64\libzstd.dll">
<Link>x64\%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="$(MSBuildThisFileDirectory)x86\libzstd.dll">
<Link>x86\%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)x64\libzstd.dll" Condition="'$(Platform)' == 'x64'">
<Link>%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="$(MSBuildThisFileDirectory)x86\libzstd.dll" Condition="'$(Platform)' == 'x86'">
<Link>%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>

0 comments on commit 3d43ab8

Please sign in to comment.