]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: src: build libvirt_driver_secret.so shared module
authorPavel Hrdina <phrdina@redhat.com>
Wed, 17 Jun 2020 23:14:10 +0000 (01:14 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 3 Aug 2020 07:27:04 +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/meson.build
src/secret/Makefile.inc.am
src/secret/meson.build [new file with mode: 0644]

index 900060cfa986ab07161496fe3edb6d11ddc1c799..77496addb84daea5ebb21479fb0c2eb5bc718bea 100644 (file)
@@ -169,6 +169,7 @@ subdir('logging')
 subdir('network')
 subdir('node_device')
 subdir('nwfilter')
+subdir('secret')
 subdir('security')
 subdir('storage')
 
index 586e6e372fd4289837d6e307ec506206eba7a2d2..e47aa678a6caa3746dc9d424dbc7650d5c6b6398 100644 (file)
@@ -1,31 +1,10 @@
 # vim: filetype=automake
 
-SECRET_DRIVER_SOURCES = \
-       secret/secret_driver.h \
-       secret/secret_driver.c \
-       $(NULL)
-
-
 DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(SECRET_DRIVER_SOURCES))
 STATEFUL_DRIVER_SOURCE_FILES += \
        $(addprefix $(srcdir)/,$(SECRET_DRIVER_SOURCES))
 
-
 if WITH_SECRETS
-mod_LTLIBRARIES += libvirt_driver_secret.la
-libvirt_driver_secret_la_CFLAGS = \
-       -I$(srcdir)/access \
-       -I$(builddir)/access \
-       -I$(srcdir)/conf \
-       $(AM_CFLAGS) \
-       $(NULL)
-libvirt_driver_secret_la_LIBADD = \
-       libvirt.la \
-       $(GLIB_LIBS) \
-       $(NULL)
-libvirt_driver_secret_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
-libvirt_driver_secret_la_SOURCES = $(SECRET_DRIVER_SOURCES)
-
 sbin_PROGRAMS += virtsecretd
 
 nodist_conf_DATA += secret/virtsecretd.conf
diff --git a/src/secret/meson.build b/src/secret/meson.build
new file mode 100644 (file)
index 0000000..a6d0a32
--- /dev/null
@@ -0,0 +1,18 @@
+secret_driver_sources = [
+  'secret_driver.c',
+]
+
+if conf.has('WITH_SECRETS')
+  virt_modules += {
+    'name': 'virt_driver_secret',
+    'sources': [
+      files(secret_driver_sources),
+    ],
+    'deps': [
+      access_dep,
+    ],
+    'link_args': [
+      libvirt_no_undefined,
+    ],
+  }
+endif