summaryrefslogtreecommitdiff
path: root/libnm/tests
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2019-09-09 11:40:11 +0200
committerThomas Haller <thaller@redhat.com>2019-10-01 09:49:33 +0200
commitf427f4771e4a500933ed3065a9789ce8bd0b6938 (patch)
treea56e094e91fb4c0882d48a0d32d7718bb57490da /libnm/tests
parentad4834009b2e520303a2483d23084c37f07ace93 (diff)
downloadNetworkManager-f427f4771e4a500933ed3065a9789ce8bd0b6938.tar.gz
meson: Improve the libnm-core build file
The `libnm-core` build file has been improved by applying a set of changes: - Indentation has been fixed to be consistent. - Library variable names have been changed to `lib{name}` pattern following their filename pattern. - `shared` prefix has been removed from all variables using it. - Dependencies have been reviewed to store the necessary data. - The use of the libraries and dependencies created in this file has been reviewed through the entire source code. This has required the addition or the removal of different libraries and dependencies in different targets. - Some files used directly with the `files` function have been moved to their nearest path build file because meson stores their full path seamessly and they can be used anywhere later.
Diffstat (limited to 'libnm/tests')
-rw-r--r--libnm/tests/meson.build14
1 files changed, 8 insertions, 6 deletions
diff --git a/libnm/tests/meson.build b/libnm/tests/meson.build
index 597c197b54..bfa126e2ec 100644
--- a/libnm/tests/meson.build
+++ b/libnm/tests/meson.build
@@ -5,6 +5,11 @@ test_units = [
['test-secret-agent', 90],
]
+deps = [
+ libnm_core_dep,
+ libnm_nm_default_dep,
+]
+
cflags = [
'-DNETWORKMANAGER_COMPILATION_TEST',
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIBNM',
@@ -16,14 +21,11 @@ foreach test_unit: test_units
[
test_unit[0] + '.c',
nm_test_utils_impl_source,
+ libnm_enum[1],
],
- dependencies: libnm_nm_default_dep,
+ dependencies: deps,
c_args: cflags,
- link_with: [
- liblibnm,
- libnm_core,
- libnm_systemd_logging_stub,
- ],
+ link_with: liblibnm,
)
test(