OSDN Git Service

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 769406f..a03d589 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 7e4dd29..71b4c42 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