vulkan/wsi: Add dep_libudev to idep dependencies
authorRyan Houdek <Sonicadvance1@gmail.com>
Tue, 11 Oct 2022 20:04:41 +0000 (13:04 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 14 Oct 2022 21:10:29 +0000 (21:10 +0000)
Otherwise users of `idep_vulkan_wsi` won't pull in the udev dependency,
which will cause the linker to fail later on in compiling.

The user of this dependency is lavapipe which would fail to link if this
isn't provided.

Fixes: 4885e63a6d20c57f98b7b641ea3c39a8ff3ae2dd (vulkan/wsi: implement missing wsi_register_device_event)

Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19037>

src/vulkan/wsi/meson.build

index 75a8025..a92c7f3 100644 (file)
@@ -88,6 +88,8 @@ else
     # Instruct users of this library to link with --whole-archive.  Otherwise,
     # our weak function overloads may not resolve properly.
     link_whole : libvulkan_wsi,
-    dependencies : idep_vulkan_wsi_headers
+    dependencies : [
+      idep_vulkan_wsi_headers, dep_libudev
+    ]
   )
 endif