mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-06 17:14:02 +00:00
build/meson: add libnm_systemd_core_dep dependency
This commit is contained in:
parent
63e070b180
commit
05008faf6e
|
@ -1,6 +1,15 @@
|
|||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
sources = files(
|
||||
incs = include_directories(
|
||||
'sd-adapt-core',
|
||||
'src/libsystemd-network',
|
||||
'src/libsystemd/sd-event',
|
||||
'src/systemd',
|
||||
)
|
||||
|
||||
libnm_systemd_core = static_library(
|
||||
'nm-systemd-core',
|
||||
sources: files(
|
||||
'src/libsystemd-network/arp-util.c',
|
||||
'src/libsystemd-network/dhcp-identifier.c',
|
||||
'src/libsystemd-network/dhcp-network.c',
|
||||
|
@ -26,25 +35,22 @@ sources = files(
|
|||
'nm-sd-utils-core.c',
|
||||
'nm-sd-utils-dhcp.c',
|
||||
'sd-adapt-core/nm-sd-adapt-core.c',
|
||||
)
|
||||
|
||||
incs = include_directories(
|
||||
'sd-adapt-core',
|
||||
'src/libsystemd-network',
|
||||
'src/libsystemd/sd-event',
|
||||
'src/systemd',
|
||||
)
|
||||
|
||||
deps = [
|
||||
),
|
||||
include_directories: incs,
|
||||
dependencies: [
|
||||
daemon_nm_default_dep,
|
||||
libnm_systemd_shared_dep,
|
||||
]
|
||||
|
||||
libnm_systemd_core = static_library(
|
||||
'nm-systemd-core',
|
||||
sources: sources,
|
||||
include_directories: incs,
|
||||
dependencies: deps,
|
||||
],
|
||||
c_args: '-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_SYSTEMD',
|
||||
link_with: libc_siphash,
|
||||
)
|
||||
|
||||
libnm_systemd_core_dep = declare_dependency(
|
||||
include_directories: incs,
|
||||
dependencies: [
|
||||
glib_dep,
|
||||
daemon_nm_default_dep,
|
||||
libnm_systemd_shared_dep,
|
||||
],
|
||||
link_with: libnm_systemd_core,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue