mirror of https://github.com/google/oss-fuzz.git
[ots] Update build to use meson (#1620)
This commit is contained in:
parent
d69a8ea80d
commit
70359530a7
|
@ -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/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue