meson: Combine gallium target subdirs
authorDylan Baker <dylan@pnwbakers.com>
Tue, 28 Nov 2017 22:30:27 +0000 (14:30 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Mon, 4 Dec 2017 22:35:03 +0000 (14:35 -0800)
So that state trackers, targets, and special winsys requirements are all
in a single if statement. This is a cosmetic only cleanup with no
functional changes.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/gallium/meson.build

index 8e60c7f328856017fc352901b2dbd90b5a35786a..be830f5f7d668ed24e75eac068dc054acd300b25 100644 (file)
@@ -91,25 +91,19 @@ if with_gallium_virgl
   subdir('winsys/virgl/drm')
   subdir('winsys/virgl/vtest')
 endif
-if with_dri
-  subdir('state_trackers/dri')
-endif
-if with_osmesa == 'gallium'
-  subdir('state_trackers/osmesa')
-endif
-if with_glx == 'gallium-xlib'
-  subdir('winsys/sw/xlib')
-  subdir('state_trackers/glx/xlib')
-endif
 # TODO: SWR
 # TODO: clover
 if with_dri
+  subdir('state_trackers/dri')
   subdir('targets/dri')
 endif
 if with_osmesa == 'gallium'
+  subdir('state_trackers/osmesa')
   subdir('targets/osmesa')
 endif
 if with_glx == 'gallium-xlib'
+  subdir('winsys/sw/xlib')
+  subdir('state_trackers/glx/xlib')
   subdir('targets/libgl-xlib')
 endif
 # TODO: OMX