From 37cf04ba0e6e4aec04c02946b27f0ea06c036235 Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Sat, 12 Jun 2021 16:48:29 -0400 Subject: [PATCH] GLFW Premake script --- Nuake/dependencies/glfw_p5.lua | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/Nuake/dependencies/glfw_p5.lua b/Nuake/dependencies/glfw_p5.lua index e69de29b..7c95833e 100644 --- a/Nuake/dependencies/glfw_p5.lua +++ b/Nuake/dependencies/glfw_p5.lua @@ -0,0 +1,50 @@ +project "GLFW" + location "glfw" + kind "StaticLib" + staticruntime "on" + language "C" + + targetdir ("glfw/bin/" .. outputdir .. "/%{prj.name}") + objdir ("glfw/bin-obj/" .. outputdir .. "/%{prj.name}") + + files + { + "glfw/include/GLFW/glfw3.h", + "glfw/include/GLFW/glfw3native.h", + "glfw/src/glfw_config.h", + "glfw/src/context.c", + "glfw/src/init.c", + "glfw/src/input.c", + "glfw/src/monitor.c", + "glfw/src/vulkan.c", + "glfw/src/window.c" + } + + filter "system:windows" + systemversion "latest" + + files + { + "glfw/src/win32_init.c", + "glfw/src/win32_joystick.c", + "glfw/src/win32_monitor.c", + "glfw/src/win32_time.c", + "glfw/src/win32_thread.c", + "glfw/src/win32_window.c", + "glfw/src/wgl_context.c", + "glfw/src/egl_context.c", + "glfw/src/osmesa_context.c" + } + + defines + { + "_GLFW_WIN32", + } + + filter "configurations:Debug" + runtime "Debug" + symbols "on" + + filter "configurations:Release" + runtime "Release" + optimize "on" \ No newline at end of file