Skip to content

Commit

Permalink
targets to copy Native library
Browse files Browse the repository at this point in the history
  • Loading branch information
nkast committed Sep 1, 2022
1 parent 0f2a61e commit 59ce249
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/LibOVR/LibOVR.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,20 @@
<Compile Include="OvrVector3f.cs" />
</ItemGroup>


<ItemGroup>
<None Include="..\LibOvr.Native\bin\Debug\x64\nkast.LibOVR.Native.dll" Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"
<Content Include="..\LibOvr.Native\bin\Debug\x64\nkast.LibOVR.Native.dll" Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'"
Pack="true" PackagePath="runtimes\win-x64\native">
<Link>nkast.LibOVR.Native.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\LibOVR.Native\bin\Release\x64\nkast.LibOVR.Native.dll" Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'"
</Content>
<Content Include="..\LibOVR.Native\bin\Release\x64\nkast.LibOVR.Native.dll" Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'"
Pack="true" PackagePath="runtimes\win-x64\native">
<Link>nkast.LibOVR.Native.dll</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</Content>

<Content Include="nkast.LibOVR.targets"
Pack="true" PackagePath="build" />
</ItemGroup>

</Project>
13 changes: 13 additions & 0 deletions src/LibOVR/nkast.LibOVR.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<ItemGroup>

<Content Include="$(MSBuildThisFileDirectory)..\runtimes\win-x64\native\nkast.LibOVR.Native.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>nkast.LibOVR.Native.dll</Link>
</Content>

</ItemGroup>

</Project>

0 comments on commit 59ce249

Please sign in to comment.