-
Notifications
You must be signed in to change notification settings - Fork 10
/
meson.build
23 lines (21 loc) · 970 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
project('fus', 'c', license : 'GPL-3.0+')
dep_glib = dependency('glib-2.0')
dep_gio = dependency('gio-2.0')
dep_libsolv = dependency('libsolv', version : '>= 0.6.34')
dep_libsolvext = dependency('libsolvext', version : '>= 0.6.34')
dep_modulemd = dependency('modulemd-2.0', version : '>= 2.11.1')
dep_libsoup = dependency('libsoup-2.4', version: '>= 2.4')
add_project_arguments('-DG_LOG_DOMAIN="fus"', language : 'c')
exe_main = executable('fus', 'repo.c', 'fus.c', 'main.c',
dependencies : [dep_glib, dep_gio, dep_libsolv, dep_libsolvext, dep_modulemd, dep_libsoup],
install : true)
exe_test = executable('tests', 'repo.c', 'fus.c', 'tests.c',
dependencies : [dep_glib, dep_gio, dep_libsolv, dep_libsolvext, dep_modulemd, dep_libsoup],
install : false,
c_args : '-DFUS_TESTING')
test('tests', exe_test,
env: [
'G_TEST_SRCDIR=@0@/tests/'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
],
)