aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2024-02-27 14:13:08 -0800
committerMarge Bot <emma+marge@anholt.net>2024-02-28 15:03:05 +0000
commitf623c27eab9e4bc616600da88334937e750e87dd (patch)
treee738c067e0fd6228212fa39e3dc1d9d07f6b1706
parent9c096e23c001d558aa18bb4628ec8d6c6ecb89b5 (diff)
downloadmesa3d-f623c27eab9e4bc616600da88334937e750e87dd.tar.gz
meson: fix a build ereror
Fixes src/vulkan/wsi/meson.build:71:13: ERROR: Unknown variable "libloader_wayland_helper". for headless vulkan-only builds. Fixes: a00f9c401bb ("loader/wayland: Add fallback wl_display_dispatch_queue_timeout") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27837>
-rw-r--r--src/vulkan/wsi/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vulkan/wsi/meson.build b/src/vulkan/wsi/meson.build
index 12b037d7d69..0b3a7bd7625 100644
--- a/src/vulkan/wsi/meson.build
+++ b/src/vulkan/wsi/meson.build
@@ -19,6 +19,7 @@
# SOFTWARE.
files_vulkan_wsi = files('wsi_common.c')
+links_vulkan_wsi = []
platform_deps = []
if dep_libdrm.found()
@@ -34,6 +35,7 @@ if with_platform_wayland
files_vulkan_wsi += wp_files['linux-dmabuf-unstable-v1']
files_vulkan_wsi += wp_files['presentation-time']
files_vulkan_wsi += wp_files['tearing-control-v1']
+ links_vulkan_wsi += libloader_wayland_helper
endif
if with_platform_windows
@@ -68,7 +70,7 @@ libvulkan_wsi = static_library(
idep_vulkan_runtime_headers, idep_xmlconfig, idep_mesautil, platform_deps,
idep_blake3
],
- link_with: libloader_wayland_helper,
+ link_with: links_vulkan_wsi,
gnu_symbol_visibility : 'hidden',
build_by_default : false,
)