[ots] Update build to use meson (#1620)

This commit is contained in:
Khaled Hosny 2018-07-17 17:58:23 +03:00 committed by Max Moroz
parent d69a8ea80d
commit 70359530a7
2 changed files with 7 additions and 5 deletions

View File

@ -16,7 +16,8 @@
FROM gcr.io/oss-fuzz-base/base-builder
MAINTAINER mmoroz@chromium.org
RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config zlib1g-dev
RUN apt-get update && apt-get install -y python3-pip pkg-config zlib1g-dev && \
pip3 install meson ninja
RUN git clone --depth 1 https://github.com/khaledhosny/ots.git
WORKDIR ots
COPY build.sh ots-fuzzer.* $SRC/

View File

@ -16,12 +16,13 @@
################################################################################
# Build the project.
./autogen.sh
./configure
meson build
# Build the fuzzer.
make -j$(nproc) V=1 CXXFLAGS="$CXXFLAGS -DOTS_FUZZER_NO_MAIN" LDFLAGS="-lFuzzingEngine" ots-fuzzer
mv ots-fuzzer $OUT/
export CXXFLAGS="$CXXFLAGS -DOTS_FUZZER_NO_MAIN"
export LDFLAGS="-lFuzzingEngine"
ninja -v -j$(nproc) -C build ots-fuzzer
mv build/ots-fuzzer $OUT/
cp $SRC/ots-fuzzer.options $OUT/
zip -j -r $OUT/ots-fuzzer_seed_corpus.zip $SRC/ots/tests/fonts