]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: src: build libvirt_leaseshelper binary
authorPavel Hrdina <phrdina@redhat.com>
Wed, 24 Jun 2020 11:30:51 +0000 (13:30 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:05 +0000 (09:27 +0200)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
src/network/Makefile.inc.am
src/network/meson.build

index c0c8180674dbe56ad5f328aabf36ea65df0696eb..fe93adc0194dd955dc7a7e2647776c462947705f 100644 (file)
@@ -1,14 +1,9 @@
 # vim: filetype=automake
 
-NETWORK_LEASES_HELPER_SOURCES = \
-       network/leaseshelper.c \
-       $(NULL)
-
 DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(NETWORK_DRIVER_SOURCES))
 STATEFUL_DRIVER_SOURCE_FILES += \
        $(addprefix $(srcdir)/,$(NETWORK_DRIVER_SOURCES))
 
-
 if WITH_NETWORK
 nodist_conf_DATA += network/virtnetworkd.conf
 augeas_DATA += network/virtnetworkd.aug
@@ -74,23 +69,6 @@ network/test_virtnetworkd.aug: remote/test_libvirtd.aug.in \
                -e 's/[@]DAEMON_NAME_UC[@]/Virtnetworkd/' \
                > $@ || rm -f $@
 
-libexec_PROGRAMS += libvirt_leaseshelper
-libvirt_leaseshelper_SOURCES = $(NETWORK_LEASES_HELPER_SOURCES)
-libvirt_leaseshelper_LDFLAGS = \
-       $(AM_LDFLAGS) \
-       $(NULL)
-libvirt_leaseshelper_LDADD = \
-       libvirt.la \
-       $(GLIB_LIBS) \
-       $(NULL)
-if WITH_DTRACE_PROBES
-libvirt_leaseshelper_LDADD += libvirt_probes.lo
-endif WITH_DTRACE_PROBES
-
-libvirt_leaseshelper_CFLAGS = \
-       $(AM_CFLAGS) \
-       $(NULL)
-
 INSTALL_DATA_DIRS += network
 
 UUID=$(shell uuidgen 2>/dev/null)
index d244d2f522bc445817a69cbf437c3399fe00883f..9b59e442c9d100b5e5df73f1ef64ec3e2e14d10d 100644 (file)
@@ -3,6 +3,10 @@ network_driver_sources = [
   'bridge_driver_platform.c',
 ]
 
+network_leases_helper_sources = files(
+  'leaseshelper.c',
+)
+
 if conf.has('WITH_NETWORK')
   network_driver_impl = static_library(
     'virt_driver_network_impl',
@@ -41,4 +45,12 @@ if conf.has('WITH_NETWORK')
       '-DMODULE_NAME="network"',
     ],
   }
+
+  virt_helpers += {
+    'name': 'libvirt_leaseshelper',
+    'sources': [
+      network_leases_helper_sources,
+      dtrace_gen_objects,
+    ],
+  }
 endif