meson: Automatically generate glsl_shaders.h from specified shader programs

Encode the bayer shader files into a header as part of the build process.
Qcam already compiles the shader files down into a QT resource file which
it references internally.

In order to share the debayering shader programs outside of qcam create a
generic header which both qcam and libcamera can operate from.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
This commit is contained in:
Bryan O'Donoghue 2024-01-26 22:18:13 +00:00
parent a6a1fbd82b
commit 8422ee9441
3 changed files with 22 additions and 0 deletions

View file

@ -3,5 +3,7 @@
subdir('codegen')
subdir('ipu3')
gen_shader_headers = files('gen-shader-headers.sh')
## Module signing
gen_ipa_priv_key = files('gen-ipa-priv-key.sh')