From 306583de5065c195c9a720d72156967e266db295 Mon Sep 17 00:00:00 2001 From: Chris Dill Date: Fri, 5 Jun 2026 19:10:34 +0100 Subject: [PATCH] Update build --- Examples/Examples.csproj | 1 - Raylib-cs.Native/Native.cs | 5 - Raylib-cs.Native/Raylib-cs.Native.csproj | 71 --------- Raylib-cs.sln | 74 +++++----- Raylib-cs/Build.props | 174 ++++++++++++++++++++++- Raylib-cs/Raylib-cs.csproj | 9 +- 6 files changed, 204 insertions(+), 130 deletions(-) delete mode 100644 Raylib-cs.Native/Native.cs delete mode 100644 Raylib-cs.Native/Raylib-cs.Native.csproj diff --git a/Examples/Examples.csproj b/Examples/Examples.csproj index cacf967..0f6330f 100644 --- a/Examples/Examples.csproj +++ b/Examples/Examples.csproj @@ -20,6 +20,5 @@ - diff --git a/Raylib-cs.Native/Native.cs b/Raylib-cs.Native/Native.cs deleted file mode 100644 index 7efa532..0000000 --- a/Raylib-cs.Native/Native.cs +++ /dev/null @@ -1,5 +0,0 @@ -namespace Raylib_cs.Native; - -internal class Native -{ -} diff --git a/Raylib-cs.Native/Raylib-cs.Native.csproj b/Raylib-cs.Native/Raylib-cs.Native.csproj deleted file mode 100644 index 92415c8..0000000 --- a/Raylib-cs.Native/Raylib-cs.Native.csproj +++ /dev/null @@ -1,71 +0,0 @@ - - - net8.0 - false - none - false - False - - - - - - so - lib - x64 - - - - dylib - lib - x86_x64 - $(BuildArch) - - - - dll - $(Configuration)/ - x64 - $(BuildArch) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Raylib-cs.sln b/Raylib-cs.sln index 851d40f..1e2cb5d 100644 --- a/Raylib-cs.sln +++ b/Raylib-cs.sln @@ -1,40 +1,34 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.0.31903.59 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Raylib-cs", "Raylib-cs\Raylib-cs.csproj", "{236DB383-2FDC-4A77-8B33-22122D9B8950}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Raylib-cs.Tests", "Raylib-cs.Tests\Raylib-cs.Tests.csproj", "{1341D222-7E10-42C6-BC6E-4A46C934A843}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Examples", "Examples\Examples.csproj", "{1E2A5986-3F11-457F-AF97-D0C08D0060BA}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Raylib-cs.Native", "Raylib-cs.Native\Raylib-cs.Native.csproj", "{B89AA313-3675-42A3-80BC-6156913E3A27}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {236DB383-2FDC-4A77-8B33-22122D9B8950}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {236DB383-2FDC-4A77-8B33-22122D9B8950}.Debug|Any CPU.Build.0 = Debug|Any CPU - {236DB383-2FDC-4A77-8B33-22122D9B8950}.Release|Any CPU.ActiveCfg = Release|Any CPU - {236DB383-2FDC-4A77-8B33-22122D9B8950}.Release|Any CPU.Build.0 = Release|Any CPU - {1341D222-7E10-42C6-BC6E-4A46C934A843}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1341D222-7E10-42C6-BC6E-4A46C934A843}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1341D222-7E10-42C6-BC6E-4A46C934A843}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1341D222-7E10-42C6-BC6E-4A46C934A843}.Release|Any CPU.Build.0 = Release|Any CPU - {1E2A5986-3F11-457F-AF97-D0C08D0060BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1E2A5986-3F11-457F-AF97-D0C08D0060BA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1E2A5986-3F11-457F-AF97-D0C08D0060BA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1E2A5986-3F11-457F-AF97-D0C08D0060BA}.Release|Any CPU.Build.0 = Release|Any CPU - {B89AA313-3675-42A3-80BC-6156913E3A27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B89AA313-3675-42A3-80BC-6156913E3A27}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B89AA313-3675-42A3-80BC-6156913E3A27}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B89AA313-3675-42A3-80BC-6156913E3A27}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection -EndGlobal + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Raylib-cs", "Raylib-cs\Raylib-cs.csproj", "{236DB383-2FDC-4A77-8B33-22122D9B8950}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Raylib-cs.Tests", "Raylib-cs.Tests\Raylib-cs.Tests.csproj", "{1341D222-7E10-42C6-BC6E-4A46C934A843}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Examples", "Examples\Examples.csproj", "{1E2A5986-3F11-457F-AF97-D0C08D0060BA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {236DB383-2FDC-4A77-8B33-22122D9B8950}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {236DB383-2FDC-4A77-8B33-22122D9B8950}.Debug|Any CPU.Build.0 = Debug|Any CPU + {236DB383-2FDC-4A77-8B33-22122D9B8950}.Release|Any CPU.ActiveCfg = Release|Any CPU + {236DB383-2FDC-4A77-8B33-22122D9B8950}.Release|Any CPU.Build.0 = Release|Any CPU + {1341D222-7E10-42C6-BC6E-4A46C934A843}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1341D222-7E10-42C6-BC6E-4A46C934A843}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1341D222-7E10-42C6-BC6E-4A46C934A843}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1341D222-7E10-42C6-BC6E-4A46C934A843}.Release|Any CPU.Build.0 = Release|Any CPU + {1E2A5986-3F11-457F-AF97-D0C08D0060BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1E2A5986-3F11-457F-AF97-D0C08D0060BA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1E2A5986-3F11-457F-AF97-D0C08D0060BA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1E2A5986-3F11-457F-AF97-D0C08D0060BA}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Raylib-cs/Build.props b/Raylib-cs/Build.props index 1603a20..4d24a43 100644 --- a/Raylib-cs/Build.props +++ b/Raylib-cs/Build.props @@ -1,7 +1,167 @@ - - - 6.0 - 8.0.0 - 8.0.0 - - + + + 6.0 + 8.0.0 + 8.0.0 + win-x64;win-x86;linux-x64;osx-x64;osx-arm64;browser-wasm + runtimes/ + $(TargetDir)/runtimes/ + + + + + + raylib-$(TargetRaylibTag)_win64_msvc16 + .zip + raylib.dll + + + + + raylib-$(TargetRaylibTag)_win32_msvc16 + .zip + raylib.dll + + + + + raylib-$(TargetRaylibTag)_linux_amd64 + .tar.gz + libraylib.so* + + + + + raylib-$(TargetRaylibTag)_macos + .tar.gz + libraylib.dylib + + + + + raylib-$(TargetRaylibTag)_macos + .tar.gz + libraylib.dylib + + + + + raylib-$(TargetRaylibTag)_webassembly + .zip + libraylib.web.a + + + + + + + + + + <_TargetRids Include="$(PackageRids)"/> + + + + + + + <_PackageFiles Include="$(NativesRoot)win-x64/raylib-$(TargetRaylibTag)_win64_msvc16/lib/raylib.dll"> + runtimes/win-x64/native/ + None + + + <_PackageFiles Include="$(NativesRoot)win-x86/raylib-$(TargetRaylibTag)_win32_msvc16/lib/raylib.dll"> + runtimes/win-x86/native/ + None + + + <_PackageFiles Include="$(NativesRoot)linux-x64/raylib-$(TargetRaylibTag)_linux_amd64/lib/libraylib.so"> + runtimes/linux-x64/native/ + None + + + <_PackageFiles Include="$(NativesRoot)osx-x64/raylib-$(TargetRaylibTag)_macos/lib/libraylib.dylib"> + runtimes/osx-x64/native/ + None + + + <_PackageFiles Include="$(NativesRoot)osx-arm64/raylib-$(TargetRaylibTag)_macos/lib/libraylib.dylib"> + runtimes/osx-arm64/native/ + None + + + <_PackageFiles Include="$(NativesRoot)browser-wasm/raylib-$(TargetRaylibTag)_webassembly/lib/libraylib.a"> + runtimes/browser-wasm/native/raylib.a + None + + + + + + + + + + + + + <_NativeToCopy Include="$(NativesRoot)$(RuntimeIdentifier)/**/$(LibPattern)"/> + + + + + + + + + + + <_WorkDir>$(NativesRoot)$(RuntimeIdentifier)/ + <_ArchiveFile>$(_WorkDir)$(RaylibPackageName)$(ArchiveExt) + <_ExtractMarker>$(_WorkDir).extracted + + + + + + + + + + + + + + + + + + + + + diff --git a/Raylib-cs/Raylib-cs.csproj b/Raylib-cs/Raylib-cs.csproj index c7f551a..66e0771 100644 --- a/Raylib-cs/Raylib-cs.csproj +++ b/Raylib-cs/Raylib-cs.csproj @@ -28,6 +28,9 @@ + + + @@ -45,10 +48,4 @@ PreserveNewest - - - - - -