build: auto-disable shader_transpiler if offline translation used
This commit is contained in:
parent
0a5b7a3d63
commit
95363b9c0e
1 changed files with 4 additions and 1 deletions
|
@ -8,7 +8,10 @@ r_shaderlib_src = files(
|
|||
|
||||
r_shaderlib_libdeps = []
|
||||
|
||||
opt_shader_transpiler = get_option('shader_transpiler')
|
||||
# NOTE: transpile_glsl is for static, offline translation.
|
||||
# It makes little sense to include the transpiler if that is used.
|
||||
opt_shader_transpiler = get_option('shader_transpiler').disable_auto_if(transpile_glsl)
|
||||
|
||||
dep_spvc = dependency('spirv-cross-c-shared', required : opt_shader_transpiler)
|
||||
dep_shaderc = dependency('shaderc', required : opt_shader_transpiler)
|
||||
shader_transpiler_enabled = dep_spvc.found() and dep_shaderc.found()
|
||||
|
|
Loading…
Reference in a new issue