meson: better error for drm+gl deps

Helps people avoid GBM if they don't have it.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
dev
Pekka Paalanen 6 years ago
parent 83a46ca980
commit 3b6b1e9128
  1. 5
      libweston/meson.build

@ -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\'.')
endif
if dep_gbm.version().version_compare('>= 17.1')
config_h.set('HAVE_GBM_MODIFIERS', '1')
endif

Loading…
Cancel
Save