libweston: extract dep_gbm from backend-drm

Move the dep_gbm from the backend-drm specific meson.build to the common
libweston meson.build to be able to use it in other modules, too.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
This commit is contained in:
Michael Tretter 2024-02-15 17:20:49 +01:00
parent 51eea1f265
commit 9b65a706f0
2 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,6 @@ deps_drm = [
]
if get_option('renderer-gl')
dep_gbm = dependency('gbm', required: false, version: '>= 21.1.1')
if not dep_gbm.found()
error('drm-backend with GL renderer requires gbm which was not found. Or, you can use \'-Drenderer-gl=false\'.')
endif

View File

@ -87,6 +87,8 @@ srcs_libweston = [
subdir('desktop')
subdir('shell-utils')
dep_gbm = dependency('gbm', required: false, version: '>= 21.1.1')
if get_option('backend-vnc')
dep_pam = dependency('pam', required: false)
if not dep_pam.found()