meson: always set USE_LIBGLVND

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28947>
This commit is contained in:
Eric Engestrom 2023-11-20 15:08:26 +00:00 committed by Marge Bot
parent 21b527632e
commit 7187373ec2

View File

@ -554,9 +554,7 @@ _glvnd = get_option('glvnd') \
error_message: '''EGL lib suffix can't be used with libglvnd''')
dep_glvnd = dependency('libglvnd', version : '>= 1.3.2', required : _glvnd)
with_glvnd = dep_glvnd.found()
if with_glvnd
pre_args += '-DUSE_LIBGLVND=1'
endif
pre_args += '-DUSE_LIBGLVND=@0@'.format(with_glvnd ? '1' : '0')
glvnd_vendor_name = get_option('glvnd-vendor-name')
if with_vulkan_icd_dir == ''