Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
Fallback to 'opengl' when dependency('gl') fails
Browse files Browse the repository at this point in the history
This allows for imv to work on a system where libX11 is fully removed
  • Loading branch information
lanodan authored and eXeC64 committed Apr 14, 2021
1 parent 8e46aa0 commit 70a7072
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 70a7072

Please sign in to comment.