render/gles2: validate shaders at build time

Use glslang to validate GLSL shaders at build time. This is
optional: if glslang is not found, shader validation is skipped.
This commit is contained in:
Simon Ser 2024-12-15 13:56:09 +01:00
parent 546c5d000d
commit 2b4f30dc1d
2 changed files with 10 additions and 0 deletions

View file

@ -4,6 +4,8 @@ if not (glesv2.found() and internal_features['egl'])
subdir_done()
endif
glslang = find_program('glslang', 'glslangValidator', native: true, required: false, disabler: true)
features += { 'gles2-renderer': true }
wlr_deps += glesv2