Skip to content

Commit

Permalink
meson: Check explicitly for optional x11 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
radioactiveman committed Jul 14, 2024
1 parent c43d442 commit 3be4a24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/glspectrum/meson.build
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
opengl_dep = dependency('GL', required: false)
have_glspectrum = opengl_dep.found()
have_glspectrum = opengl_dep.found() and (have_windows or x11_dep.found())


if have_glspectrum
shared_module('gl-spectrum',
'gl-spectrum.cc',
dependencies: [audacious_dep, math_dep, gtk_dep, glib_dep, opengl_dep, x11_dep],
dependencies: [audacious_dep, math_dep, gtk_dep, opengl_dep, x11_dep],
name_prefix: '',
install: true,
install_dir: visualization_plugin_dir
Expand Down
2 changes: 1 addition & 1 deletion src/hotkey/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if get_option('gtk2')
else
gdk_x11_dep = dependency('gdk-x11-3.0', version: gtk_req, required: false)
endif
have_hotkey = gdk_x11_dep.found()
have_hotkey = x11_dep.found() and gdk_x11_dep.found()


hotkey_sources = [
Expand Down

0 comments on commit 3be4a24

Please sign in to comment.