From 4bac6ae2e725a1997674fd3369bf4ea032235d8b Mon Sep 17 00:00:00 2001 From: Joel Stålnacke Date: Tue, 8 Oct 2024 19:59:10 +0300 Subject: Add a native "Hello World" to the project After much trouble with MSBuild --- lib/Djup.Native/.gitignore | 2 -- lib/Djup.Native/Djup.Native.csproj | 27 --------------------------- lib/Djup.Native/LibDjup.cs | 12 ------------ lib/Djup.Native/Program.cs | 2 -- 4 files changed, 43 deletions(-) delete mode 100644 lib/Djup.Native/.gitignore delete mode 100644 lib/Djup.Native/Djup.Native.csproj delete mode 100644 lib/Djup.Native/LibDjup.cs delete mode 100644 lib/Djup.Native/Program.cs (limited to 'lib/Djup.Native') 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 @@ - - - - net8.0 - - enable - enable - true - - - - runtimes/linux-x64/native/libdjup.so - PreserveNewest - runtimes/linux-x64/native/ - true - - - - - PreserveNewest - - - - - - - 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();*/ -- cgit v1.2.3