From 29179f58c6ba8099859ea25900214dbbd3814a92 Mon Sep 17 00:00:00 2001 From: Tobias Klausmann Date: Sat, 16 Mar 2019 19:56:59 +0100 Subject: [PATCH] vulkan/util: meson build - add wayland client include Without this the build breaks with: In file included from ../src/vulkan/util/vk_util.h:32, from ../src/vulkan/util/vk_util.c:28: ../include/vulkan/vulkan.h:51:10: fatal error: wayland-client.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~ compilation terminated. The above misses the include directory for wayland: -I/usr/include/wayland Signed-off-by: Tobias Klausmann Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Eric Engestrom --- src/vulkan/util/meson.build | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/vulkan/util/meson.build b/src/vulkan/util/meson.build index 6aba265cc81..7679b2bdda8 100644 --- a/src/vulkan/util/meson.build +++ b/src/vulkan/util/meson.build @@ -36,10 +36,17 @@ vk_enum_to_str = custom_target( ], ) +vulkan_util_deps = [] + +if with_platform_wayland + vulkan_util_deps += dep_wayland_client +endif + libvulkan_util = static_library( 'vulkan_util', [files_vulkan_util, vk_enum_to_str], include_directories : inc_common, + dependencies : vulkan_util_deps, c_args : [c_vis_args, vulkan_wsi_args], build_by_default : false, ) -- 2.30.2