Skip to content

Commit

Permalink
build thread-wireshark
Browse files Browse the repository at this point in the history
  • Loading branch information
simonlingoogle committed Jul 27, 2020
1 parent 555dada commit b49cc2b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions build-thread-wireshark.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b49cc2b

Please sign in to comment.