• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash -eux
2# Copyright 2017 The Chromium Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5#
6# Builds fuzzers from within a container into /out/ directory.
7# Expects /src/cras to contain a cras checkout.
8
9mkdir $WORK/cras
10cd $SRC/cras
11./git_prepare.sh
12./configure --disable-dbus --disable-webrtc-apm
13make -j$(nproc)
14
15$CXX $CXXFLAGS $FUZZER_LDFLAGS \
16  $SRC/cras/src/fuzz/rclient_message.cc -o $OUT/rclient_message \
17  -I $SRC/cras/src/server \
18  -I $SRC/cras/src/common \
19  $SRC/cras/src/.libs/libcrasserver.a \
20  -lpthread -lrt -ludev -ldl -lm \
21  -lFuzzingEngine \
22  -Wl,-Bstatic -liniparser -lasound -lspeexdsp -Wl,-Bdynamic
23