mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 17:14:02 +00:00
build/meson: cleanup "libnm/tests/meson.build"
This commit is contained in:
parent
beb29ffb3c
commit
be9ed624a9
|
@ -1,28 +1,24 @@
|
|||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
test_units = [
|
||||
['test-libnm', 30],
|
||||
['test-nm-client', 90],
|
||||
['test-libnm', 30],
|
||||
['test-nm-client', 90],
|
||||
['test-remote-settings-client', 90],
|
||||
['test-secret-agent', 90],
|
||||
]
|
||||
|
||||
deps = [
|
||||
libnm_core_dep,
|
||||
libnm_nm_default_dep,
|
||||
]
|
||||
|
||||
c_flags = [
|
||||
'-DNETWORKMANAGER_COMPILATION_TEST',
|
||||
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM',
|
||||
['test-secret-agent', 90],
|
||||
]
|
||||
|
||||
foreach test_unit: test_units
|
||||
exe = executable(
|
||||
test_unit[0],
|
||||
[test_unit[0] + '.c', nm_test_utils_impl_source, libnm_enum_sources[1]],
|
||||
dependencies: deps,
|
||||
c_args: c_flags,
|
||||
dependencies: [
|
||||
libnm_core_dep,
|
||||
libnm_nm_default_dep,
|
||||
],
|
||||
c_args: [
|
||||
'-DNETWORKMANAGER_COMPILATION_TEST',
|
||||
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM',
|
||||
],
|
||||
link_with: libnm_static,
|
||||
)
|
||||
|
||||
|
@ -40,5 +36,8 @@ libnm_vpn_plugin_utils_test = static_library(
|
|||
sources: nm_vpn_plugin_utils_source + [libnm_enum_sources[1]],
|
||||
include_directories: libnm_inc,
|
||||
dependencies: libnm_nm_default_dep,
|
||||
c_args: c_flags,
|
||||
c_args: [
|
||||
'-DNETWORKMANAGER_COMPILATION_TEST',
|
||||
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM',
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue