1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
| | project('notmuch',
['c', 'cpp'],
license: 'GPLv3+',
meson_version: '>=0.49.2')
dep_xapian = dependency('xapian-core')
dep_gmime = dependency('gmime-3.0', version: '>=3.0.3')
dep_glib = dependency('glib-2.0', version: '>=2.22')
dep_zlib = dependency('zlib', version: '>=1.2.5.2')
dep_talloc = dependency('talloc')
dep_valgrind = dependency('valgrind', required: false)
dep_bash_completion = dependency('bash-completion', version: '>=1.90',
required: false)
cmd_python = find_program('python3', 'python', 'python2')
cmd_doxygen = find_program('doxygen', required: false)
cmd_ruby = find_program('ruby', required: false)
cmd_sphinx = find_program('sphinx-build', required: false)
cmd_emacs = find_program('emacs', required: false)
cmd_desktop_file_install = find_program('desktop-file-install', required: false)
add_global_arguments('-Wno-deprecated-declarations', language: ['c', 'cpp'])
add_project_arguments('-D_GNU_SOURCE', language: ['c', 'cpp'])
add_project_arguments('-include', 'config.h', language: ['c', 'cpp'])
inc_cli = include_directories('.')
subdir('compat')
subdir('parse-time-string')
subdir('util')
subdir('lib')
subdir('test')
notmuch_client_srcs = [
'command-line-arguments.c',
'debugger.c',
'gmime-filter-reply.c',
'hooks.c',
'mime-node.c',
'notmuch-compact.c',
'notmuch-config.c',
'notmuch-count.c',
'notmuch-dump.c',
'notmuch-insert.c',
'notmuch-new.c',
'notmuch-reindex.c',
'notmuch-reply.c',
'notmuch-restore.c',
'notmuch-search.c',
'notmuch-setup.c',
'notmuch-show.c',
'notmuch-tag.c',
'notmuch-time.c',
'notmuch.c',
'query-string.c',
'sprinter-json.c',
'sprinter-sexp.c',
'sprinter-text.c',
'status.c',
'tag-util.c',
]
executable('notmuch', notmuch_client_srcs,
include_directories: [inc_util, inc_compat, inc_lib],
dependencies: [dep_gmime, dep_zlib, dep_glib, dep_talloc],
link_with: [lib_compat, lib_util, lib_parse_time, lib_notmuch.get_static_lib()],
install: true)
executable('notmuch-shared', notmuch_client_srcs,
include_directories: [inc_util, inc_compat, inc_lib],
dependencies: [dep_gmime, dep_zlib, dep_glib, dep_talloc],
link_with: [lib_compat, lib_util, lib_parse_time, lib_notmuch],
install: true)
configure_file(input: 'sh.config.in',
output: 'sh.config',
configuration: config)
|