[libvirt PATCH 271/351] meson: tools: build libnss_libvirt_guest_impl.a static library

Pavel Hrdina phrdina at redhat.com
Thu Jul 16 09:58:27 UTC 2020


Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---
 tools/Makefile.am     | 23 -----------------------
 tools/nss/meson.build | 20 ++++++++++++++++++++
 2 files changed, 20 insertions(+), 23 deletions(-)

diff --git a/tools/Makefile.am b/tools/Makefile.am
index d6a0ccdab2c..b1388280fef 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -19,10 +19,6 @@
 # dir or public API dir. Specific files can
 # still be included via their path relative to the root if
 # needed
-STANDALONE_CPPFLAGS = -I$(top_srcdir)
-
-noinst_LTLIBRARIES =
-
 if WITH_WIRESHARK_DISSECTOR
 
 ws_plugin_LTLIBRARIES = wireshark/src/libvirt.la
@@ -71,25 +67,6 @@ nss_libnss_libvirt_la_DEPENDENCIES = \
 	$(nss_libnss_libvirt_la_LIBADD) \
 	$(LIBVIRT_NSS_SYMBOL_FILE)
 
-noinst_LTLIBRARIES += nss/libnss_libvirt_guest_impl.la
-nss_libnss_libvirt_guest_impl_la_SOURCES = \
-	$(LIBVIRT_NSS_SOURCES) \
-	nss/libvirt_nss_macs.h \
-	nss/libvirt_nss_macs.c \
-	$(NULL)
-
-nss_libnss_libvirt_guest_impl_la_CPPFLAGS = $(STANDALONE_CPPFLAGS)
-nss_libnss_libvirt_guest_impl_la_CFLAGS = \
-	-DLIBVIRT_NSS \
-	-DLIBVIRT_NSS_GUEST \
-	$(YAJL_CFLAGS) \
-	$(AM_CFLAGS) \
-	$(NULL)
-
-nss_libnss_libvirt_guest_impl_la_LIBADD = \
-	$(YAJL_LIBS) \
-	$(NULL)
-
 nss_libnss_libvirt_guest_la_SOURCES =
 nss_libnss_libvirt_guest_la_LDFLAGS = \
 	$(VERSION_SCRIPT_FLAGS)$(LIBVIRT_GUEST_NSS_SYMBOL_FILE) \
diff --git a/tools/nss/meson.build b/tools/nss/meson.build
index 9bccdafd19b..ef75ffe0010 100644
--- a/tools/nss/meson.build
+++ b/tools/nss/meson.build
@@ -15,6 +15,10 @@ nss_sources = [
   'libvirt_nss_leases.c',
 ]
 
+nss_guest_sources = [
+  'libvirt_nss_macs.c',
+]
+
 nss_libvirt_impl = static_library(
   'nss_libvirt_impl',
   [
@@ -28,3 +32,19 @@ nss_libvirt_impl = static_library(
     yajl_dep,
   ],
 )
+
+nss_libvirt_guest_impl = static_library(
+  'nss_libvirt_guest_impl',
+  [
+    nss_sources,
+    nss_guest_sources,
+  ],
+  c_args: [
+    '-DLIBVIRT_NSS',
+    '-DLIBVIRT_NSS_GUEST',
+  ],
+  dependencies: [
+    tools_dep,
+    yajl_dep,
+  ],
+)
-- 
2.26.2




More information about the libvir-list mailing list