summaryrefslogtreecommitdiff
path: root/Djup.Native/Djup.Native.csproj
diff options
context:
space:
mode:
authorJoel Stålnacke <joel@saker.fi>2024-10-11 13:31:44 +0300
committerJoel Stålnacke <joel@saker.fi>2024-10-13 13:34:46 +0300
commit53a1cdf5bee2955995dfbf441f5354d1dcfc1e0c (patch)
treebe8c2894226a2b7e1a47f7583f2041df75f795b3 /Djup.Native/Djup.Native.csproj
parent4bac6ae2e725a1997674fd3369bf4ea032235d8b (diff)
Add Godot client
Diffstat (limited to 'Djup.Native/Djup.Native.csproj')
-rw-r--r--Djup.Native/Djup.Native.csproj39
1 files changed, 39 insertions, 0 deletions
diff --git a/Djup.Native/Djup.Native.csproj b/Djup.Native/Djup.Native.csproj
new file mode 100644
index 0000000..107e293
--- /dev/null
+++ b/Djup.Native/Djup.Native.csproj
@@ -0,0 +1,39 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+ <PropertyGroup>
+ <TargetFramework>net8.0</TargetFramework>
+ <ImplicitUsings>enable</ImplicitUsings>
+ <Nullable>enable</Nullable>
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
+ </PropertyGroup>
+
+ <PropertyGroup>
+ <BuildDir>$(MSBuildThisFileDirectory)../lib/build</BuildDir>
+ </PropertyGroup>
+
+ <ItemGroup Condition=" '$(Configuration)'=='Release' ">
+ <Content Include="$(BuildDir)/linux-x64/libdjup.so">
+ <TargetPath>runtimes/linux-x64/native/libdjup.so</TargetPath>
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ <PackagePath>runtimes/linux-x64/native/</PackagePath>
+ <Pack>true</Pack>
+ </Content>
+ </ItemGroup>
+
+ <Choose>
+ <When Condition=" '$(Configuration)'=='Debug'">
+ <PropertyGroup>
+ <Arch>$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)</Arch>
+ <IsLinux Condition="$([MSBuild]::IsOsPlatform('Linux'))">true</IsLinux>
+ </PropertyGroup>
+
+ <ItemGroup Condition=" $(IsLinux) And '$(Arch)' == X64 ">
+ <Content Include="$(BuildDir)/linux-x64/libdjup.so">
+ <TargetPath>runtimes/linux-x64/native/libdjup.so</TargetPath>
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ </ItemGroup>
+ </When>
+ </Choose>
+
+</Project>