glx: provide glx.pc

New Vulkan CTS 1.4.4 started requiring glx.pc pkg-config file. Provide
one if GLVND is not used in order to let VK CTS and other programs find
Mesa GLX implementation.

Cc: mesa-stable
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37834>
(cherry picked from commit 681c734804)
This commit is contained in:
Dmitry Baryshkov 2025-10-12 23:54:25 +03:00 committed by Eric Engestrom
parent d17b36653a
commit 293a26135d
2 changed files with 13 additions and 1 deletions

View file

@ -634,7 +634,7 @@
"description": "glx: provide glx.pc",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -134,6 +134,18 @@ libgl = shared_library(
install : true,
)
if not with_glvnd
pkg.generate(
name : 'glx',
description : 'Mesa GLX Library',
version : meson.project_version(),
libraries : libgl,
libraries_private : gl_priv_libs,
requires_private : gl_priv_reqs,
variables : ['glx_tls=yes'],
)
endif
if with_symbols_check
libgl_symbols_file = with_glvnd ? 'glvnd-symbols.txt' : 'libgl-symbols.txt'