[build] Use glslang with --depfile to rebuild on header changes

This commit is contained in:
Georg Lehmann 2022-10-21 13:47:36 +02:00 committed by Philip Rebohle
parent 2653628041
commit ae764333f4
1 changed files with 4 additions and 1 deletions

View File

@ -137,11 +137,14 @@ glsl_args = [
'--quiet',
'--target-env', 'vulkan1.2',
'--vn', '@BASENAME@',
'--depfile', '@DEPFILE@',
'@INPUT@',
'-o', '@OUTPUT@',
]
glsl_generator = generator(glsl_compiler,
glsl_generator = generator(
glsl_compiler,
output : [ '@BASENAME@.h' ],
depfile : '@BASENAME@.h.d',
arguments : glsl_args,
)