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