From 3be4a243dd25a352a67de8702336da433b4300d5 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Mon, 15 Jul 2024 01:34:08 +0200 Subject: [PATCH] meson: Check explicitly for optional x11 dependency --- src/glspectrum/meson.build | 4 ++-- src/hotkey/meson.build | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/glspectrum/meson.build b/src/glspectrum/meson.build index cf7fc1aa0..a12976217 100644 --- a/src/glspectrum/meson.build +++ b/src/glspectrum/meson.build @@ -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 diff --git a/src/hotkey/meson.build b/src/hotkey/meson.build index c869ef0b4..148111250 100644 --- a/src/hotkey/meson.build +++ b/src/hotkey/meson.build @@ -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 = [