diff --git a/premake5.lua b/premake5.lua index 82a6675c..2a73a7a6 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"