wlroots/render/gles2
Simon Ser 89c9ef6692 render/gles2: skip glslang check when shaders are unchanged
Currently, the glslang check is run every time ninja is invoked,
even with an up-to-date build directory when GLSL shaders haven't
been modified. This is due to glslang not creating any output
file: the _check file never exists so ninja keeps trying to
generate it by running the command.

Unfortunately Meson doesn't support running commands with no
outputs [1]. Create an empty output file to fix this by setting
`capture: true`.

This doesn't work out-of-the-box, because glslang prints messages
to stdout, and provides no way to change this [2]. As a result,
shader errors are not surfaced back to the user - they end up in
the _check file. Workaround this with a thin wrapper which
redirects stdout to stderr when invoking glslang.

[1]: https://github.com/mesonbuild/meson/issues/11506
[2]: https://github.com/KhronosGroup/glslang/pull/4138
2026-01-05 09:59:58 -05:00
..
shaders render/gles2: skip glslang check when shaders are unchanged 2026-01-05 09:59:58 -05:00
meson.build render/gles2: validate shaders at build time 2024-12-15 13:59:42 +01:00
pass.c matrix: move to util/ 2025-01-27 17:48:18 +01:00
pixel_format.c render/gles2: add BGR161616F and BGR161616 2026-01-03 17:47:19 +00:00
renderer.c matrix: move to util/ 2025-01-27 17:48:18 +01:00
texture.c Fix/cleanup includes a bit 2025-04-15 20:13:29 +03:00