meson: allow building GLES without GL
Signed-off-by: Eric Engestrom <eric@igalia.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21343>
This commit is contained in:

committed by
Marge Bot

parent
da25d0b8e4
commit
8a4c18afff
@@ -115,12 +115,10 @@ with_opengl = get_option('opengl')
|
||||
|
||||
with_gles1 = get_option('gles1') \
|
||||
.require(with_shared_glapi, error_message : 'OpengGL ES 1.x requires shared-glapi') \
|
||||
.require(with_opengl, error_message : 'building OpenGL ES 1.x without OpenGL is not supported.') \
|
||||
.allowed()
|
||||
|
||||
with_gles2 = get_option('gles2') \
|
||||
.require(with_shared_glapi, error_message : 'OpengGL ES 2.x requires shared-glapi') \
|
||||
.require(with_opengl, error_message : 'building OpenGL ES 2.x without OpenGL is not supported.') \
|
||||
.allowed()
|
||||
|
||||
with_any_opengl = with_opengl or with_gles1 or with_gles2
|
||||
|
Reference in New Issue
Block a user