aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/libspng
diff options
context:
space:
mode:
authorGravatar Randy <randy408@protonmail.com>2019-10-02 19:03:16 +0200
committerGravatar Max Moroz <mmoroz@chromium.org>2019-10-02 10:03:16 -0700
commit74794f0ae3933d34a7e7461dae9b1700b22282fd (patch)
treec3c6d11191648f3e03ffb6e9c11ac5881f3692c2 /projects/libspng
parent4be53a633e677f975caa67df95a1e6e7f21ea327 (diff)
[libspng] move build.sh upstream (#2911)
Diffstat (limited to 'projects/libspng')
-rw-r--r--projects/libspng/Dockerfile2
-rw-r--r--projects/libspng/build.sh38
2 files changed, 1 insertions, 39 deletions
diff --git a/projects/libspng/Dockerfile b/projects/libspng/Dockerfile
index c6cb55d8..6c3ddcc7 100644
--- a/projects/libspng/Dockerfile
+++ b/projects/libspng/Dockerfile
@@ -26,5 +26,5 @@ RUN apt-get update && \
RUN git clone --depth 1 https://gitlab.com/randy408/libspng.git
RUN git clone --depth 1 https://github.com/google/fuzzer-test-suite
+RUN cp libspng/tests/build.sh $SRC
WORKDIR libspng
-COPY build.sh $SRC/
diff --git a/projects/libspng/build.sh b/projects/libspng/build.sh
deleted file mode 100644
index 6eb1865c..00000000
--- a/projects/libspng/build.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash -eu
-# 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.
-#
-################################################################################
-
-meson --wrap-mode=forcefallback --default-library=static --buildtype=plain build
-
-ninja -C build
-
-$CXX $CXXFLAGS -std=c++11 -I. \
- $SRC/libspng/tests/spng_read_fuzzer.cc \
- -o $OUT/spng_read_fuzzer \
- $LIB_FUZZING_ENGINE $SRC/libspng/build/libspng.a $SRC/libspng/build/subprojects/zlib-1.2.11/libz.a
-
-$CXX $CXXFLAGS -std=c++11 -I. \
- $SRC/libspng/tests/spng_read_fuzzer.cc \
- -o $OUT/spng_read_fuzzer_structure_aware \
- -include ../fuzzer-test-suite/libpng-1.2.56/png_mutator.h \
- -D PNG_MUTATOR_DEFINE_LIBFUZZER_CUSTOM_MUTATOR \
- $LIB_FUZZING_ENGINE $SRC/libspng/build/libspng.a $SRC/libspng/build/subprojects/zlib-1.2.11/libz.a
-
-find $SRC/libspng/tests/images -name "*.png" | \
- xargs zip $OUT/spng_read_fuzzer_seed_corpus.zip
-
-cp $SRC/libspng/tests/spng.dict \
- $SRC/libspng/tests/spng_read_fuzzer.options $OUT/