Skip to content

Commit

Permalink
Use static lib for Libsql.Client's csharp_bindings
Browse files Browse the repository at this point in the history
Thanks Rust! It's been a wonderful day taking my 5 hours to just cross-compile this thing :)
  • Loading branch information
neon-nyan committed Oct 23, 2024
1 parent 46e8509 commit 69613ee
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CollapseLauncher/CollapseLauncher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,21 @@
<GitSkipCache>true</GitSkipCache>
</PropertyGroup>

<ItemGroup Condition="$(RuntimeIdentifier.StartsWith('win'))">
<!-- Region: Libsql.Client -->
<DirectPInvoke Include="csharp_bindings" />
<NativeLibrary Include="StaticLib\csharp_bindings_msvc-release.lib" />
<!--
These libraries are required by csharp_bindings to resolve calls to:
- GetUserProfileDirectoryW function from Win32's userenv.dll
- SHGetKnownFolderPath function from Win32's shell32.dll
-->
<DirectPInvoke Include="UserEnv" />
<NativeLibrary Include="StaticLib\WindowsKits\10.0.22621.0_um_x64\UserEnv.lib" />
<DirectPInvoke Include="shell32" />
<NativeLibrary Include="StaticLib\WindowsKits\10.0.22621.0_um_x64\shell32.lib" />
</ItemGroup>

<ItemGroup>
<!--
Use Velopack if "USEVELOPACK" constant is used. Otherwise, use Squirrel.
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 69613ee

Please sign in to comment.