meson: better error for wayland-backend wl-egl dep

Helps people avoid wayland-egl if they don't want it.

Makes the check for wayland-egl explicit on the site instead of relying
on gl-renderer checking for it.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
This commit is contained in:
Pekka Paalanen
2018-12-31 14:53:04 +02:00
parent 4da8141255
commit 43a42920cf
2 changed files with 5 additions and 2 deletions
+5 -1
View File
@@ -309,7 +309,11 @@ if get_option('backend-wayland')
]
if get_option('renderer-gl')
deps_wlwl += dep_wl_egl
d = dependency('wayland-egl', required: false)
if not d.found()
error('wayland-backend + gl-renderer requires wayland-egl which was not found. Or, you can use \'-Dbackend-wayland=false\' or \'-Drenderer-gl=false\'.')
endif
deps_wlwl += d
endif
plugin_wlwl = shared_library(