chore(build): allow downstream force enable/disable libnotify

This commit is contained in:
Jan Beich 2020-06-25 02:02:13 +00:00 committed by Jeremy Attali
parent 1c8022c9a9
commit 772c60523e
2 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,7 @@ realtime = cc.find_library('rt')
gtk = dependency('gtk+-3.0', version: '>=3.20.0')
gio = dependency('gio-2.0')
libnotify = dependency('libnotify', required: false)
libnotify = dependency('libnotify', required: get_option('libnotify'))
if libnotify.found()
add_project_arguments('-DHAVE_LIBNOTIFY', language: 'c')

View File

@ -1 +1,2 @@
option('man-pages', type: 'feature', value: 'auto', description: 'Generate and install man pages')
option('libnotify', type: 'feature', value: 'auto', description: 'Send desktop notifications')