[libvirt PATCH 276/351] meson: tools/wireshark: generate protocol header files

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

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 tools/Makefile.am                       | 13 -------------
 tools/wireshark/meson.build             |  2 ++
 tools/wireshark/src/libvirt/meson.build | 20 ++++++++++++++++++++
 tools/wireshark/src/meson.build         |  1 +
 4 files changed, 23 insertions(+), 13 deletions(-)
 create mode 100644 tools/wireshark/src/libvirt/meson.build
 create mode 100644 tools/wireshark/src/meson.build

diff --git a/tools/Makefile.am b/tools/Makefile.am
index 4cb0a07afb8..b42bcf29c53 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -33,18 +33,5 @@ wireshark_src_libvirt_la_SOURCES = \
 wireshark/src/packet-libvirt.c: wireshark/src/packet-libvirt.h \
 		wireshark/src/libvirt/protocol.h
 
-WS_DISSECTOR_PROTO_FILES  = \
-  $(abs_top_srcdir)/src/remote/remote_protocol.x \
-  $(abs_top_srcdir)/src/remote/qemu_protocol.x \
-  $(abs_top_srcdir)/src/remote/lxc_protocol.x \
-  $(abs_top_srcdir)/src/rpc/virkeepaliveprotocol.x
-
-wireshark/src/libvirt/protocol.h: wireshark/util/genxdrstub.pl \
-		$(WS_DISSECTOR_PROTO_FILES)
-	$(AM_V_GEN)$(MKDIR_P) wireshark/src/libvirt && \
-	cd wireshark/src && \
-	LIBVIRT_VERSION=$(LIBVIRT_VERSION) \
-		  $(PERL) $(abs_top_srcdir)/tools/wireshark/util/genxdrstub.pl \
-		  $(WS_DISSECTOR_PROTO_FILES)
 
 endif WITH_WIRESHARK_DISSECTOR
diff --git a/tools/wireshark/meson.build b/tools/wireshark/meson.build
index a71bc04eb37..cb43a0640d9 100644
--- a/tools/wireshark/meson.build
+++ b/tools/wireshark/meson.build
@@ -1 +1,3 @@
 genxdrstup_prog = find_program('util/genxdrstub.pl')
+
+subdir('src')
diff --git a/tools/wireshark/src/libvirt/meson.build b/tools/wireshark/src/libvirt/meson.build
new file mode 100644
index 00000000000..9d54f827d37
--- /dev/null
+++ b/tools/wireshark/src/libvirt/meson.build
@@ -0,0 +1,20 @@
+wireshark_protocol = custom_target(
+  'protocol.h',
+  input: [
+    meson.source_root() / 'src' / 'remote' / 'remote_protocol.x',
+    meson.source_root() / 'src' / 'remote' / 'qemu_protocol.x',
+    meson.source_root() / 'src' / 'remote' / 'lxc_protocol.x',
+    meson.source_root() / 'src' / 'rpc' / 'virkeepaliveprotocol.x',
+  ],
+  output: [
+    'protocol.h',
+    'remote.h',
+    'qemu.h',
+    'lxc.h',
+    'keepalive.h',
+  ],
+  command: [
+    genxdrstup_prog, meson.project_version(),
+    meson.current_build_dir(), '@INPUT@',
+  ],
+)
diff --git a/tools/wireshark/src/meson.build b/tools/wireshark/src/meson.build
new file mode 100644
index 00000000000..f41189ba8df
--- /dev/null
+++ b/tools/wireshark/src/meson.build
@@ -0,0 +1 @@
+subdir('libvirt')
-- 
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