mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 04:50:30 +01:00
meson: Improve dispatcher test build file
Different objects used in the `test-dispatcher-envp` target have been grouped together. The dependency over the `libnm` library has been removed as it is unnecessary.
This commit is contained in:
parent
4e85fdcdb7
commit
70da6993c8
1 changed files with 12 additions and 14 deletions
|
|
@ -1,23 +1,21 @@
|
|||
test_unit = 'test-dispatcher-envp'
|
||||
|
||||
incs = [
|
||||
dispatcher_inc,
|
||||
libnm_inc,
|
||||
deps = [
|
||||
libnm_nm_default_dep,
|
||||
libnm_utils_base_dep,
|
||||
]
|
||||
|
||||
c_flags = [
|
||||
'-DNETWORKMANAGER_COMPILATION_TEST',
|
||||
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_CLIENT',
|
||||
]
|
||||
|
||||
exe = executable(
|
||||
test_unit,
|
||||
[ test_unit + '.c' ] + [ nmdbus_dispatcher_sources ],
|
||||
include_directories: incs,
|
||||
dependencies: [
|
||||
libnm_dep,
|
||||
libnm_nm_default_dep,
|
||||
libnm_utils_base_dep,
|
||||
],
|
||||
c_args: [
|
||||
'-DNETWORKMANAGER_COMPILATION_TEST',
|
||||
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_CLIENT',
|
||||
],
|
||||
[test_unit + '.c', nmdbus_dispatcher_sources],
|
||||
include_directories: dispatcher_inc,
|
||||
dependencies: deps,
|
||||
c_args: c_flags,
|
||||
link_with: libnm_dispatcher_core,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue