meson: src: build virtnetworkd 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:46:37 +02:00
parent 39630772dc
commit 4f0527653f
2 changed files with 8 additions and 12 deletions

View File

@ -10,22 +10,10 @@ STATEFUL_DRIVER_SOURCE_FILES += \
if WITH_NETWORK
sbin_PROGRAMS += virtnetworkd
nodist_conf_DATA += network/virtnetworkd.conf
augeas_DATA += network/virtnetworkd.aug
augeastest_DATA += network/test_virtnetworkd.aug
virtnetworkd_SOURCES = $(REMOTE_DAEMON_SOURCES)
nodist_virtnetworkd_SOURCES = $(REMOTE_DAEMON_GENERATED)
virtnetworkd_CFLAGS = \
$(REMOTE_DAEMON_CFLAGS) \
-DDAEMON_NAME="\"virtnetworkd\"" \
-DMODULE_NAME="\"network\"" \
$(NULL)
virtnetworkd_LDFLAGS = $(REMOTE_DAEMON_LD_FLAGS)
virtnetworkd_LDADD = $(REMOTE_DAEMON_LD_ADD)
SYSCONF_FILES += network/virtnetworkd.sysconf
SYSTEMD_UNIT_FILES += \

View File

@ -33,4 +33,12 @@ if conf.has('WITH_NETWORK')
libvirt_no_undefined,
],
}
virt_daemons += {
'name': 'virtnetworkd',
'c_args': [
'-DDAEMON_NAME="virtnetworkd"',
'-DMODULE_NAME="network"',
],
}
endif