From c6851d93c2f255801545d8cf707ade3b16c205db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Thu, 28 Jul 2022 13:44:15 +0200 Subject: [PATCH] Fix wayland usage --- xmake.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmake.lua b/xmake.lua index 3a4ad80a8..e10845896 100644 --- a/xmake.lua +++ b/xmake.lua @@ -15,7 +15,6 @@ local modules = { if is_plat("windows", "mingw") then add_syslinks("ole32") elseif is_plat("linux") then - add_packages("wayland", { links = {} }) -- we only need wayland headers add_packages("libuuid") add_syslinks("dl", "pthread") end @@ -52,6 +51,7 @@ local modules = { if is_plat("linux") then add_defines("EGL_NO_X11") + add_packages("wayland", { links = {} }) -- we only need wayland headers else remove_files("src/Nazara/OpenGLRenderer/Wrapper/Linux/**.cpp") end @@ -98,6 +98,7 @@ local modules = { elseif is_plat("linux") then add_defines("VK_USE_PLATFORM_XLIB_KHR") add_defines("VK_USE_PLATFORM_WAYLAND_KHR") + add_packages("wayland", { links = {} }) -- we only need wayland headers elseif is_plat("macosx") then add_defines("VK_USE_PLATFORM_METAL_EXT") add_files("src/Nazara/VulkanRenderer/**.mm")