summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-04-18 09:29:35 -0700
committerDylan Baker <dylan@pnwbakers.com>2018-04-26 10:47:06 -0700
commit9e88042cfd4c189711d8d7b7409cbca033397353 (patch)
tree6fefb01d8e9f8e38b58b270f0d316c0f0c23cd76
parentae45020491a64696e61bab30d185e02d22383970 (diff)
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: 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> (cherry picked from commit c73abb4f824f70a0dc776389009336121c1d3405)
-rw-r--r--src/meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/meson.build b/src/meson.build
index 5d8d554d71..c2566b7a68 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -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