meson: use dep_libdrm version for pkg-config

This corrects pkg-config to use the libdrm version (as computed by the
previous patch) instead of using a hardcoded value that may or may not
(probably not) be right.

Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
Dylan Baker 2018-03-12 16:39:01 -07:00
parent c445b1d56f
commit a3a16d4aa7
2 changed files with 2 additions and 2 deletions

View File

@ -71,6 +71,6 @@ pkg.generate(
name : 'd3d',
description : 'Native D3D driver modules',
version : '.'.join(nine_version),
requires_private : 'libdrm >= 2.4.75',
requires_private : 'libdrm >= ' + dep_libdrm.version(),
variables : ['moduledir=${prefix}/@0@'.format(d3d_drivers_path)],
)

View File

@ -69,7 +69,7 @@ endif
if with_dri
dri_req_private = []
if dep_libdrm.found()
dri_req_private = ['libdrm >= 2.4.75'] # FIXME: don't hardcode this
dri_req_private = ['libdrm >= ' + dep_libdrm.version()]
endif
pkg.generate(