mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 12:28:04 +02:00
meson: DRM-backend demands GBM
All the GBM code is unconditional in compositor-drm.c, so while disabling the
GL-renderer would stop GBM from being used, GBM headers would still be needed
for building and GBM library for linking.
Leave a note to fix it properly later. At least we now check for GBM and do not
mislead with the error message.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
(cherry picked from commit fe6dd7bcef)
This commit is contained in:
parent
ee5b6f256d
commit
3dc04bcf6c
1 changed files with 3 additions and 2 deletions
|
|
@ -189,10 +189,11 @@ if get_option('backend-drm')
|
|||
dependency('libudev', version: '>= 136'),
|
||||
]
|
||||
|
||||
if get_option('renderer-gl')
|
||||
# XXX: Actually let DRM-backend build without GBM, it really should
|
||||
if true # get_option('renderer-gl')
|
||||
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\'.')
|
||||
error('drm-backend requires gbm which was not found. Or, you can use \'-Dbackend-drm=false\'.')
|
||||
endif
|
||||
if dep_gbm.version().version_compare('>= 17.1')
|
||||
config_h.set('HAVE_GBM_MODIFIERS', '1')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue