meson: src: build virtsecretd daemon binary

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 16:55:12 +02:00
parent f77b7c270d
commit cd45b70ea8
2 changed files with 8 additions and 12 deletions

View File

@ -5,22 +5,10 @@ STATEFUL_DRIVER_SOURCE_FILES += \
$(addprefix $(srcdir)/,$(SECRET_DRIVER_SOURCES))
if WITH_SECRETS
sbin_PROGRAMS += virtsecretd
nodist_conf_DATA += secret/virtsecretd.conf
augeas_DATA += secret/virtsecretd.aug
augeastest_DATA += secret/test_virtsecretd.aug
virtsecretd_SOURCES = $(REMOTE_DAEMON_SOURCES)
nodist_virtsecretd_SOURCES = $(REMOTE_DAEMON_GENERATED)
virtsecretd_CFLAGS = \
$(REMOTE_DAEMON_CFLAGS) \
-DDAEMON_NAME="\"virtsecretd\"" \
-DMODULE_NAME="\"secret\"" \
$(NULL)
virtsecretd_LDFLAGS = $(REMOTE_DAEMON_LD_FLAGS)
virtsecretd_LDADD = $(REMOTE_DAEMON_LD_ADD)
SYSCONF_FILES += secret/virtsecretd.sysconf
SYSTEMD_UNIT_FILES += \

View File

@ -15,4 +15,12 @@ if conf.has('WITH_SECRETS')
libvirt_no_undefined,
],
}
virt_daemons += {
'name': 'virtsecretd',
'c_args': [
'-DDAEMON_NAME="virtsecretd"',
'-DMODULE_NAME="secret"',
],
}
endif