meson: only run vulkan's meson.build when building vulkan
authorEric Engestrom <eric.engestrom@intel.com>
Thu, 11 Oct 2018 15:21:14 +0000 (16:21 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 13 Nov 2018 17:25:02 +0000 (17:25 +0000)
Fixes: d1992255bb29054fa5176 "meson: Add build Intel "anv" vulkan driver"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/meson.build

index 73146d37143430512fd6edc8485b04772c7006f0..2c0bff734320d40efe861f300a4f5903d0edb1da 100644 (file)
@@ -52,7 +52,9 @@ subdir('mapi')
 # TODO: opengl
 subdir('compiler')
 subdir('egl/wayland/wayland-drm')
 # TODO: opengl
 subdir('compiler')
 subdir('egl/wayland/wayland-drm')
-subdir('vulkan')
+if with_any_vk
+  subdir('vulkan')
+endif
 if with_gallium_radeonsi or with_amd_vk
   subdir('amd')
 endif
 if with_gallium_radeonsi or with_amd_vk
   subdir('amd')
 endif