diff --git a/.gitmodules b/.gitmodules index fa5ab57..cc251ad 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,9 +4,6 @@ [submodule "lib/raylib"] path = lib/raylib url = https://github.com/raysan5/raylib -[submodule "lib/zig"] - path = lib/zig - url = https://github.com/ziglang/zig [submodule "lib/rres"] path = lib/rres url = https://github.com/raysan5/rres diff --git a/lib/zig b/lib/zig deleted file mode 160000 index 8573836..0000000 --- a/lib/zig +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8573836892ba1b7cd34d377b46258930161256c3 diff --git a/src/Directory.Build.props b/src/Directory.Build.props index ff5492b..0cdca68 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -6,4 +6,30 @@ https://github.com/deathbeam/Raylib.NET zlib + + + $([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture) + + + + + + + win-x64 + win-arm64 + + + + + linux-x64 + linux-arm64 + + + + + osx-x64 + osx-arm64 + + + diff --git a/src/Raylib.NET.Bindgen/Program.cs b/src/Raylib.NET.Bindgen/Program.cs index 82538f6..555cb7c 100644 --- a/src/Raylib.NET.Bindgen/Program.cs +++ b/src/Raylib.NET.Bindgen/Program.cs @@ -2,6 +2,7 @@ using Bindgen; var libPath = "../../lib"; +var includePath = args[0]; var transformEnum = (string parent, string name) => parent switch { @@ -53,8 +54,8 @@ LibraryName = "raylib", SystemIncludeFolders = new[] { - $"{libPath}/zig/lib/libc/include/generic-musl", - $"{libPath}/zig/lib/libc/include/x86-linux-musl", + $"{includePath}/libc/include/generic-musl", + $"{includePath}/libc/include/x86-linux-musl", }, IncludeFolders = new[] { $"{libPath}/raylib/src" }, }; diff --git a/src/Raylib.NET.Bindgen/Raylib.NET.Bindgen.csproj b/src/Raylib.NET.Bindgen/Raylib.NET.Bindgen.csproj index 98a03c2..cad01a7 100644 --- a/src/Raylib.NET.Bindgen/Raylib.NET.Bindgen.csproj +++ b/src/Raylib.NET.Bindgen/Raylib.NET.Bindgen.csproj @@ -14,9 +14,14 @@ + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + - + diff --git a/src/Raylib.NET.Native/Raylib.NET.Native.csproj b/src/Raylib.NET.Native/Raylib.NET.Native.csproj index f2b1cd0..4772d7c 100644 --- a/src/Raylib.NET.Native/Raylib.NET.Native.csproj +++ b/src/Raylib.NET.Native/Raylib.NET.Native.csproj @@ -17,10 +17,6 @@ Native libraries for Raylib - - $([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture) - - @@ -37,28 +33,6 @@ - - - - - win-x64 - win-arm64 - - - - - linux-x64 - linux-arm64 - - - - - osx-x64 - osx-arm64 - - - - $(HostRuntime)