Commit 3b6b1e91 authored by Pekka Paalanen's avatar Pekka Paalanen
Browse files

meson: better error for drm+gl deps

Helps people avoid GBM if they don't have it.
Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <>
parent 83a46ca9
......@@ -178,7 +178,10 @@ if get_option('backend-drm')
if get_option('renderer-gl')
dep_gbm = dependency('gbm')
dep_gbm = dependency('gbm', required: false)
if not dep_gbm.found()
error('drm-backend + gl-renderer requires gbm which was not found. Or, you can use \'-Dbackend-drm=false\' or \'-Drenderer-gl=false\'.')
if dep_gbm.version().version_compare('>= 17.1')
config_h.set('HAVE_GBM_MODIFIERS', '1')
Markdown is supported
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