forked from rpm-software-management/microdnf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
46 lines (41 loc) · 1.18 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
project('microdnf', 'c',
version : '1',
license : 'GPL-3.0+',
default_options : [
'b_asneeded=True',
'b_lundef=True',
'c_std=gnu11',
'warning_level=1',
],
meson_version : '>=0.36.0')
cc = meson.get_compiler('c')
test_cflags = [
'-fstrict-aliasing',
'-Wformat=2',
'-Wunused',
'-Wuninitialized',
'-Wstrict-prototypes',
'-Wmissing-prototypes',
'-Werror=implicit',
'-Werror=init-self',
'-Werror=main',
]
foreach cflag : test_cflags
if cc.has_argument(cflag)
add_project_arguments(cflag, language : 'c')
endif
endforeach
gnome = import('gnome')
glib = dependency('glib-2.0', version : '>=2.44.0')
gobject = dependency('gobject-2.0', version : '>=2.44.0')
libpeas = dependency('libpeas-1.0', version : '>=1.20.0')
libdnf = dependency('libdnf', version : '>=0.7.0')
scols = dependency('smartcols')
pkg_libdir = join_paths(get_option('prefix'), get_option('libdir'), 'dnf')
pkg_datadir = join_paths(get_option('prefix'), get_option('datadir'), 'dnf')
add_project_arguments(
'-DPACKAGE_LIBDIR="@0@"'.format(pkg_libdir),
'-DPACKAGE_DATADIR="@0@"'.format(pkg_datadir),
language : 'c',
)
subdir('dnf')