-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathmeson.build
41 lines (38 loc) · 962 Bytes
/
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
project('modulemd', 'c',
version : '1.4.1',
default_options : [
'buildtype=debugoptimized',
'c_std=c11',
'warning_level=1',
'b_asneeded=true',
],
license : 'MIT',
meson_version : '>=0.36.0')
cc = meson.get_compiler('c')
test_cflags = [
'-Wpointer-arith',
'-Wmissing-declarations',
'-Wmissing-prototypes',
'-Wstrict-prototypes',
'-Wuninitialized',
'-Werror=implicit',
'-Werror=init-self',
'-Werror=main',
'-Werror=missing-braces',
'-Werror=return-type',
'-Werror=array-bounds',
'-Werror=write-strings',
'-DG_LOG_USE_STRUCTURED',
'-DG_LOG_DOMAIN="libmodulemd"',
]
foreach cflag: test_cflags
if cc.has_argument(cflag)
add_project_arguments(cflag, language : 'c')
endif
endforeach
gnome = import('gnome')
pkg = import('pkgconfig')
gobject = dependency('gobject-2.0')
yaml = dependency('yaml-0.1')
gtkdoc = dependency('gtk-doc')
subdir('modulemd')