meson: Don't build glsl compiler tests unless OpenGL is enabled

Since there are no other users of the glsl compiler.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
Dylan Baker
2018-10-05 09:37:32 -07:00
parent d84f003b95
commit b781688636
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ glcpp = executable(
build_by_default : false,
)
if with_tests
if with_any_opengl and with_tests
modes = ['unix', 'windows', 'oldmac', 'bizarro']
if dep_valgrind.found()
modes += ['valgrind']

View File

@@ -258,6 +258,6 @@ glsl_test = executable(
install : with_tools.contains('glsl'),
)
if with_tests
if with_any_opengl and with_tests
subdir('tests')
endif