mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 18:08:05 +02:00
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.
30 lines
526 B
Meson
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
|