0001-glx-provide-glx.pc.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From 4fed044aaed5911fdc58d2a634f34a7186836935 Mon Sep 17 00:00:00 2001
  2. From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
  3. Date: Sun, 12 Oct 2025 23:54:25 +0300
  4. Subject: [PATCH] glx: provide glx.pc
  5. New Vulkan CTS 1.4.4 started requiring glx.pc pkg-config file. Provide
  6. one if GLVND is not used in order to let VK CTS and other programs find
  7. Mesa GLX implementation.
  8. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
  9. Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37834]
  10. ---
  11. src/glx/meson.build | 12 ++++++++++++
  12. 1 file changed, 12 insertions(+)
  13. diff --git a/src/glx/meson.build b/src/glx/meson.build
  14. index 04fdf26ba6a2..28313f83a783 100644
  15. --- a/src/glx/meson.build
  16. +++ b/src/glx/meson.build
  17. @@ -134,6 +134,18 @@ libgl = shared_library(
  18. install : true,
  19. )
  20. +if not with_glvnd
  21. + pkg.generate(
  22. + name : 'glx',
  23. + description : 'Mesa GLX Library',
  24. + version : meson.project_version(),
  25. + libraries : libgl,
  26. + libraries_private : gl_priv_libs,
  27. + requires_private : gl_priv_reqs,
  28. + variables : ['glx_tls=yes'],
  29. + )
  30. +endif
  31. +
  32. if with_symbols_check
  33. libgl_symbols_file = with_glvnd ? 'glvnd-symbols.txt' : 'libgl-symbols.txt'
  34. --
  35. 2.51.0