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:
parent
8e46aa0238
commit
70a70727b7
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue