mesa: Make GLSL compiler conditionally build on with_any_opengl
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