meson: fix wayland-less builds
[mesa.git] / src / meson.build
index 2c0bff734320d40efe861f300a4f5903d0edb1da..0d0ecf2c530749592bef2997368239c4c0168568 100644 (file)
@@ -51,7 +51,9 @@ subdir('util')
 subdir('mapi')
 # TODO: opengl
 subdir('compiler')
-subdir('egl/wayland/wayland-drm')
+if with_platform_wayland
+  subdir('egl/wayland/wayland-drm')
+endif
 if with_any_vk
   subdir('vulkan')
 endif