Skip to content

mesa: Make GLSL compiler conditionally build on with_any_opengl

Michael Tang requested to merge tangm/mesa:add_meson_with_glsl_frontend into main

Previously, when not with_any_opengl (e.g. via -Dopengl=false -Dgles1=disabled -Dgles2=disabled), building without flex/bison would result in errors similar to the following when setting up a build directory:

src\compiler\glsl\glcpp\meson.build:34:0: ERROR: Tried to use not-found external program in "command"

This change makes it so we don't build src/compiler/glsl (and any dependants) if not with_any_opengl, removing and implicit dependency on flex/bison.

It also makes it an error to build with any OpenGL driver when not with_any_opengl.

Edited by Michael Tang

Merge request reports