NetworkManager/libnm-glib/tests/meson.build
Thomas Haller c67ebc8abf build/meson: add intermediate shared/nm-utils base library
Like also done for autotools, create and use intermediate libraries
from "shared/nm-utils/".

Also, replace "shared_dep" by "shared_nm_utils_base_dep". We don't
need super fine-grained selection of what we link. We can always
link in "shared/libnm-utils-base.a", and let the linker throw away
unsed parts.
2019-02-05 09:53:24 +01:00

30 lines
526 B
Meson

deps = [
dbus_dep,
dbus_glib_dep,
libnm_glib_dep,
libnm_util_dep,
shared_nm_utils_base_dep,
]
test_units = [
'test-nm-client',
'test-remote-settings-client',
]
foreach test_unit: test_units
exe = executable(
test_unit,
[test_unit + '.c'] + shared_nm_test_utils_impl_c,
dependencies: deps,
c_args:
common_cflags + [
'-DNETWORKMANAGER_COMPILATION_TEST',
],
)
test(
'libnm-glib/' + test_unit,
test_script,
args: test_args + [exe.full_path()],
)
endforeach