Fix wayland usage

This commit is contained in:
Jérôme Leclercq 2022-07-28 13:44:15 +02:00 committed by GitHub
parent 3f7b504164
commit c6851d93c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,6 @@ local modules = {
if is_plat("windows", "mingw") then if is_plat("windows", "mingw") then
add_syslinks("ole32") add_syslinks("ole32")
elseif is_plat("linux") then elseif is_plat("linux") then
add_packages("wayland", { links = {} }) -- we only need wayland headers
add_packages("libuuid") add_packages("libuuid")
add_syslinks("dl", "pthread") add_syslinks("dl", "pthread")
end end
@ -52,6 +51,7 @@ local modules = {
if is_plat("linux") then if is_plat("linux") then
add_defines("EGL_NO_X11") add_defines("EGL_NO_X11")
add_packages("wayland", { links = {} }) -- we only need wayland headers
else else
remove_files("src/Nazara/OpenGLRenderer/Wrapper/Linux/**.cpp") remove_files("src/Nazara/OpenGLRenderer/Wrapper/Linux/**.cpp")
end end
@ -98,6 +98,7 @@ local modules = {
elseif is_plat("linux") then elseif is_plat("linux") then
add_defines("VK_USE_PLATFORM_XLIB_KHR") add_defines("VK_USE_PLATFORM_XLIB_KHR")
add_defines("VK_USE_PLATFORM_WAYLAND_KHR") add_defines("VK_USE_PLATFORM_WAYLAND_KHR")
add_packages("wayland", { links = {} }) -- we only need wayland headers
elseif is_plat("macosx") then elseif is_plat("macosx") then
add_defines("VK_USE_PLATFORM_METAL_EXT") add_defines("VK_USE_PLATFORM_METAL_EXT")
add_files("src/Nazara/VulkanRenderer/**.mm") add_files("src/Nazara/VulkanRenderer/**.mm")