meson: require libdrm when building gbm

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31223>
This commit is contained in:
K900
2024-09-18 14:24:00 +03:00
committed by Marge Bot
parent f044756732
commit 3f2e831446

View File

@@ -1667,7 +1667,7 @@ with_gallium_drisw_kms = false
if system_has_kms_drm
dep_libdrm = dependency(
'libdrm', version : '>=' + _drm_ver,
required : with_dri2 or with_dri
required : with_dri2 or with_dri or with_gbm
)
else
# We should prevent libdrm from being available when the target doesn't have it to avoid transitive