From 0c3fd029e2a00876de83f93659c5e970b1ae86db Mon Sep 17 00:00:00 2001 From: Akhil Jose Date: Wed, 12 May 2021 20:29:34 +0530 Subject: [PATCH] add premake5.lua for building with premake5, only for Windows with Win32 API though --- premake5.lua | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 premake5.lua diff --git a/premake5.lua b/premake5.lua new file mode 100644 index 000000000..72b581189 --- /dev/null +++ b/premake5.lua @@ -0,0 +1,32 @@ +workspace "glfw" +configurations { "Release", "Debug"} +architecture "x86_64" + +project "glfw" +kind "StaticLib" +language "C" + +targetdir("build/%{cfg.system}/%{cfg.architecture}/%{cfg.shortname}/bin") +objdir("build/%{cfg.system}/%{cfg.architecture}/%{cfg.shortname}/bin-int") + +includedirs { + "include/" +} + +files { + "src/window.**", + "src/context.**", + "src/input.**", + "src/internal.**", + "src/glfw_config.h.in", + "src/init.**", + "src/monitor.**" +} + +filter "system:Windows" + files { + "src/win32_**.c", + "src/win32_**.h", + "src/wgl_context.**" + } + defines {"_GLFW_WIN32"} \ No newline at end of file