[ots] Update build script to match upstream build (#2633)

This commit is contained in:
Khaled Hosny 2019-07-29 00:33:23 +02:00 committed by jonathanmetzman
parent fbb12a53c0
commit 535f9260e2
1 changed files with 12 additions and 5 deletions

View File

@ -15,14 +15,21 @@
# #
################################################################################ ################################################################################
# setup
build=$WORK/build
# cleanup
rm -rf $build
mkdir -p $build
# Configure the project. # Configure the project.
export CXXFLAGS="$CXXFLAGS -DOTS_FUZZER_NO_MAIN" meson -Dfuzzer_ldflags=$LIB_FUZZING_ENGINE \
export LDFLAGS="$LIB_FUZZING_ENGINE" $build \
meson build || (cat build/meson-logs/meson-log.txt && false) || (cat build/meson-logs/meson-log.txt && false)
# Build the fuzzer. # Build the fuzzer.
ninja -v -j$(nproc) -C build ots-fuzzer ninja -v -j$(nproc) -C $build ots-fuzzer
mv build/ots-fuzzer $OUT/ mv $build/ots-fuzzer $OUT/
cp $SRC/ots-fuzzer.options $OUT/ cp $SRC/ots-fuzzer.options $OUT/
zip -j -r $OUT/ots-fuzzer_seed_corpus.zip $SRC/ots/tests/fonts zip -j -r $OUT/ots-fuzzer_seed_corpus.zip $SRC/ots/tests/fonts