]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: tools/wireshark: build libvirt.so wireshark module
authorPavel Hrdina <phrdina@redhat.com>
Fri, 10 Jul 2020 09:10:12 +0000 (11:10 +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>
Makefile.am
configure.ac
tools/Makefile.am [deleted file]
tools/wireshark/src/meson.build

index 0b62d15eef50b20183fee098696b23ee0349e7a8..363c5cf66fda70e48c580930ca40e893b9f08f7a 100644 (file)
@@ -20,7 +20,7 @@
 # so force it explicitly
 DISTCHECK_CONFIGURE_FLAGS = --enable-werror
 
-SUBDIRS = . tools docs \
+SUBDIRS = . docs \
   tests po examples
 
 XZ_OPT ?= -v -T0
index 7c7d38b06ec5a217b23ffa2813cb6fd9e151e760..4ac18cbd67a25997d6023712df32047f342b6ab7 100644 (file)
@@ -116,6 +116,5 @@ AC_CONFIG_FILES([\
         libvirt.spec mingw-libvirt.spec \
         po/Makefile \
         examples/Makefile \
-        tests/Makefile \
-        tools/Makefile])
+        tests/Makefile])
 AC_OUTPUT
diff --git a/tools/Makefile.am b/tools/Makefile.am
deleted file mode 100644 (file)
index b42bcf2..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-## Copyright (C) 2005-2016 Red Hat, Inc.
-## Copyright (C) 2013 Yuto KAWAMURA(kawamuray) <kawamuray.dadada@gmail.com>
-##
-## This library is free software; you can redistribute it and/or
-## modify it under the terms of the GNU Lesser General Public
-## License as published by the Free Software Foundation; either
-## version 2.1 of the License, or (at your option) any later version.
-##
-## This library is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-## Lesser General Public License for more details.
-##
-## You should have received a copy of the GNU Lesser General Public
-## License along with this library.  If not, see
-## <http://www.gnu.org/licenses/>.
-
-# We do not want to accidentally include stuff from src/
-# dir or public API dir. Specific files can
-# still be included via their path relative to the root if
-# needed
-if WITH_WIRESHARK_DISSECTOR
-
-ws_plugin_LTLIBRARIES = wireshark/src/libvirt.la
-wireshark_src_libvirt_la_CFLAGS = \
-       -I wireshark/src $(WIRESHARK_DISSECTOR_CFLAGS) $(XDR_CFLAGS) $(AM_CFLAGS)
-wireshark_src_libvirt_la_LDFLAGS = -avoid-version -module
-wireshark_src_libvirt_la_SOURCES = \
-       wireshark/src/packet-libvirt.h \
-       wireshark/src/packet-libvirt.c \
-       wireshark/src/plugin.c
-
-wireshark/src/packet-libvirt.c: wireshark/src/packet-libvirt.h \
-               wireshark/src/libvirt/protocol.h
-
-
-endif WITH_WIRESHARK_DISSECTOR
index f41189ba8dfaea75fd5dbaafaf869a4ca3dfa6b6..49ccc9bb86e6abd72d3c56a4c452bfbd38ba654c 100644 (file)
@@ -1 +1,17 @@
 subdir('libvirt')
+
+shared_library(
+  'virt',
+  [
+    'packet-libvirt.c',
+    'plugin.c',
+    wireshark_protocol,
+  ],
+  dependencies: [
+    wireshark_dep,
+    xdr_dep,
+    tools_dep,
+  ],
+  install: true,
+  install_dir: wireshark_plugindir,
+)