summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build6
-rw-r--r--meson_options.txt4
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'
)