meson: src: build virtvzd 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:58:39 +02:00
parent 19c67d0593
commit 425e27ad55
3 changed files with 8 additions and 13 deletions

View File

@ -44,7 +44,6 @@ OPENRC_INIT_FILES =
OPENRC_INIT_FILES_IN =
OPENRC_CONF_FILES =
SYSCONF_FILES =
sbin_PROGRAMS =
bin_PROGRAMS =
COMMON_UNIT_VARS = \

View File

@ -5,22 +5,10 @@ STATEFUL_DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(VZ_DRIVER_SOURCES))
if WITH_VZ
sbin_PROGRAMS += virtvzd
nodist_conf_DATA += vz/virtvzd.conf
augeas_DATA += vz/virtvzd.aug
augeastest_DATA += vz/test_virtvzd.aug
virtvzd_SOURCES = $(REMOTE_DAEMON_SOURCES)
nodist_virtvzd_SOURCES = $(REMOTE_DAEMON_GENERATED)
virtvzd_CFLAGS = \
$(REMOTE_DAEMON_CFLAGS) \
-DDAEMON_NAME="\"virtvzd\"" \
-DMODULE_NAME="\"vz\"" \
$(NULL)
virtvzd_LDFLAGS = $(REMOTE_DAEMON_LD_FLAGS)
virtvzd_LDADD = $(REMOTE_DAEMON_LD_ADD)
SYSCONF_FILES += vz/virtvzd.sysconf
SYSTEMD_UNIT_FILES += \

View File

@ -30,4 +30,12 @@ if conf.has('WITH_VZ')
libvirt_no_undefined,
],
}
virt_daemons += {
'name': 'virtvzd',
'c_args': [
'-DDAEMON_NAME="virtvzd"',
'-DMODULE_NAME="vz"',
],
}
endif