mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
meson: src: build libvirt_driver_nwfilter_impl.a static library
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
edc8662daf
commit
520aa48b6d
@ -154,6 +154,7 @@ subdir('locking')
|
||||
subdir('logging')
|
||||
subdir('network')
|
||||
subdir('node_device')
|
||||
subdir('nwfilter')
|
||||
subdir('security')
|
||||
|
||||
subdir('bhyve')
|
||||
|
@ -2,20 +2,6 @@
|
||||
|
||||
NWFILTER_XML_FILES = $(wildcard $(srcdir)/nwfilter/xml/*.xml)
|
||||
|
||||
NWFILTER_DRIVER_SOURCES = \
|
||||
nwfilter/nwfilter_driver.h \
|
||||
nwfilter/nwfilter_driver.c \
|
||||
nwfilter/nwfilter_tech_driver.h \
|
||||
nwfilter/nwfilter_gentech_driver.c \
|
||||
nwfilter/nwfilter_gentech_driver.h \
|
||||
nwfilter/nwfilter_dhcpsnoop.c \
|
||||
nwfilter/nwfilter_dhcpsnoop.h \
|
||||
nwfilter/nwfilter_ebiptables_driver.c \
|
||||
nwfilter/nwfilter_ebiptables_driver.h \
|
||||
nwfilter/nwfilter_learnipaddr.c \
|
||||
nwfilter/nwfilter_learnipaddr.h \
|
||||
$(NULL)
|
||||
|
||||
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(NWFILTER_DRIVER_SOURCES))
|
||||
STATEFUL_DRIVER_SOURCE_FILES += \
|
||||
$(addprefix $(srcdir)/,$(NWFILTER_DRIVER_SOURCES))
|
||||
@ -25,29 +11,12 @@ if WITH_NWFILTER
|
||||
nwfilterxmldir = $(sysconfdir)/libvirt/nwfilter
|
||||
nwfilterxml_DATA = $(NWFILTER_XML_FILES)
|
||||
|
||||
noinst_LTLIBRARIES += libvirt_driver_nwfilter_impl.la
|
||||
libvirt_driver_nwfilter_la_SOURCES =
|
||||
libvirt_driver_nwfilter_la_LIBADD = libvirt_driver_nwfilter_impl.la
|
||||
libvirt_driver_nwfilter_la_LIBADD = \
|
||||
libvirt_driver_nwfilter_impl.la \
|
||||
libvirt.la
|
||||
mod_LTLIBRARIES += libvirt_driver_nwfilter.la
|
||||
libvirt_driver_nwfilter_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
|
||||
libvirt_driver_nwfilter_impl_la_CFLAGS = \
|
||||
$(LIBPCAP_CFLAGS) \
|
||||
$(LIBNL_CFLAGS) \
|
||||
$(DBUS_CFLAGS) \
|
||||
-I$(srcdir)/access \
|
||||
-I$(builddir)/access \
|
||||
-I$(srcdir)/conf \
|
||||
$(AM_CFLAGS) \
|
||||
$(NULL)
|
||||
libvirt_driver_nwfilter_impl_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libvirt_driver_nwfilter_impl_la_LIBADD = \
|
||||
libvirt.la \
|
||||
$(LIBPCAP_LIBS) \
|
||||
$(LIBNL_LIBS) \
|
||||
$(DBUS_LIBS) \
|
||||
$(GLIB_LIBS) \
|
||||
$(NULL)
|
||||
libvirt_driver_nwfilter_impl_la_SOURCES = $(NWFILTER_DRIVER_SOURCES)
|
||||
|
||||
sbin_PROGRAMS += virtnwfilterd
|
||||
|
||||
|
26
src/nwfilter/meson.build
Normal file
26
src/nwfilter/meson.build
Normal file
@ -0,0 +1,26 @@
|
||||
nwfilter_driver_sources = [
|
||||
'nwfilter_driver.c',
|
||||
'nwfilter_gentech_driver.c',
|
||||
'nwfilter_dhcpsnoop.c',
|
||||
'nwfilter_ebiptables_driver.c',
|
||||
'nwfilter_learnipaddr.c',
|
||||
]
|
||||
|
||||
if conf.has('WITH_NWFILTER')
|
||||
nwfilter_driver_impl = static_library(
|
||||
'virt_driver_nwfilter_impl',
|
||||
[
|
||||
nwfilter_driver_sources,
|
||||
],
|
||||
dependencies: [
|
||||
access_dep,
|
||||
dbus_dep,
|
||||
libnl_dep,
|
||||
libpcap_dep,
|
||||
src_dep,
|
||||
],
|
||||
include_directories: [
|
||||
conf_inc_dir,
|
||||
],
|
||||
)
|
||||
endif
|
Loading…
x
Reference in New Issue
Block a user