NetworkManager/clients/common/tests/meson.build
Thomas Haller 309dccf5f9
build/meson: cleanup libnm-glib-aux dependencies
Avoid dependencies but explicitly link the static library where it is
used.

This also fixes that we linked libnm-log-core into
libnm-settings-plugin-ifcfg-rh.so, which duplicated the symbols
while it should used them from NetworkManager.
2021-02-28 10:42:04 +01:00

48 lines
867 B
Meson

# SPDX-License-Identifier: LGPL-2.1-or-later
exe = executable(
'test-clients-common',
'test-clients-common.c',
dependencies: [
libnmc_base_dep,
libnmc_dep,
libnm_core_aux_intern_dep_link,
libnm_core_aux_extern_dep_link,
libnm_base_dep_link,
glib_dep,
],
link_with: [
libnm_glib_aux,
libnm_std_aux,
libc_siphash,
],
)
test(
'clients/common/tests/test-clients-common',
test_script,
args: test_args + [exe.full_path()],
)
exe = executable(
'test-libnm-core-aux',
'test-libnm-core-aux.c',
dependencies: [
libnm_dep,
libnm_core_aux_extern_dep_link,
libnm_nm_default_dep,
glib_dep,
],
link_with: [
libnm_log_null,
libnm_glib_aux,
libnm_std_aux,
libc_siphash,
],
)
test(
'clients/common/tests/test-libnm-core-aux',
test_script,
args: test_args + [exe.full_path()]
)