From d36778c1046839167e033809827186e17e420863 Mon Sep 17 00:00:00 2001 From: Jeffery Myers Date: Mon, 18 Nov 2024 09:07:12 -0800 Subject: [PATCH] add platform for RGFW --- build/premake5.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/build/premake5.lua b/build/premake5.lua index 9a4d37f..d6cf9b8 100644 --- a/build/premake5.lua +++ b/build/premake5.lua @@ -42,7 +42,11 @@ function build_externals() end function platform_defines() - defines{"PLATFORM_DESKTOP"} + filter {"configurations:Debug or Release"} + defines{"PLATFORM_DESKTOP"} + + filter {"configurations:Debug_RGFW or Release_RGFW"} + defines{"PLATFORM_DESKTOP_RGFW"} filter {"options:graphics=opengl43"} defines{"GRAPHICS_API_OPENGL_43"} @@ -99,7 +103,7 @@ end workspace (workspaceName) location "../" - configurations { "Debug", "Release"} + configurations { "Debug", "Release", "Debug_RGFW", "Release_RGFW"} platforms { "x64", "x86", "ARM64"} defaultplatform ("x64") @@ -171,7 +175,7 @@ workspace (workspaceName) filter "system:windows" defines{"_WIN32"} - links {"winmm", "gdi32"} + links {"winmm", "gdi32", "opengl32"} libdirs {"../bin/%{cfg.buildcfg}"} filter "system:linux"