mirror of https://github.com/google/oss-fuzz.git
[ots] Update build script to match upstream build (#2633)
This commit is contained in:
parent
fbb12a53c0
commit
535f9260e2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue