-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nuget targets file for cross plat packaging (#512)
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<NativeLibs Include="$(MSBuildThisFileDirectory)win-x64\*.dll" | ||
Condition="($([MSBuild]::IsOsPlatform('Windows')) And ('$(Platform)' == 'x64' Or '$(Platform)' == 'AnyCPU') And '$(RuntimeIdentifier)' == '') Or '$(RuntimeIdentifier)' == 'win-x64'" /> | ||
<NativeLibs Include="$(MSBuildThisFileDirectory)win-x86\*.dll" | ||
Condition="($([MSBuild]::IsOsPlatform('Windows')) And '$(Platform)' == 'x86' And '$(RuntimeIdentifier)' == '') Or '$(RuntimeIdentifier)' == 'win-x86'" /> | ||
<NativeLibs Include="$(MSBuildThisFileDirectory)linux-x64\*.so" | ||
Condition="($([MSBuild]::IsOsPlatform('Linux')) And '$(RuntimeIdentifier)' == '') Or '$(RuntimeIdentifier)' == 'linux-x64'" /> | ||
<NativeLibs Include="$(MSBuildThisFileDirectory)osx-x64\*.dylib" | ||
Condition="($([MSBuild]::IsOsPlatform('OSX')) And '$(RuntimeIdentifier' == '') Or '$(RuntimeIdentifier)' == 'osx-x64'" /> | ||
<None Include="@(NativeLibs)"> | ||
<Link>%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> | ||
</None> | ||
</ItemGroup> | ||
</Project> |