meson: don't build gallium subdir unless we're building gallium
[mesa.git] / src / meson.build
index 9232cc4ab183d625ddc3629958bf4b88420f20d0..00bbaa8989c4cac6ca1d0ba221d98f35e17b7171 100644 (file)
@@ -69,7 +69,9 @@ endif
 if with_egl
   subdir('egl')
 endif
-subdir('gallium')
+if with_gallium
+  subdir('gallium')
+endif
 
 # This must be after at least mesa, glx, and gallium, since libgl will be
 # defined in one of those subdirs depending on the glx provider.