From 7eb9797b84ef3e1265d8e1c0fe5df0508ad1a120 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Tue, 3 Jan 2023 12:35:46 +0100 Subject: [PATCH] build: Error out if startup-notification is enabled when x11 is not This library deals with X11 startup notification messaging, and is unnecessary if X11 support is not enabled. Part of https://gitlab.gnome.org/GNOME/mutter/-/issues/2272 Part-of: --- meson.build | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 573ddb773..8072d508e 100644 --- a/meson.build +++ b/meson.build @@ -289,8 +289,12 @@ endif have_startup_notification = get_option('startup_notification') if have_startup_notification - libstartup_notification_dep = dependency('libstartup-notification-1.0', - version: libstartup_notification_req) + if have_x11_client + libstartup_notification_dep = dependency('libstartup-notification-1.0', + version: libstartup_notification_req) + else + error('startup_notification requires X11 or Xwayland to be enabled') + endif endif have_remote_desktop = get_option('remote_desktop')