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.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
FROM gcr.io/oss-fuzz-base/base-builder
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
curl \
|
|
|
|
automake \
|
|
|
|
cmake \
|
|
|
|
nasm \
|
|
|
|
gtk-doc-tools \
|
|
|
|
gobject-introspection \
|
|
|
|
libfftw3-dev \
|
|
|
|
libexpat1-dev \
|
|
|
|
libffi-dev \
|
2021-03-08 19:37:11 +00:00
|
|
|
libselinux1-dev \
|
2019-08-01 14:16:18 +00:00
|
|
|
glib2.0-dev
|
|
|
|
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
|
2019-11-20 14:58:35 +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-04-27 19:00:49 +00:00
|
|
|
RUN git clone --depth 1 --recursive https://gitlab.com/wg1/jpeg-xl.git
|
2020-09-21 15:17:58 +00:00
|
|
|
|
2019-08-01 14:16:18 +00:00
|
|
|
WORKDIR libvips
|
|
|
|
COPY build.sh $SRC/
|