mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-31 18:15:25 +00:00
meson: src: build libvirt_driver_interface.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:
parent
26526f0045
commit
724e654467
@ -1,43 +1,10 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
INTERFACE_DRIVER_SOURCES = \
|
||||
interface/interface_driver.h \
|
||||
interface/interface_driver.c \
|
||||
$(NULL)
|
||||
|
||||
INTERFACE_DRIVER_NETCF_SOURCES = interface/interface_backend_netcf.c
|
||||
INTERFACE_DRIVER_UDEV_SOURCES = interface/interface_backend_udev.c
|
||||
|
||||
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(INTERFACE_DRIVER_SOURCES))
|
||||
STATEFUL_DRIVER_SOURCE_FILES += \
|
||||
$(addprefix $(srcdir)/,$(INTERFACE_DRIVER_SOURCES))
|
||||
|
||||
if WITH_INTERFACE
|
||||
mod_LTLIBRARIES += libvirt_driver_interface.la
|
||||
libvirt_driver_interface_la_CFLAGS = \
|
||||
-I$(srcdir)/access \
|
||||
-I$(builddir)/access \
|
||||
-I$(srcdir)/conf \
|
||||
$(AM_CFLAGS) \
|
||||
$(LIBNL_CFLAGS) \
|
||||
$(NULL)
|
||||
libvirt_driver_interface_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
|
||||
libvirt_driver_interface_la_LIBADD = \
|
||||
libvirt.la \
|
||||
$(GLIB_LIBS) \
|
||||
$(NULL)
|
||||
libvirt_driver_interface_la_SOURCES = $(INTERFACE_DRIVER_SOURCES)
|
||||
if WITH_NETCF
|
||||
libvirt_driver_interface_la_CFLAGS += $(NETCF_CFLAGS)
|
||||
libvirt_driver_interface_la_LIBADD += $(NETCF_LIBS)
|
||||
libvirt_driver_interface_la_SOURCES += $(INTERFACE_DRIVER_NETCF_SOURCES)
|
||||
endif WITH_NETCF
|
||||
if WITH_UDEV
|
||||
libvirt_driver_interface_la_CFLAGS += $(UDEV_CFLAGS)
|
||||
libvirt_driver_interface_la_LIBADD += $(UDEV_LIBS)
|
||||
libvirt_driver_interface_la_SOURCES += $(INTERFACE_DRIVER_UDEV_SOURCES)
|
||||
endif WITH_UDEV
|
||||
|
||||
sbin_PROGRAMS += virtinterfaced
|
||||
|
||||
nodist_conf_DATA += interface/virtinterfaced.conf
|
||||
|
29
src/interface/meson.build
Normal file
29
src/interface/meson.build
Normal file
@ -0,0 +1,29 @@
|
||||
interface_driver_sources = [
|
||||
'interface_driver.c',
|
||||
]
|
||||
|
||||
if conf.has('WITH_NETCF')
|
||||
interface_driver_sources += 'interface_backend_netcf.c'
|
||||
endif
|
||||
|
||||
if conf.has('WITH_UDEV')
|
||||
interface_driver_sources += 'interface_backend_udev.c'
|
||||
endif
|
||||
|
||||
if conf.has('WITH_INTERFACE')
|
||||
virt_modules += {
|
||||
'name': 'virt_driver_interface',
|
||||
'sources': [
|
||||
files(interface_driver_sources),
|
||||
],
|
||||
'deps': [
|
||||
access_dep,
|
||||
libnl_dep,
|
||||
netcf_dep,
|
||||
udev_dep,
|
||||
],
|
||||
'link_args': [
|
||||
libvirt_no_undefined,
|
||||
],
|
||||
}
|
||||
endif
|
@ -163,6 +163,7 @@ subdir('vmx')
|
||||
subdir('remote')
|
||||
|
||||
subdir('admin')
|
||||
subdir('interface')
|
||||
subdir('locking')
|
||||
subdir('logging')
|
||||
subdir('network')
|
||||
|
Loading…
Reference in New Issue
Block a user