build: Don't error out if startup_notification is enabled but not x11
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3765>
This commit is contained in:
parent
bb38601d0f
commit
42c534a02f
1 changed files with 3 additions and 7 deletions
10
meson.build
10
meson.build
|
@ -299,14 +299,10 @@ if have_pango_ft2
|
||||||
pangoft2_dep = dependency('pangoft2')
|
pangoft2_dep = dependency('pangoft2')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
have_startup_notification = get_option('startup_notification')
|
have_startup_notification = get_option('startup_notification') and have_x11_client
|
||||||
if have_startup_notification
|
if have_startup_notification
|
||||||
if have_x11_client
|
libstartup_notification_dep = dependency('libstartup-notification-1.0',
|
||||||
libstartup_notification_dep = dependency('libstartup-notification-1.0',
|
version: libstartup_notification_req)
|
||||||
version: libstartup_notification_req)
|
|
||||||
else
|
|
||||||
error('startup_notification requires X11 or Xwayland to be enabled')
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
have_remote_desktop = get_option('remote_desktop')
|
have_remote_desktop = get_option('remote_desktop')
|
||||||
|
|
Loading…
Reference in a new issue