glx: provide glx.pc
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

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>
This commit is contained in:
Dmitry Baryshkov 2025-10-12 23:54:25 +03:00 committed by Marge Bot
parent f1cc234bc9
commit 681c734804

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'