meson: don't build gallium subdir unless we're building gallium
authorDylan Baker <dylan@pnwbakers.com>
Wed, 15 Nov 2017 01:03:39 +0000 (17:03 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Mon, 20 Nov 2017 22:28:31 +0000 (14:28 -0800)
This will allow us to simplify some guards within the gallium directory.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
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.