mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-10 12:50:17 +01:00
build/meson: cleanup build of test-systemd executable
This commit is contained in:
parent
fd2e626b40
commit
63e070b180
1 changed files with 11 additions and 17 deletions
|
|
@ -29,28 +29,22 @@ foreach test_unit: test_units
|
|||
)
|
||||
endforeach
|
||||
|
||||
test_unit = 'test-systemd'
|
||||
|
||||
c_flags = [
|
||||
'-DNETWORKMANAGER_COMPILATION_TEST',
|
||||
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_SYSTEMD',
|
||||
]
|
||||
|
||||
links = [
|
||||
libnm_systemd_core,
|
||||
libnm_systemd_shared,
|
||||
]
|
||||
|
||||
exe = executable(
|
||||
test_unit,
|
||||
test_unit + '.c',
|
||||
'test-systemd',
|
||||
'test-systemd.c',
|
||||
dependencies: daemon_nm_default_dep,
|
||||
c_args: c_flags,
|
||||
link_with: links,
|
||||
c_args: [
|
||||
'-DNETWORKMANAGER_COMPILATION_TEST',
|
||||
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_SYSTEMD',
|
||||
],
|
||||
link_with: [
|
||||
libnm_systemd_core,
|
||||
libnm_systemd_shared,
|
||||
],
|
||||
)
|
||||
|
||||
test(
|
||||
test_unit,
|
||||
'test-systemd',
|
||||
test_script,
|
||||
args: test_args + [exe.full_path()],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue