Commit fb480b6a authored by Dylan Baker's avatar Dylan Baker Committed by Dylan Baker
Browse files

meson: add git wrap for libdrm

Sometimes as a developer when a new version of libdrm is required, it's
nice to not have to install it somewhere and set up pkg-confing, and
just let Meson do it for us.
parent 92d84f18
Pipeline #461227 waiting for manual action with stages
...@@ -1590,7 +1590,10 @@ foreach d : _libdrm_checks ...@@ -1590,7 +1590,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
...@@ -1599,7 +1602,8 @@ with_gallium_drisw_kms = false ...@@ -1599,7 +1602,8 @@ with_gallium_drisw_kms = false
dep_libdrm = dependency( dep_libdrm = dependency(
'libdrm', version : '>=' + _drm_ver, 'libdrm', version : '>=' + _drm_ver,
# GNU/Hurd includes egl_dri2, without drm. # GNU/Hurd includes egl_dri2, without drm.
required : (with_dri2 and host_machine.system() != 'gnu') or with_dri3 required : (with_dri2 and host_machine.system() != 'gnu') or with_dri3,
fallback : ['libdrm', 'ext_libdrm'],
) )
if dep_libdrm.found() if dep_libdrm.found()
pre_args += '-DHAVE_LIBDRM' pre_args += '-DHAVE_LIBDRM'
......
[wrap-git]
directory=libdrm
url=https://anongit.freedesktop.org/git/mesa/drm.git
revision=main
[provides]
libdrm = ext_libdrm
libdrm_amdgpu = ext_libdrm_amdgpu
libdrm_etnaviv = ext_libdrm_etnaviv
libdrm_exynos = ext_libdrm_exynos
libdrm_freedreno = ext_libdrm_freedreno
libdrm_intel = ext_libdrm_intel
libdrm_libkms = ext_libdrm_libkms
libdrm_nouveau = ext_libdrm_nouveau
libdrm_omap = ext_libdrm_omap
libdrm_radeon = ext_libdrm_radeon
libdrm_tegra = ext_libdrm_tegra
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment