meson: Add dridriverdir variable to dri.pc.
authorRafael Antognolli <rafael.antognolli@intel.com>
Wed, 15 Nov 2017 17:32:47 +0000 (09:32 -0800)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 16 Nov 2017 18:40:26 +0000 (10:40 -0800)
Xorg (and possibly other things) depend on this variable to find the
path to DRI drivers.

Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Cc: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
src/mesa/drivers/dri/meson.build

index a2fc8db..217f1e5 100644 (file)
@@ -58,6 +58,7 @@ if dri_drivers != []
     filebase : 'dri',
     description : 'Direct Rendering Infrastructure',
     version : meson.project_version(),
+    variables : ['dridriverdir=${prefix}/' + dri_drivers_path],
     requires_private : ['libdrm >= 2.4.75'],  # FIXME: don't hardcode this
   )