3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-07 19:51:22 +00:00

api: dotnet: install nuget package and register local repo; xplat native assembly detection

This commit is contained in:
Yatao Li 2018-09-10 13:19:48 +08:00
parent 90890e46a9
commit 969a922145
3 changed files with 37 additions and 18 deletions

View file

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Net.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<!-- Package metadata properties -->
<PropertyGroup>
@ -58,11 +58,13 @@ ${Z3_DOTNET_COMPILE_ITEMS}
<!-- Native binaries -->
<ItemGroup>
<!-- FIXME configuration fixed to Release -->
<Content Include="${CMAKE_BINARY_DIR}/Release/libz3.dll" Condition="Exists('${CMAKE_BINARY_DIR}/Release/libz3.dll')">
<!--TODO detect if we're building x86.-->
<Content Include="${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libz3.dll" Condition="Exists('${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libz3.dll')">
<PackagePath>runtimes\win-x64\native</PackagePath>
</Content>
<!-- TODO XPlat support -->
<Content Include="${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libz3.so" Condition="Exists('${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libz3.so')">
<PackagePath>runtimes\linux-x64\native</PackagePath>
</Content>
</ItemGroup>
<!-- NuGet package references -->