From 7f8f6dd48b1e7e52e615b09cbe087af38d9dbdb6 Mon Sep 17 00:00:00 2001 From: Jeffery Myers Date: Wed, 5 Nov 2025 20:00:58 -0800 Subject: [PATCH] add support for wayland --- build/premake5.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/build/premake5.lua b/build/premake5.lua index 47594a0..6a22436 100644 --- a/build/premake5.lua +++ b/build/premake5.lua @@ -28,6 +28,18 @@ newoption default = "glfw" } +newoption +{ + trigger = "wayland", + value = "WAYLAND", + description = "build for wayland", + allowed = { + { "off", "Off"}, + { "on", "On"} + }, + default = "off" +} + function download_progress(total, current) local ratio = current / total; ratio = math.min(math.max(ratio, 0), 1); @@ -238,6 +250,9 @@ if (downloadRaylib) then language "C" targetdir "../bin/%{cfg.buildcfg}" + filter {"options:wayland=on"} + defines {"GLFW_LINUX_ENABLE_WAYLAND=TRUE" } + filter "action:vs*" defines{"_WINSOCK_DEPRECATED_NO_WARNINGS", "_CRT_SECURE_NO_WARNINGS"} characterset ("Unicode")