meson: add wrap for libdrm
Currently this requires libdrm from git, since the version reported by meson is wrong.
This commit is contained in:
parent
21e2e73f71
commit
6217eedc9b
|
@ -1066,7 +1066,10 @@ foreach d : _libdrm_checks
|
||||||
if d[1]
|
if d[1]
|
||||||
set_variable(
|
set_variable(
|
||||||
'dep_libdrm_' + d[0],
|
'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
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
@ -1074,7 +1077,8 @@ endforeach
|
||||||
with_gallium_drisw_kms = false
|
with_gallium_drisw_kms = false
|
||||||
dep_libdrm = dependency(
|
dep_libdrm = dependency(
|
||||||
'libdrm', version : '>=' + _drm_ver,
|
'libdrm', version : '>=' + _drm_ver,
|
||||||
required : with_dri2 or with_dri3
|
required : with_dri2 or with_dri3,
|
||||||
|
fallback : ['libdrm', 'ext_libdrm']
|
||||||
)
|
)
|
||||||
if dep_libdrm.found()
|
if dep_libdrm.found()
|
||||||
pre_args += '-DHAVE_LIBDRM'
|
pre_args += '-DHAVE_LIBDRM'
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
[wrap-git]
|
||||||
|
directory=libdrm
|
||||||
|
url=https://anongit.freedesktop.org/git/mesa/drm.git
|
||||||
|
revision=head
|
Loading…
Reference in New Issue