1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00

build: add libnotify option to meson

This commit is contained in:
Michael Vetter 2021-10-21 22:51:38 +02:00
parent 6ded48c4b4
commit 208bcd4269
2 changed files with 10 additions and 0 deletions

View File

@ -45,10 +45,18 @@ libstrophe_dep = dependency('libstrophe', version: '>= 0.10.0')
conf.set('HAVE_LIBSTROPHE', 1)
# optional dependencies
notify_dep = dependency('libnotify', required : get_option('notifications'))
if notify_dep.found()
conf.set_quoted('HAVE_LIBNOTIFY', '1')
endif
conf.set_quoted('PACKAGE_VERSION', meson.project_version())
conf.set_quoted('PACKAGE_STATUS', 'development')
# TODO: PROF_GIT_BRANCH, PROF_GIT_REVISION, PACKAGE_STATUS,
# change later:
conf.set_quoted('GLOBAL_PYTHON_PLUGINS_PATH', '')
conf.set_quoted('GLOBAL_C_PLUGINS_PATH', '')
@ -67,6 +75,7 @@ profanity = executable('profanity',
thread_dep,
m_dep,
curses_dep,
notify_dep,
libstrophe_dep ],
include_directories : incdir,
install : true)

1
meson_options.txt Normal file
View File

@ -0,0 +1 @@
option('notifications', type: 'feature', value: 'auto', description: 'enable desktop notifications')