[json] using projects build file

This commit is contained in:
Mike Aizatsky 2017-01-03 13:55:18 -08:00
parent 5faaddd044
commit f329e00249
2 changed files with 5 additions and 3 deletions

View File

@ -16,7 +16,7 @@
FROM ossfuzz/base-libfuzzer
MAINTAINER vitalybuka@gmail.com
RUN apt-get install -y binutils gcc
RUN apt-get install -y binutils make
RUN git clone --depth 1 -b develop https://github.com/nlohmann/json.git
WORKDIR json/

View File

@ -15,9 +15,11 @@
#
################################################################################
FUZZER_FILES=$(find -name "fuzzer-parse*.cpp")
make FUZZER_ENGINE="-lFuzzingEngine" fuzzers -Ctest
FUZZER_FILES=$(find test/ -maxdepth 1 -executable -type f)
for F in $FUZZER_FILES; do
cp $F $OUT/
FUZZER=$(basename $F .cpp)
$CXX $CXXFLAGS -std=c++11 -Isrc/ $F -o $OUT/$FUZZER -lFuzzingEngine
cp $SRC/fuzzer-parse.options $OUT/$FUZZER.options
done