meson: src: build libvirt_driver_network.so shared module

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
Pavel Hrdina 2020-06-22 15:25:53 +02:00
parent b6188d470f
commit 141e017519
2 changed files with 14 additions and 13 deletions

View File

@ -10,19 +10,6 @@ STATEFUL_DRIVER_SOURCE_FILES += \
if WITH_NETWORK
noinst_LTLIBRARIES += libvirt_driver_network_impl.la
libvirt_driver_network_la_SOURCES =
libvirt_driver_network_la_LIBADD = \
libvirt_driver_network_impl.la \
libvirt.la \
$(GLIB_LIBS) \
$(LIBNL_LIBS) \
$(DBUS_LIBS) \
$(NULL)
mod_LTLIBRARIES += libvirt_driver_network.la
libvirt_driver_network_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
sbin_PROGRAMS += virtnetworkd
nodist_conf_DATA += network/virtnetworkd.conf

View File

@ -19,4 +19,18 @@ if conf.has('WITH_NETWORK')
conf_inc_dir,
],
)
virt_modules += {
'name': 'virt_driver_network',
'deps': [
dbus_dep,
libnl_dep,
],
'link_whole': [
network_driver_impl,
],
'link_args': [
libvirt_no_undefined,
],
}
endif