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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2781>
This commit is contained in:
parent
717ee78997
commit
7eb9797b84
@ -289,8 +289,12 @@ endif
|
||||
|
||||
have_startup_notification = get_option('startup_notification')
|
||||
if have_startup_notification
|
||||
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')
|
||||
|
Loading…
Reference in New Issue
Block a user