meson: src: build virtstoraged 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-04-22 11:55:08 +02:00
parent cd45b70ea8
commit 1f6bbee89b
2 changed files with 8 additions and 12 deletions

View File

@ -9,22 +9,10 @@ STATEFUL_DRIVER_SOURCE_FILES += \
$(addprefix $(srcdir)/,$(STORAGE_DRIVER_SOURCES))
if WITH_STORAGE
sbin_PROGRAMS += virtstoraged
nodist_conf_DATA += storage/virtstoraged.conf
augeas_DATA += storage/virtstoraged.aug
augeastest_DATA += storage/test_virtstoraged.aug
virtstoraged_SOURCES = $(REMOTE_DAEMON_SOURCES)
nodist_virtstoraged_SOURCES = $(REMOTE_DAEMON_GENERATED)
virtstoraged_CFLAGS = \
$(REMOTE_DAEMON_CFLAGS) \
-DDAEMON_NAME="\"virtstoraged\"" \
-DMODULE_NAME="\"storage\"" \
$(NULL)
virtstoraged_LDFLAGS = $(REMOTE_DAEMON_LD_FLAGS)
virtstoraged_LDADD = $(REMOTE_DAEMON_LD_ADD)
SYSCONF_FILES += storage/virtstoraged.sysconf
SYSTEMD_UNIT_FILES += \

View File

@ -109,6 +109,14 @@ if conf.has('WITH_STORAGE')
],
'install_dir': storage_file_install_dir,
}
virt_daemons += {
'name': 'virtstoraged',
'c_args': [
'-DDAEMON_NAME="virtstoraged"',
'-DMODULE_NAME="storage"',
],
}
endif
if conf.has('WITH_STORAGE_DISK')