WIP: add a little build helper script [skip ci]

This commit is contained in:
surtur 2021-04-09 02:46:13 +02:00
parent 70d343517b
commit 10824e33dc
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

11
buildpls Executable file

@ -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