aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build8
1 files changed, 6 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index a4dfa62255c..70b93a9891a 100644
--- a/meson.build
+++ b/meson.build
@@ -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'