-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmeson.build
40 lines (35 loc) · 1.25 KB
/
meson.build
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
project(
'callblocker', 'cpp',
version: '0.15.5',
license: 'GPL-2.0',
meson_version: '>= 0.50.0'
)
# grab necessary paths
path_prefix = get_option('prefix')
path_sysconfdir = join_paths(path_prefix, get_option('sysconfdir'))
path_datadir = join_paths(path_prefix, get_option('datadir'))
path_localstatedir = join_paths(path_prefix, get_option('localstatedir'))
add_global_arguments('-DPACKAGE_NAME="@0@"'.format(meson.project_name()), language: 'cpp')
add_global_arguments('-DVERSION="@0@"'.format(meson.project_version()), language: 'cpp')
add_global_arguments('-DSYSCONFDIR="@0@"'.format(path_sysconfdir), language: 'cpp')
add_global_arguments('-DDATADIR="@0@"'.format(path_datadir), language: 'cpp')
cpp = meson.get_compiler('cpp')
dep_json = dependency('json-c')
dep_phonenumber = cpp.find_library('phonenumber')
deps_for_pjproject = [
cpp.find_library('pthread'),
cpp.find_library('uuid'),
dependency('openssl')
]
add_global_arguments('-DPJ_AUTOCONF=1', language : 'cpp')
if dep_phonenumber.found()
add_global_arguments('-DHAVE_LIBPHONENUMBER=1', language : 'cpp')
endif
subdir('third-party/pjproject')
subdir('src')
subdir('web')
subdir('usr/share')
subdir('usr/var/www')
subdir('etc/callblocker')
subdir('etc/systemd/system')
subdir('tests/callblockerd')