meson: src: build libvirt_driver_secret.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-18 01:14:10 +02:00
parent ea42db4c23
commit b30483f1d9
3 changed files with 19 additions and 21 deletions

View File

@ -169,6 +169,7 @@ subdir('logging')
subdir('network')
subdir('node_device')
subdir('nwfilter')
subdir('secret')
subdir('security')
subdir('storage')

View File

@ -1,31 +1,10 @@
# vim: filetype=automake
SECRET_DRIVER_SOURCES = \
secret/secret_driver.h \
secret/secret_driver.c \
$(NULL)
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(SECRET_DRIVER_SOURCES))
STATEFUL_DRIVER_SOURCE_FILES += \
$(addprefix $(srcdir)/,$(SECRET_DRIVER_SOURCES))
if WITH_SECRETS
mod_LTLIBRARIES += libvirt_driver_secret.la
libvirt_driver_secret_la_CFLAGS = \
-I$(srcdir)/access \
-I$(builddir)/access \
-I$(srcdir)/conf \
$(AM_CFLAGS) \
$(NULL)
libvirt_driver_secret_la_LIBADD = \
libvirt.la \
$(GLIB_LIBS) \
$(NULL)
libvirt_driver_secret_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
libvirt_driver_secret_la_SOURCES = $(SECRET_DRIVER_SOURCES)
sbin_PROGRAMS += virtsecretd
nodist_conf_DATA += secret/virtsecretd.conf

18
src/secret/meson.build Normal file
View File

@ -0,0 +1,18 @@
secret_driver_sources = [
'secret_driver.c',
]
if conf.has('WITH_SECRETS')
virt_modules += {
'name': 'virt_driver_secret',
'sources': [
files(secret_driver_sources),
],
'deps': [
access_dep,
],
'link_args': [
libvirt_no_undefined,
],
}
endif