Skip to content

Commit

Permalink
native packaging update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlseinX committed Dec 18, 2018
1 parent 50dba66 commit b8eeea8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions build/NativeLibraryPackage.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

<ItemGroup>
<NativeLibs Include="$(MSBuildProjectDirectory)\lib\**\*.dll" />
<NativeLibs Include="$(MSBuildProjectDirectory)\lib\**\*.so" />
<NativeLibs Include="$(MSBuildProjectDirectory)\lib\**\*.so.*" />
<Content Include="@(NativeLibs)" PackagePath="runtimes\%(RecursiveDir)native\%(FileName)%(Extension)">
</Content>
<Content Include="$(MSBuildThisFileDirectory)OutputNativePackage.props" PackagePath="build/$(MSBuildProjectName).props" />
Expand Down
10 changes: 7 additions & 3 deletions build/OutputNativePackage.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@
<ItemGroup Condition=" '$(RuntimeIdentifier)' != '' ">

<NativeLibs Include="$(MSBuildThisFileDirectory)../runtimes/$(RuntimeIdentifier)/native/*.dll" />
<NativeLibs Include="$(MSBuildThisFileDirectory)../runtimes/$(RuntimeIdentifier)/native/*.so" />
<NativeLibs Include="$(MSBuildThisFileDirectory)../runtimes/$(RuntimeIdentifier)/native/*.so.*" />
<None Include="@(NativeLibs)">
<Link>%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>Native Libraries\%(FileName)%(Extension)</Link>
</None>

<ContentWithTargetPath Include="@(NativeLibs)">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>%(FileName)%(Extension)</TargetPath>
</ContentWithTargetPath>
</ItemGroup>

</Project>

0 comments on commit b8eeea8

Please sign in to comment.