-
Notifications
You must be signed in to change notification settings - Fork 131
/
Copy pathmeson.build
56 lines (48 loc) · 1.46 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
project('iptux', 'cpp',
license: 'GPL2+',
version: '0.9.4',
meson_version: '>=0.53',
default_options: ['warning_level=3', 'cpp_std=c++14'])
add_global_arguments('-Werror=format', language : 'cpp')
if get_option('sanitize-address')
add_project_arguments('-fsanitize=address', language: 'cpp')
add_project_link_arguments('-fsanitize=address', language: 'cpp')
endif
so_version = 1
subdir('src')
subdir('share')
subdir('po')
subdir('examples')
subdir('scripts')
if meson.version().version_compare('>=0.57')
summary({
'prefix': get_option('prefix'),
'bindir': get_option('bindir'),
'libdir': get_option('libdir'),
'data': get_option('datadir'),
}, section: 'Directories:')
summary_deps = {
'meson': meson.version(),
'glib-2.0': glib_dep,
'gtk+-3.0': gtk_dep,
'jsoncpp': jsoncpp_dep,
'sigc++-2.0': sigc_dep,
}
if host_machine.system() == 'darwin'
summary_deps += {'gtk-mac-integration-gtk3': gtk_mac_integration_dep}
endif
if host_machine.system() == 'linux'
summary_deps += {'ayatana-appindicator3-0.1': appindicator_dep}
endif
summary_deps += {
'glib-compile-resources': glib_compile_resources,
'appstreamcli': ascli_exe,
}
summary(summary_deps, section: 'Dependencies:')
summary({
'dev': get_option('dev'),
'static-link': get_option('static-link'),
'appindicator': appindicator_dep.found(),
'sanitize-address': get_option('sanitize-address'),
}, section: 'Options:')
endif