compiler: avoid 'unused variable' warnings
[mesa.git] / src / meson.build
index 73146d37143430512fd6edc8485b04772c7006f0..0d0ecf2c530749592bef2997368239c4c0168568 100644 (file)
@@ -51,8 +51,12 @@ subdir('util')
 subdir('mapi')
 # TODO: opengl
 subdir('compiler')
-subdir('egl/wayland/wayland-drm')
-subdir('vulkan')
+if with_platform_wayland
+  subdir('egl/wayland/wayland-drm')
+endif
+if with_any_vk
+  subdir('vulkan')
+endif
 if with_gallium_radeonsi or with_amd_vk
   subdir('amd')
 endif