From 883814d3cfb614da828b809e17a16326de8d3b75 Mon Sep 17 00:00:00 2001 From: Alex Malyutin Date: Sun, 17 Sep 2023 14:38:08 +0400 Subject: [PATCH 1/3] start of SDL2 MacOS build From 94cbb53f48c857ff8455a80e2d94da8d4c8d3e8d Mon Sep 17 00:00:00 2001 From: Alex Malyutin Date: Sun, 17 Sep 2023 14:26:55 +0400 Subject: [PATCH 2/3] Add macos target. (cherry picked from commit cb09f04ee4c4713e2f6b2ed026c81ad6e91a717b) --- generator.json | 1 + 1 file changed, 1 insertion(+) diff --git a/generator.json b/generator.json index 8315621eb4..5459b32202 100644 --- a/generator.json +++ b/generator.json @@ -831,6 +831,7 @@ "-I$windowsSdkIncludes", "-Ibuild/submodules/SDL/include", "-D__IPHONEOS__", + "-D__MACOS__", "-D__ANDROID__", "-D__WIN32__", "-D__WINRT__", From 234c6488cbfc669bdbd09ee7dad05cf4bc8feb03 Mon Sep 17 00:00:00 2001 From: Alex Malyutin Date: Mon, 18 Sep 2023 01:48:47 +0400 Subject: [PATCH 3/3] Fix missing Include of SDL2 osx-arm64. --- generator.json | 1 + src/Native/Silk.NET.SDL.Native/Silk.NET.SDL.Native.csproj | 1 + 2 files changed, 2 insertions(+) diff --git a/generator.json b/generator.json index 5459b32202..c004c3d90a 100644 --- a/generator.json +++ b/generator.json @@ -903,6 +903,7 @@ "linux-x64": "libSDL2-2.0.so", "win-x64": "SDL2.dll", "win-x86": "SDL2.dll", + "osx-arm64": "libSDL2-2.0.dylib", "osx-x64": "libSDL2-2.0.dylib", "android": "libSDL2.so", "iOS": "__Internal", diff --git a/src/Native/Silk.NET.SDL.Native/Silk.NET.SDL.Native.csproj b/src/Native/Silk.NET.SDL.Native/Silk.NET.SDL.Native.csproj index 505c08b072..ebf846e630 100644 --- a/src/Native/Silk.NET.SDL.Native/Silk.NET.SDL.Native.csproj +++ b/src/Native/Silk.NET.SDL.Native/Silk.NET.SDL.Native.csproj @@ -27,6 +27,7 @@ +