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")