[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

View file

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