Skip to content

Commit

Permalink
Merge pull request #137 from ubercellogeek/ubercellogeek/linux-native…
Browse files Browse the repository at this point in the history
…-libs

Fix for loading native libraries in Linux
  • Loading branch information
CoreyKaylor authored Jun 8, 2021
2 parents dbe13f1 + c007e5a commit 057e841
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/LightningDB/LightningDB.targets
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,18 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup Condition="'$([MSBuild]::IsOsPlatform(Linux))' And '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)'=='Arm64'">
<None Include="$(MSBuildThisFileDirectory)$(LightningDBTargetRuntimeRelativePath)runtimes\linux-arm64\native\liblmdb.so">
<Visible>false</Visible>
<Link>liblmdb.so</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup Condition="'$([MSBuild]::IsOsPlatform(Linux))' And '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)'=='X64'">
<None Include="$(MSBuildThisFileDirectory)$(LightningDBTargetRuntimeRelativePath)runtimes\linux-x64\native\liblmdb.so">
<Visible>false</Visible>
<Link>liblmdb.so</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
Binary file not shown.
Binary file not shown.

0 comments on commit 057e841

Please sign in to comment.