-
Notifications
You must be signed in to change notification settings - Fork 18
/
LevelDB.Standard.targets
30 lines (26 loc) · 1.47 KB
/
LevelDB.Standard.targets
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
29
30
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WindowsNativex86Path>$(MSBuildThisFileDirectory)..\..\runtimes\win-x86\native\leveldb.dll</WindowsNativex86Path>
<WindowsNativex64Path>$(MSBuildThisFileDirectory)..\..\runtimes\win-x64\native\leveldb.dll</WindowsNativex64Path>
<OSXNativex64Path>$(MSBuildThisFileDirectory)..\..\runtimes\osx-x64\native\leveldb.dll</OSXNativex64Path>
</PropertyGroup>
<!-- Copy native libraries for Windows -->
<ItemGroup Condition=" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' ">
<None Include="$(WindowsNativex86Path)" Condition=" Exists('$(WindowsNativex86Path)') ">
<Link>x86\leveldb.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="$(WindowsNativex64Path)" Condition=" Exists('$(WindowsNativex64Path)') ">
<Link>x64\leveldb.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<!-- Copy native libraries for OSX (for Xamarin.Mac Full) -->
<ItemGroup Condition=" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' ">
<Content Include="$(OSXNativex64Path)">
<Link>$([System.IO.Path]::GetFilename('$(OSXNativex64Path)'))</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Pack>true</Pack>
</Content>
</ItemGroup>
</Project>