From a8e5c19f5a6c4632dc5b72d0eea38f5d09d35e19 Mon Sep 17 00:00:00 2001 From: zhuyaliang <15132211195@163.com> Date: Mon, 4 Sep 2023 14:54:56 +0800 Subject: Add meson build libstartup-notification support type is auto Fix https://github.com/mate-desktop/mate-desktop/issues/570 --- meson.build | 6 ++++-- meson_options.txt | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 83e6de5..e9844c9 100644 --- a/meson.build +++ b/meson.build @@ -76,17 +76,19 @@ randr_dep = dependency('xrandr', version: '>= 1.3', required: false) config_h.set('HAVE_RANDR', randr_dep.found()) iso_codes = dependency('iso-codes') iso_codes_prefix = iso_codes.get_pkgconfig_variable('prefix') +libstartup_dep = dependency('libstartup-notification-1.0', version: '>= 0.5', + required: enable_startup_notification ) libmdt_dep = [ dependency('gdk-pixbuf-2.0'), dependency('gobject-2.0'), dependency('glib-2.0', version: '>= 2.50.0'), dependency('gio-2.0', version: '>= 2.26.0'), - dependency('libstartup-notification-1.0', version: '>= 0.5', - required: enable_startup_notification ), + libstartup_dep, randr_dep, iso_codes, ] +config_h.set('HAVE_STARTUP_NOTIFICATION', libstartup_dep.found()) gnome = import('gnome') i18n = import('i18n') pkg = import('pkgconfig') diff --git a/meson_options.txt b/meson_options.txt index 90f6fed..fbb86e7 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -17,8 +17,8 @@ option('mate-about', ) option('startup-notification', - type: 'boolean', - value: 'false', + type: 'feature', + value: 'auto', description: 'startup notification support' ) -- cgit v1.2.1