-
Notifications
You must be signed in to change notification settings - Fork 93
/
meson.build
51 lines (45 loc) · 1.26 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
project(
'flatpak-builder',
'c',
license: 'LGPL-2.1-or-later',
meson_version: '>= 0.56.2',
version: '1.4.4',
default_options: 'c_std=gnu99',
)
cc = meson.get_compiler('c')
project_c_args = [
'-Werror=empty-body',
'-Werror=strict-prototypes',
'-Werror=missing-prototypes',
'-Werror=implicit-function-declaration',
'-Werror=format=2',
'-Werror=format-security',
'-Werror=format-nonliteral',
'-Werror=pointer-arith',
'-Werror=init-self',
'-Werror=missing-declarations',
'-Werror=return-type',
'-Werror=overflow',
'-Werror=int-conversion',
'-Werror=parentheses',
'-Werror=incompatible-pointer-types',
'-Werror=misleading-indentation',
'-Werror=missing-include-dirs',
# Necessary for non POSIX stuff in glibc like fallocate
'-D_GNU_SOURCE',
]
foreach arg : project_c_args
if cc.has_argument(arg)
add_project_arguments(arg, language: 'c')
endif
endforeach
# The debugedit program is a hard dependency
debugedit = find_program('debugedit', version: '>= 5.0')
# Require appstream with compose plugin installed
appstreamcli = find_program('appstreamcli', version: '>= 0.15.0')
appstreamcli_compose = run_command(appstreamcli, ['compose', '--help'], check: true)
subdir('src')
subdir('doc')
if get_option('tests')
subdir('tests')
endif