2019-08-01 14:16:18 +00:00
|
|
|
# Copyright 2019 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.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-08-24 22:24:25 +00:00
|
|
|
# Using Ubuntu 16.04 because of breakage on Ubuntu 20.04.
|
|
|
|
# See https://github.com/google/oss-fuzz/issues/6291 for more details.
|
|
|
|
FROM gcr.io/oss-fuzz-base/base-builder:xenial
|
|
|
|
# Delete line above and uncomment line below to upgrade to 20.04.
|
|
|
|
# FROM gcr.io/oss-fuzz-base/base-builder
|
2019-08-01 14:16:18 +00:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
curl \
|
|
|
|
automake \
|
|
|
|
cmake \
|
|
|
|
nasm \
|
|
|
|
gtk-doc-tools \
|
|
|
|
gobject-introspection \
|
2021-08-18 11:56:41 +00:00
|
|
|
python3-pip \
|
2019-08-01 14:16:18 +00:00
|
|
|
libfftw3-dev \
|
|
|
|
libexpat1-dev \
|
|
|
|
libffi-dev \
|
2021-03-08 19:37:11 +00:00
|
|
|
libselinux1-dev \
|
2021-08-26 05:14:52 +00:00
|
|
|
glib2.0-dev \
|
|
|
|
autopoint \
|
|
|
|
gettext \
|
|
|
|
libtool \
|
2019-08-01 14:16:18 +00:00
|
|
|
glib2.0-dev
|
2021-08-18 11:56:41 +00:00
|
|
|
RUN pip3 install meson ninja
|
2019-08-01 14:16:18 +00:00
|
|
|
RUN mkdir afl-testcases
|
2020-03-20 14:50:16 +00:00
|
|
|
RUN curl https://lcamtuf.coredump.cx/afl/demo/afl_testcases.tgz | tar xzC afl-testcases
|
2019-08-01 14:16:18 +00:00
|
|
|
RUN git clone --depth 1 https://github.com/libvips/libvips
|
|
|
|
RUN git clone --depth 1 https://github.com/madler/zlib.git
|
|
|
|
RUN git clone --depth 1 https://github.com/libexif/libexif
|
2021-05-04 10:36:19 +00:00
|
|
|
RUN git clone --depth 1 https://github.com/mm2/Little-CMS.git lcms
|
2019-08-01 14:16:18 +00:00
|
|
|
RUN git clone --depth 1 https://github.com/libjpeg-turbo/libjpeg-turbo
|
|
|
|
RUN git clone --depth 1 https://github.com/glennrp/libpng.git
|
2021-05-04 10:36:19 +00:00
|
|
|
RUN git clone --depth 1 https://github.com/randy408/libspng.git
|
2019-08-01 14:16:18 +00:00
|
|
|
RUN git clone --depth 1 https://chromium.googlesource.com/webm/libwebp
|
2021-08-26 05:14:52 +00:00
|
|
|
RUN git clone --depth 1 https://gitlab.com/libtiff/libtiff
|
2020-09-21 15:17:58 +00:00
|
|
|
RUN git clone --depth 1 https://aomedia.googlesource.com/aom
|
|
|
|
RUN git clone --depth 1 https://github.com/strukturag/libheif
|
2021-05-26 20:37:43 +00:00
|
|
|
RUN git clone --depth 1 --recursive https://github.com/libjxl/libjxl.git
|
2021-08-18 11:56:41 +00:00
|
|
|
RUN git clone --depth 1 https://github.com/lovell/libimagequant.git
|
|
|
|
RUN git clone --depth 1 https://github.com/dloebl/cgif.git
|
2020-09-21 15:17:58 +00:00
|
|
|
|
2019-08-01 14:16:18 +00:00
|
|
|
WORKDIR libvips
|
|
|
|
COPY build.sh $SRC/
|