summaryrefslogtreecommitdiff
path: root/lib/Djup.Native
diff options
context:
space:
mode:
authorJoel Stålnacke <joel@saker.fi>2024-10-08 19:59:10 +0300
committerJoel Stålnacke <joel@saker.fi>2024-10-08 19:59:10 +0300
commit4bac6ae2e725a1997674fd3369bf4ea032235d8b (patch)
treecd9682eac89c1da5d5c54741684b5e8405f5d54c /lib/Djup.Native
parent21001a44f1781423ae04f35ee41e042ae6f01355 (diff)
Add a native "Hello World" to the project
After much trouble with MSBuild
Diffstat (limited to 'lib/Djup.Native')
-rw-r--r--lib/Djup.Native/.gitignore2
-rw-r--r--lib/Djup.Native/Djup.Native.csproj27
-rw-r--r--lib/Djup.Native/LibDjup.cs12
-rw-r--r--lib/Djup.Native/Program.cs2
4 files changed, 0 insertions, 43 deletions
diff --git a/lib/Djup.Native/.gitignore b/lib/Djup.Native/.gitignore
deleted file mode 100644
index c6e49ef..0000000
--- a/lib/Djup.Native/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-obj/
-bin/
diff --git a/lib/Djup.Native/Djup.Native.csproj b/lib/Djup.Native/Djup.Native.csproj
deleted file mode 100644
index 7184efb..0000000
--- a/lib/Djup.Native/Djup.Native.csproj
+++ /dev/null
@@ -1,27 +0,0 @@
-<Project Sdk="Microsoft.NET.Sdk">
-
- <PropertyGroup>
- <TargetFramework>net8.0</TargetFramework>
- <!--<OutputType>exe</OutputType>-->
- <ImplicitUsings>enable</ImplicitUsings>
- <Nullable>enable</Nullable>
- <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- </PropertyGroup>
- <ItemGroup Condition=" '$(Configuration)'=='Release' ">
- <None Include="$(MSBuildThisFileDirectory)../build/runtimes/linux-x64/native/libdjup.so">
- <TargetPath>runtimes/linux-x64/native/libdjup.so</TargetPath>
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- <PackagePath>runtimes/linux-x64/native/</PackagePath>
- <Pack>true</Pack>
- </None>
- </ItemGroup>
- <ItemGroup Condition=" '$(Configuration)'=='Debug' ">
- <Content Include="$(MSBuildThisFileDirectory)../build/**">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </Content>
- </ItemGroup>
- <!-- This fixes import errors (adding another library with native assets) -->
- <!--<ItemGroup>-->
- <!-- <PackageReference Include="SQLitePCLRaw.lib.e_sqlite3" Version="2.1.10" />-->
- <!--</ItemGroup>-->
-</Project>
diff --git a/lib/Djup.Native/LibDjup.cs b/lib/Djup.Native/LibDjup.cs
deleted file mode 100644
index 5e6db83..0000000
--- a/lib/Djup.Native/LibDjup.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System.Runtime.InteropServices;
-
-namespace Djup.Native;
-
-public static partial class LibDjup
-{
- const string LibraryName = "djup";
- const string Prefix = "dp_";
-
- [LibraryImport(LibraryName, EntryPoint = Prefix + nameof(hello_world))]
- public static partial void hello_world();
-}
diff --git a/lib/Djup.Native/Program.cs b/lib/Djup.Native/Program.cs
deleted file mode 100644
index 2667048..0000000
--- a/lib/Djup.Native/Program.cs
+++ /dev/null
@@ -1,2 +0,0 @@
-/*using Djup.Native;*/
-/*LibDjup.hello_world();*/