From 6456c927568dbbfa6f2a2c02970c9aa18efee8f4 Mon Sep 17 00:00:00 2001 From: anulax1225 Date: Wed, 5 Jun 2024 15:03:12 +0200 Subject: [PATCH] Added bakasable config --- dependencies | 1 + package.json | 14 +++++++++ premake5.lua | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 104 insertions(+) create mode 100644 dependencies create mode 100644 package.json create mode 100644 premake5.lua diff --git a/dependencies b/dependencies new file mode 100644 index 00000000..fd27f4e3 --- /dev/null +++ b/dependencies @@ -0,0 +1 @@ +IncludeDirs["glfw"] = "%{wks.location}/bakara/vendor/glfw/include" \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 00000000..6548f290 --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "GLFW", + "owner": "anulax1225", + "git": "https://github.com/anulax1225/glfw", + "links": + [ + "GLFW" + ], + "includes": + [ + "glfw" + ], + "packages":[] +} \ No newline at end of file diff --git a/premake5.lua b/premake5.lua new file mode 100644 index 00000000..2b6f8ffc --- /dev/null +++ b/premake5.lua @@ -0,0 +1,89 @@ +project "GLFW" + kind "StaticLib" + language "C" + + targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") + objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}") + + includedirs { "%{prj.location}/include" } + + files + { + "%{prj.location}/src/internal.h", + "%{prj.location}/src/platform.h", + "%{prj.location}/src/mappings.h", + "%{prj.location}/src/context.c", + "%{prj.location}/src/init.c", + "%{prj.location}/src/input.c", + "%{prj.location}/src/monitor.c", + "%{prj.location}/src/window.c", + "%{prj.location}/src/platform.c", + "%{prj.location}/src/vulkan.c", + "%{prj.location}/src/null_init.c", + "%{prj.location}/src/null_monitor.c", + "%{prj.location}/src/null_window.c", + "%{prj.location}/src/null_joystick.c", + "%{prj.location}/src/glfw_config.h", + "%{prj.location}/include/GLFW/glfw3native.h", + "%{prj.location}/include/GLFW/glfw3.h", + "include/GLFW/glfw3.h", + "include/GLFW/glfw3native.h", + } + + filter "system:linux" + pic "On" + + systemversion "latest" + + files + { + "%{prj.location}/src/x11_init.c", + "%{prj.location}/src/x11_monitor.c", + "%{prj.location}/src/x11_window.c", + "%{prj.location}/src/xkb_unicode.c", + "%{prj.location}/src/posix_time.c", + "%{prj.location}/src/posix_module.c", + "%{prj.location}/src/posix_poll.c", + "%{prj.location}/src/posix_thread.c", + "%{prj.location}/src/glx_context.c", + "%{prj.location}/src/egl_context.c", + "%{prj.location}/src/osmesa_context.c", + "%{prj.location}/src/linux_joystick.c" + } + + defines + { + "_GLFW_X11" + } + + filter "system:windows" + systemversion "latest" + staticruntime "On" + + files + { + "%{prj.location}/src/win32_init.c", + "%{prj.location}/src/win32_joystick.c", + "%{prj.location}/src/win32_monitor.c", + "%{prj.location}/src/win32_time.c", + "%{prj.location}/src/win32_module.c", + "%{prj.location}/src/win32_thread.c", + "%{prj.location}/src/win32_window.c", + "%{prj.location}/src/wgl_context.c", + "%{prj.location}/src/egl_context.c", + "%{prj.location}/src/osmesa_context.c" + } + + defines + { + "_GLFW_WIN32", + "_CRT_SECURE_NO_WARNINGS" + } + + filter "configurations:Debug" + runtime "Debug" + symbols "on" + + filter "configurations:Release" + runtime "Release" + optimize "on"