egl/meson: simplify glvnd json configuration

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35652>
This commit is contained in:
Eric Engestrom
2025-06-20 20:56:31 +02:00
committed by Marge Bot
parent 413dbcdf79
commit b5b49dcfd7

View File

@@ -163,10 +163,8 @@ else
deps_for_egl += dep_glvnd
files_egl += [g_egldispatchstubs_h, g_egldispatchstubs_c]
files_egl += files('main/eglglvnd.c', 'main/egldispatchstubs.c')
glvnd_config = configuration_data()
glvnd_config.set('glvnd_vendor_name', get_option('glvnd-vendor-name'))
configure_file(
configuration: glvnd_config,
configuration: {'glvnd_vendor_name' : get_option('glvnd-vendor-name')},
input : 'main/50_mesa.json',
output: '50_@0@.json'.format(glvnd_vendor_name),
install : true,