2017-11-25 11:39:06 +01:00
|
|
|
deps = [
|
|
|
|
|
dbus_dep,
|
|
|
|
|
dbus_glib_dep,
|
|
|
|
|
libnm_glib_dep,
|
2018-01-07 15:39:42 +01:00
|
|
|
libnm_util_dep,
|
|
|
|
|
shared_dep
|
2017-11-25 11:39:06 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
test_units = [
|
2018-04-11 14:30:28 +02:00
|
|
|
'test-nm-client',
|
|
|
|
|
'test-remote-settings-client'
|
2017-11-25 11:39:06 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
foreach test_unit: test_units
|
|
|
|
|
exe = executable(
|
2017-12-14 17:03:34 +01:00
|
|
|
test_unit,
|
build/meson: fix meson build for shared files
The files in shared/nm-utils are not compiled as one static library,
instead each subproject that needs (parts of) them, re-compiles the
files individually.
The major reason for that is, because we might have different compile
flags, depending on whether we build libnm-core or
libnm-util/libnm-glib. Actually, I think that is not really the case,
and maybe this should be refactored, to indeed build them all as a
static library first.
Anyway, libnm-util, libnm-glib, clients' common lib, they all need a
different set of shared files that they should compile. Refactor
"shared/meson.build" to account for that and handle it like autotools
does.
Another change is, that "shared_c_siphash_dep" no longer advertises
"include_directories: include_directories('c-siphash/src')". We don't
put c-siphash.h into the include search path. Users who need it, should
include it via "#include <c-siphash/src/c-siphash.h>". The only exception
is when building shared_n_acd library, which is not under our control.
2018-05-30 15:16:01 +02:00
|
|
|
[test_unit + '.c'] + shared_nm_test_utils_impl_c,
|
2017-11-25 11:39:06 +01:00
|
|
|
dependencies: deps,
|
2018-05-30 10:23:17 +02:00
|
|
|
c_args:
|
|
|
|
|
common_cflags + [
|
|
|
|
|
'-DNETWORKMANAGER_COMPILATION_TEST',
|
|
|
|
|
] +
|
|
|
|
|
nm_build_cflags,
|
2017-11-25 11:39:06 +01:00
|
|
|
)
|
|
|
|
|
|
2018-04-11 10:49:33 +02:00
|
|
|
test(
|
2018-04-11 14:47:07 +02:00
|
|
|
'libnm-glib/' + test_unit,
|
2018-04-11 10:49:33 +02:00
|
|
|
test_script,
|
|
|
|
|
args: test_args + [exe.full_path()]
|
|
|
|
|
)
|
2017-11-25 11:39:06 +01:00
|
|
|
endforeach
|