File: build.sh

package info (click to toggle)
ngtcp2 0.12.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,240 kB
  • sloc: ansic: 48,169; cpp: 16,101; python: 2,262; makefile: 633; sh: 119
file content (16 lines) | stat: -rwxr-xr-x 510 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash -eu

autoreconf -i
./configure --enable-lib-only
make -j$(nproc)

$CXX $CXXFLAGS -std=c++17 -Ilib/includes -Ilib -I. -DHAVE_CONFIG_H \
     fuzz/decode_frame.cc -o $OUT/decode_frame \
     $LIB_FUZZING_ENGINE lib/.libs/libngtcp2.a

$CXX $CXXFLAGS -std=c++17 -Ilib/includes -Ilib -I. -DHAVE_CONFIG_H \
     fuzz/ksl.cc -o $OUT/ksl \
     $LIB_FUZZING_ENGINE lib/.libs/libngtcp2.a

zip -j $OUT/decode_frame_seed_corpus.zip fuzz/corpus/decode_frame/*
zip -j $OUT/ksl_seed_corpus.zip fuzz/corpus/ksl/*