Home | History | Annotate | Download | only in oss-fuzz
      1 #!/bin/bash
      2 
      3 set -euo pipefail
      4 
      5 $SRC/perfetto/tools/install-build-deps --no-android
      6 
      7 mkdir -p $WORK/build
      8 
      9 GN_ARGS="is_clang=true is_debug=false is_fuzzer=true use_libfuzzer=false \
     10 link_fuzzer=\"-lFuzzingEngine\" is_asan=true is_hermetic_clang=false \
     11 use_custom_libcxx=false extra_cflags=\"$CFLAGS\" extra_cxxflags=\"$CXXFLAGS\" \
     12 extra_ldflags=\"$CXXFLAGS\" is_system_compiler=true"
     13 
     14 OUTDIR=$WORK/build
     15 $SRC/perfetto/tools/gn gen "$OUTDIR" --args="${GN_ARGS}" --check
     16 
     17 $SRC/perfetto/tools/ninja -C $WORK/build fuzzers -v
     18 cp $WORK/build/*fuzzer $OUT
     19 mkdir -p $OUT/src/traced/probes/ftrace/test/data
     20 cp -a $SRC/perfetto/src/traced/probes/ftrace/test/data/synthetic \
     21   $OUT/src/traced/probes/ftrace/test/data
     22