Module: Mesa Branch: master Commit: c73abb4f824f70a0dc776389009336121c1d3405 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c73abb4f824f70a0dc776389009336121c1d3405
Author: Dylan Baker <dy...@pnwbakers.com> Date: Wed Apr 18 09:29:35 2018 -0700 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.ba...@intel.com> Reviewed-by: Eric Anholt <e...@anholt.net> --- src/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit