meson: add missing custom target to generate shader_replacement.h
for custom shader replacements enabled by -Dcustom-shader-replacement=path. process_shaders.py should generate shader_replacement.h, which should contain shaders and their substitutions. Loosely based on Pierre-Eric's commit. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12492>
This commit is contained in:
parent
dcc89c9165
commit
805c6a37b8
|
@ -44,3 +44,14 @@ main_remap_helper_h = custom_target(
|
|||
depend_files : glapi_gen_depends,
|
||||
capture : true,
|
||||
)
|
||||
|
||||
if _shader_replacement != ''
|
||||
# shader replacement
|
||||
shader_replacement_h = custom_target(
|
||||
'shader_replacement.h',
|
||||
input: [files(_shader_replacement + '/process_shaders.py')],
|
||||
output: 'shader_replacement.h',
|
||||
command: [prog_python, '@INPUT0@', _shader_replacement, '@OUTPUT@'],
|
||||
build_always: true,
|
||||
)
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue