• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 Google Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15################################################################################
16
17FROM gcr.io/oss-fuzz-base/base-builder
18RUN apt-get update && apt-get install -y \
19  automake \
20  autopoint \
21  cmake \
22  curl \
23  gettext \
24  glib2.0-dev \
25  gobject-introspection \
26  gtk-doc-tools \
27  libbrotli-dev \
28  libexpat1-dev \
29  libffi-dev \
30  libfftw3-dev \
31  libselinux1-dev \
32  libtool \
33  nasm \
34  python3-pip
35RUN pip3 install meson ninja
36RUN mkdir afl-testcases
37RUN curl https://lcamtuf.coredump.cx/afl/demo/afl_testcases.tgz | tar xzC afl-testcases
38RUN git clone --depth 1 https://github.com/libvips/libvips
39RUN git clone --depth 1 https://github.com/madler/zlib.git
40RUN git clone --depth 1 https://github.com/libexif/libexif
41RUN git clone --depth 1 https://github.com/mm2/Little-CMS.git lcms
42RUN git clone --depth 1 https://github.com/libjpeg-turbo/libjpeg-turbo
43RUN git clone --depth 1 https://github.com/glennrp/libpng.git
44RUN git clone --depth 1 https://github.com/randy408/libspng.git
45RUN git clone --depth 1 https://chromium.googlesource.com/webm/libwebp
46RUN git clone --depth 1 https://gitlab.com/libtiff/libtiff
47RUN git clone --depth 1 https://aomedia.googlesource.com/aom
48RUN git clone --depth 1 https://github.com/strukturag/libheif
49RUN git clone --depth 1 --recursive https://github.com/libjxl/libjxl.git
50RUN git clone --depth 1 https://github.com/lovell/libimagequant.git
51RUN git clone --depth 1 https://github.com/dloebl/cgif.git
52
53WORKDIR libvips
54COPY build.sh $SRC/
55