2017-10-09 23:17:21 +00:00
|
|
|
# Copyright 2017 The Chromium Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
#
|
2020-08-12 20:42:51 +00:00
|
|
|
# Copyright 2018 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
################################################################################
|
2017-10-09 23:17:21 +00:00
|
|
|
# Defines a docker image that can build cras fuzzers.
|
|
|
|
#
|
2021-09-01 20:36:17 +00:00
|
|
|
FROM gcr.io/oss-fuzz-base/base-builder-rust
|
2017-10-09 23:17:21 +00:00
|
|
|
|
|
|
|
RUN apt-get -y update && \
|
|
|
|
apt-get install -y \
|
|
|
|
automake \
|
|
|
|
build-essential \
|
|
|
|
cmake \
|
|
|
|
g++ \
|
|
|
|
git \
|
|
|
|
ladspa-sdk \
|
|
|
|
libasound-dev \
|
|
|
|
libdbus-1-dev \
|
|
|
|
libgtest-dev \
|
|
|
|
libncurses5-dev \
|
|
|
|
libsbc-dev \
|
|
|
|
libsndfile-dev \
|
|
|
|
libspeexdsp-dev \
|
2020-08-12 20:42:51 +00:00
|
|
|
libsystemd-dev \
|
2017-10-09 23:17:21 +00:00
|
|
|
libtool \
|
|
|
|
libudev-dev \
|
2017-10-10 14:58:50 +00:00
|
|
|
wget \
|
2021-04-19 09:16:40 +00:00
|
|
|
vim \
|
2017-10-10 14:58:50 +00:00
|
|
|
zip
|
2017-10-09 23:17:21 +00:00
|
|
|
RUN apt-get clean
|
2020-08-12 20:42:51 +00:00
|
|
|
|
|
|
|
RUN cd /tmp && git clone https://github.com/google/googletest.git -b v1.8.x && \
|
|
|
|
cd googletest && \
|
|
|
|
mkdir build && cd build && \
|
|
|
|
cmake .. -DBUILD_SHARED_LIBS=ON \
|
|
|
|
-DINSTALL_GTEST=ON \
|
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH=/usr && \
|
|
|
|
make && make install
|
2017-10-09 23:17:21 +00:00
|
|
|
|
|
|
|
# Need to build and install alsa so there is a static lib.
|
|
|
|
RUN mkdir -p /tmp/alsa-build && cd /tmp/alsa-build && \
|
2022-12-09 21:45:11 +00:00
|
|
|
wget https://alsa-project.org/files/pub/lib/alsa-lib-1.1.4.1.tar.bz2 && \
|
|
|
|
echo 91bb870c14d1c7c269213285eeed874fa3d28112077db061a3af8010d0885b76 alsa-lib-1.1.4.1.tar.bz2 | sha256sum -c && \
|
|
|
|
tar xjf alsa-lib-* && \
|
2017-10-09 23:17:21 +00:00
|
|
|
cd alsa-lib-* && \
|
|
|
|
./configure --enable-static --disable-shared && \
|
|
|
|
make clean && \
|
|
|
|
make -j$(nproc) all && \
|
|
|
|
make install
|
|
|
|
|
|
|
|
|
|
|
|
RUN cd $SRC && git clone https://chromium.googlesource.com/chromiumos/third_party/adhd
|
2023-02-10 20:20:51 +00:00
|
|
|
WORKDIR adhd
|
2017-10-09 23:17:21 +00:00
|
|
|
COPY build.sh $SRC/
|