mirror of
https://github.com/profanity-im/profanity.git
synced 2025-07-26 12:14:28 -04:00
build: add libnotify option to meson
This commit is contained in:
parent
6ded48c4b4
commit
208bcd4269
@ -45,10 +45,18 @@ libstrophe_dep = dependency('libstrophe', version: '>= 0.10.0')
|
|||||||
conf.set('HAVE_LIBSTROPHE', 1)
|
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_VERSION', meson.project_version())
|
||||||
conf.set_quoted('PACKAGE_STATUS', 'development')
|
conf.set_quoted('PACKAGE_STATUS', 'development')
|
||||||
# TODO: PROF_GIT_BRANCH, PROF_GIT_REVISION, PACKAGE_STATUS,
|
# TODO: PROF_GIT_BRANCH, PROF_GIT_REVISION, PACKAGE_STATUS,
|
||||||
|
|
||||||
|
|
||||||
# change later:
|
# change later:
|
||||||
conf.set_quoted('GLOBAL_PYTHON_PLUGINS_PATH', '')
|
conf.set_quoted('GLOBAL_PYTHON_PLUGINS_PATH', '')
|
||||||
conf.set_quoted('GLOBAL_C_PLUGINS_PATH', '')
|
conf.set_quoted('GLOBAL_C_PLUGINS_PATH', '')
|
||||||
@ -67,6 +75,7 @@ profanity = executable('profanity',
|
|||||||
thread_dep,
|
thread_dep,
|
||||||
m_dep,
|
m_dep,
|
||||||
curses_dep,
|
curses_dep,
|
||||||
|
notify_dep,
|
||||||
libstrophe_dep ],
|
libstrophe_dep ],
|
||||||
include_directories : incdir,
|
include_directories : incdir,
|
||||||
install : true)
|
install : true)
|
||||||
|
1
meson_options.txt
Normal file
1
meson_options.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
option('notifications', type: 'feature', value: 'auto', description: 'enable desktop notifications')
|
Loading…
x
Reference in New Issue
Block a user