meson: only build mesa_st tests when build-tests is true
authorDylan Baker <dylan@pnwbakers.com>
Wed, 18 Apr 2018 16:29:35 +0000 (09:29 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 24 Apr 2018 21:08:15 +0000 (14:08 -0700)
Since we have an option to turn test building on and off, we should
honor that.

Fixes: 34cb4d0ebc14663113705beae63dd52b9d1b2d87
       ("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>
src/meson.build

index 5d8d554d711b491b3cfd127ee38e0bb2384eacf1..c2566b7a68778597a117724d3faf51c643d122f3 100644 (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