Mesa (main): meson: restore dri.pc file

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Dec 6 23:06:06 UTC 2021


Module: Mesa
Branch: main
Commit: 3ae3569d822c2546c4c748090f8a6c8016f763ea
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ae3569d822c2546c4c748090f8a6c8016f763ea

Author: Dylan Baker <dylan.c.baker at intel.com>
Date:   Mon Dec  6 13:32:16 2021 -0800

meson: restore dri.pc file

Which was accidentally deleted.

Fixes: ea8fa10edd1f8976825c6aad05b904179a2deca3
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5717
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14090>

---

 src/gallium/frontends/dri/meson.build | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/gallium/frontends/dri/meson.build b/src/gallium/frontends/dri/meson.build
index 967047b0312..482031c0739 100644
--- a/src/gallium/frontends/dri/meson.build
+++ b/src/gallium/frontends/dri/meson.build
@@ -64,3 +64,19 @@ libdri = static_library(
     idep_mesautil,
   ],
 )
+
+if with_dri
+  dri_req_private = []
+  if dep_libdrm.found()
+    dir_req_private = ['libdrm >= @0@'.format(_drm_ver)]
+  endif
+
+  pkg.generate(
+    name : 'dri',
+    filebase : 'dri',
+    description : 'Direct Rendering Infastructure',
+    version : meson.project_version(),
+    variables : ['dridriversdir=@0@'.format(dri_drivers_path)],
+    requires_private : dri_req_private,
+  )
+endif



More information about the mesa-commit mailing list