meson: don't build classic mesa tests without dri_drivers
authorDylan Baker <dylan@pnwbakers.com>
Wed, 18 Apr 2018 17:53:27 +0000 (10:53 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 24 Apr 2018 21:08:15 +0000 (14:08 -0700)
Since mesa_classic is build-on-demand the tests will create a demand and
add a bunch of extra compilation.

Fixes: 43a6e84927e3b1290f6f211f5dfb184dfe5a719e
       ("meson: build mesa test.")
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/meson.build

index c1334c96374ba528ea7c225b09b18102af53602b..72d87178aa17118aeca8bc3ba58ef7e494f604bb 100644 (file)
@@ -732,6 +732,6 @@ endif
 if with_glx == 'xlib'
   subdir('drivers/x11')
 endif
-if with_tests
+if with_tests and dri_drivers != []
   subdir('main/tests')
 endif