From 10824e33dcbe8edc332fdb96ef550f628c8ac725 Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 9 Apr 2021 02:46:13 +0200 Subject: [PATCH] WIP: add a little build helper script [skip ci] --- buildpls | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 buildpls diff --git a/buildpls b/buildpls new file mode 100755 index 00000000..75f963af --- /dev/null +++ b/buildpls @@ -0,0 +1,11 @@ +#!/bin/bash + +# get and build nDPI and deps before building fastnetmon + +export MAKEFLAGS="$MAKEFLAGS -j$(nproc)" +export moarflags="-Wno-reorder -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare -Wno-unused-but-set-variable -Wno-format-truncation -Wno-implicit-fallthrough -Wno-type-limits -Wno-class-memaccess" # since there's just so many warnings (I know, they should be fixed) + +cd src +git apply patches/cmake-libndpi-nolibicu-cpp17-includes-protoc-grpc.patch +cmake -DCMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS -Wall -Werror $moarflags -Wextra" +make clean fastnetmon all