meson: Don't build glsl cache_test when shader cache is disabled
v2: - Use new with_shader_cache variable instead of host_machine.system() == 'windows' Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
a216aea7af
commit
c613861b23
|
@ -30,19 +30,20 @@ test(
|
|||
suite : ['compiler', 'glsl'],
|
||||
)
|
||||
|
||||
test(
|
||||
'cache_test',
|
||||
executable(
|
||||
if with_shader_cache
|
||||
test(
|
||||
'cache_test',
|
||||
'cache_test.c',
|
||||
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
|
||||
include_directories : [inc_common, inc_glsl],
|
||||
link_with : [libglsl],
|
||||
dependencies : [dep_clock, dep_thread],
|
||||
),
|
||||
suite : ['compiler', 'glsl'],
|
||||
)
|
||||
|
||||
executable(
|
||||
'cache_test',
|
||||
'cache_test.c',
|
||||
c_args : [c_vis_args, c_msvc_compat_args, no_override_init_args],
|
||||
include_directories : [inc_common, inc_glsl],
|
||||
link_with : [libglsl],
|
||||
dependencies : [dep_clock, dep_thread],
|
||||
),
|
||||
suite : ['compiler', 'glsl'],
|
||||
)
|
||||
endif
|
||||
|
||||
test(
|
||||
'general_ir_test',
|
||||
|
|
Loading…
Reference in New Issue