meson: Don't build glsl compiler tests unless OpenGL is enabled
authorDylan Baker <dylan@pnwbakers.com>
Fri, 5 Oct 2018 16:37:32 +0000 (09:37 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 9 Oct 2018 15:56:00 +0000 (08:56 -0700)
Since there are no other users of the glsl compiler.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/compiler/glsl/glcpp/meson.build
src/compiler/glsl/meson.build

index 769406f533184d7c333d2471a6b0a172d0f35bd4..a03d589b3701738286b4009f115917fc80824eb4 100644 (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']
index 7e4dd2929a31d92d6005be758200a4b6080108fb..71b4c42e4d7b778856a8ad725f9e0266137d9c41 100644 (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