From 6aba9cf26f9fdd0cac8d86d85c95587563f56e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marou=C3=A8ne=20Boughoufa?= Date: Mon, 28 Feb 2022 14:11:03 +0100 Subject: [PATCH] Update premake5.lua --- premake5.lua | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/premake5.lua b/premake5.lua index 82a6675c8..2a73a7a6f 100644 --- a/premake5.lua +++ b/premake5.lua @@ -6,8 +6,7 @@ project "GLFW" targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("bin-int/" .. outputdir .. "/%{prj.name}") - files - { + files { "include/GLFW/glfw3.h", "include/GLFW/glfw3native.h", "src/glfw_config.h", @@ -18,13 +17,13 @@ project "GLFW" "src/vulkan.c", "src/window.c" } + filter "system:linux" pic "On" systemversion "latest" - files - { + files { "src/x11_init.c", "src/x11_monitor.c", "src/x11_window.c", @@ -37,16 +36,14 @@ project "GLFW" "src/linux_joystick.c" } - defines - { + defines { "_GLFW_X11" } filter "system:windows" systemversion "latest" - files - { + files { "src/win32_init.c", "src/win32_joystick.c", "src/win32_monitor.c", @@ -58,14 +55,12 @@ project "GLFW" "src/osmesa_context.c" } - defines - { + defines { "_GLFW_WIN32", "_CRT_SECURE_NO_WARNINGS" } - links - { + links { "Dwmapi.lib" } @@ -75,4 +70,4 @@ project "GLFW" filter "configurations:Release" runtime "Release" - optimize "on" \ No newline at end of file + optimize "on"