meson: only build mesa_st tests when build-tests is true

Since we have an option to turn test building on and off, we should
honor that.

Fixes: 34cb4d0ebc
       ("meson: build tests for gallium mesa state tracker")
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Dylan Baker 2018-04-18 09:29:35 -07:00
parent aaab624245
commit c73abb4f82
1 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,9 @@ if with_gallium
subdir('gallium')
# This has to be here since it requires libgallium, and subdir cannot
# contain ..
subdir('mesa/state_tracker/tests')
if with_tests
subdir('mesa/state_tracker/tests')
endif
endif
# This must be after at least mesa, glx, and gallium, since libgl will be