[libvirt PATCH 206/351] meson: src: build virtnwfilterd daemon binary

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 src/nwfilter/Makefile.inc.am | 12 ------------
 src/nwfilter/meson.build     |  8 ++++++++
 2 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/src/nwfilter/Makefile.inc.am b/src/nwfilter/Makefile.inc.am
index d853282b705..eb5cade5b95 100644
--- a/src/nwfilter/Makefile.inc.am
+++ b/src/nwfilter/Makefile.inc.am
@@ -11,22 +11,10 @@ if WITH_NWFILTER
 nwfilterxmldir = $(sysconfdir)/libvirt/nwfilter
 nwfilterxml_DATA = $(NWFILTER_XML_FILES)
 
-sbin_PROGRAMS += virtnwfilterd
-
 nodist_conf_DATA += nwfilter/virtnwfilterd.conf
 augeas_DATA += nwfilter/virtnwfilterd.aug
 augeastest_DATA += nwfilter/test_virtnwfilterd.aug
 
-virtnwfilterd_SOURCES = $(REMOTE_DAEMON_SOURCES)
-nodist_virtnwfilterd_SOURCES = $(REMOTE_DAEMON_GENERATED)
-virtnwfilterd_CFLAGS = \
-       $(REMOTE_DAEMON_CFLAGS) \
-       -DDAEMON_NAME="\"virtnwfilterd\"" \
-       -DMODULE_NAME="\"nwfilter\"" \
-       $(NULL)
-virtnwfilterd_LDFLAGS = $(REMOTE_DAEMON_LD_FLAGS)
-virtnwfilterd_LDADD = $(REMOTE_DAEMON_LD_ADD)
-
 SYSCONF_FILES += nwfilter/virtnwfilterd.sysconf
 
 SYSTEMD_UNIT_FILES += \
diff --git a/src/nwfilter/meson.build b/src/nwfilter/meson.build
index 8da853c3ecb..b8f94c726c1 100644
--- a/src/nwfilter/meson.build
+++ b/src/nwfilter/meson.build
@@ -33,4 +33,12 @@ if conf.has('WITH_NWFILTER')
       libvirt_no_undefined,
     ],
   }
+
+  virt_daemons += {
+    'name': 'virtnwfilterd',
+    'c_args': [
+      '-DDAEMON_NAME="virtnwfilterd"',
+      '-DMODULE_NAME="nwfilter"',
+    ],
+  }
 endif
-- 
2.26.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux