From b49cc2bd842ddeb2d308b03d6fe8df654bd66b96 Mon Sep 17 00:00:00 2001 From: Simon Lin Date: Mon, 27 Jul 2020 13:48:41 +0800 Subject: [PATCH] build thread-wireshark --- build-thread-wireshark.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 build-thread-wireshark.sh diff --git a/build-thread-wireshark.sh b/build-thread-wireshark.sh new file mode 100755 index 00000000000..972ec24698e --- /dev/null +++ b/build-thread-wireshark.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +set -e + +rm -rf build || true +mkdir build +( + cd build + cmake -GNinja -DDISABLE_WERROR=on \ + -DBUILD_wireshark=OFF \ + -DBUILD_editcap=OFF \ + -DBUILD_capinfos=OFF \ + -DBUILD_captype=OFF \ + -DBUILD_reordercap=OFF \ + -DBUILD_text2pcap=OFF \ + -DBUILD_dftest=OFF \ + -DBUILD_randpkt=OFF \ + -DBUILD_rawshark=OFF \ + -DDUMPCAP_INSTALL_OPTION=suid \ + .. + + ninja + mv run thread-wireshark + rm -rf thread-wireshark.tar.gz || true + + tar czf thread-wireshark.tar.gz thread-wireshark/ +) + +mv build/thread-wireshark.tar.gz ./ + +echo "Built thread-wireshark successfully:" +ls -l thread-wireshark.tar.gz