Fallback to 'opengl' when dependency('gl') fails

This allows for imv to work on a system where libX11 is fully removed
This commit is contained in:
Haelwenn (lanodan) Monnier 2020-11-03 09:00:51 +01:00 committed by Harry Jeffery
parent 8e46aa0238
commit 70a70727b7

View file

@ -37,9 +37,15 @@ else
target_single_ws = false
endif
gl_dep = dependency('gl', required: false)
if not gl_dep.found()
# libglvnd fallback for pure-wayland systems
gl_dep = dependency('opengl')
endif
deps_for_imv = [
dependency('pangocairo'),
dependency('gl'),
gl_dep,
dependency('threads'),
dependency('xkbcommon'),
dependency('icu-io'),