meson: src: build virtxend 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:36:17 +02:00
parent 1d4e6af169
commit 0d2b17a54c
2 changed files with 8 additions and 11 deletions

View File

@ -4,22 +4,11 @@ DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(LIBXL_DRIVER_SOURCES))
STATEFUL_DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(LIBXL_DRIVER_SOURCES))
if WITH_LIBXL
sbin_PROGRAMS += virtxend
nodist_conf_DATA += libxl/virtxend.conf
augeas_DATA += libxl/virtxend.aug
augeastest_DATA += libxl/test_virtxend.aug
virtxend_SOURCES = $(REMOTE_DAEMON_SOURCES)
nodist_virtxend_SOURCES = $(REMOTE_DAEMON_GENERATED)
virtxend_CFLAGS = \
$(REMOTE_DAEMON_CFLAGS) \
-DDAEMON_NAME="\"virtxend\"" \
-DMODULE_NAME="\"libxl\"" \
$(NULL)
virtxend_LDFLAGS = $(REMOTE_DAEMON_LD_FLAGS)
virtxend_LDADD = $(REMOTE_DAEMON_LD_ADD)
SYSCONF_FILES += libxl/virtxend.sysconf
SYSTEMD_UNIT_FILES += \

View File

@ -36,4 +36,12 @@ if conf.has('WITH_LIBXL')
libvirt_no_undefined,
],
}
virt_daemons += {
'name': 'virtxend',
'c_args': [
'-DDAEMON_NAME="virtxend"',
'-DMODULE_NAME="libxl"',
],
}
endif