[libvirt PATCH 177/351] meson: src: build libvirt_driver_secret.so shared module

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

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 src/meson.build            |  1 +
 src/secret/Makefile.inc.am | 21 ---------------------
 src/secret/meson.build     | 18 ++++++++++++++++++
 3 files changed, 19 insertions(+), 21 deletions(-)
 create mode 100644 src/secret/meson.build

diff --git a/src/meson.build b/src/meson.build
index 92f80b5838b..13f231f4345 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -160,6 +160,7 @@ subdir('logging')
 subdir('network')
 subdir('node_device')
 subdir('nwfilter')
+subdir('secret')
 subdir('security')
 subdir('storage')
 
diff --git a/src/secret/Makefile.inc.am b/src/secret/Makefile.inc.am
index 586e6e372fd..e47aa678a6c 100644
--- a/src/secret/Makefile.inc.am
+++ b/src/secret/Makefile.inc.am
@@ -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
index 00000000000..a6d0a321938
--- /dev/null
+++ b/src/secret/meson.build
@@ -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
-- 
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