meson: don't build classic mesa tests without dri_drivers

Since mesa_classic is build-on-demand the tests will create a demand and
add a bunch of extra compilation.

Fixes: 43a6e84927
       ("meson: build mesa test.")
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit aaab624245)
This commit is contained in:
Dylan Baker 2018-04-18 10:53:27 -07:00 committed by Juan A. Suarez Romero
parent 3b9b66560a
commit 53ff157c33

View 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