meson: add wrap for libdrm

Currently this requires libdrm from git, since the version reported by
meson is wrong.
This commit is contained in:
Dylan Baker 2018-04-13 12:18:10 -07:00
parent 21e2e73f71
commit 6217eedc9b
2 changed files with 10 additions and 2 deletions

View File

@ -1066,7 +1066,10 @@ foreach d : _libdrm_checks
if d[1]
set_variable(
'dep_libdrm_' + d[0],
dependency('libdrm_' + d[0], version : '>=' + _drm_ver)
dependency(
'libdrm_' + d[0], version : '>=' + _drm_ver,
fallback : ['libdrm', 'ext_libdrm_' + d[0]]
)
)
endif
endforeach
@ -1074,7 +1077,8 @@ endforeach
with_gallium_drisw_kms = false
dep_libdrm = dependency(
'libdrm', version : '>=' + _drm_ver,
required : with_dri2 or with_dri3
required : with_dri2 or with_dri3,
fallback : ['libdrm', 'ext_libdrm']
)
if dep_libdrm.found()
pre_args += '-DHAVE_LIBDRM'

4
subprojects/libdrm.wrap Normal file
View File

@ -0,0 +1,4 @@
[wrap-git]
directory=libdrm
url=https://anongit.freedesktop.org/git/mesa/drm.git
revision=head