mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 12:34:55 +00:00
build/meson: cleanup build of test-systemd executable
This commit is contained in:
parent
fd2e626b40
commit
63e070b180
|
@ -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…
Reference in a new issue