diff options
author | Armin Hasitzka <cherusker@users.noreply.github.com> | 2018-07-13 21:12:52 +0200 |
---|---|---|
committer | jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> | 2018-07-13 12:12:52 -0700 |
commit | bca17351438535d0a172ab69c4e174ffb62fd1e1 (patch) | |
tree | d674c9e838c0257748f9dca96138dc336d9f9d36 /projects/freetype2/build.sh | |
parent | c0661eefc43657b391666caf0bf2f91fda52245f (diff) |
[Freetype] Update build process: (#1614)
- Build the known target `ftfuzzer' with FreeType's new, dedicated testing repository.
- Move most of the build logic regarding the fuzz targets to FreeType's repository.
Diffstat (limited to 'projects/freetype2/build.sh')
-rwxr-xr-x | projects/freetype2/build.sh | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/projects/freetype2/build.sh b/projects/freetype2/build.sh index df7b393f..6ed16410 100755 --- a/projects/freetype2/build.sh +++ b/projects/freetype2/build.sh @@ -16,18 +16,15 @@ # ################################################################################ -./autogen.sh -sync -./configure -make -j$(nproc) clean -make -j$(nproc) all +# Tell CMake what fuzzing engine to link: +export CMAKE_FUZZING_ENGINE="-lFuzzingEngine" -$CXX $CXXFLAGS -std=c++11 \ - -I./include -I. \ - ./src/tools/ftfuzzer/ftfuzzer.cc -o $OUT/ftfuzzer \ - ./objs/*.o -lFuzzingEngine \ - /usr/lib/x86_64-linux-gnu/libarchive.a \ - ./objs/.libs/libfreetype.a +bash "fuzzing/scripts/build-fuzzers.sh" +bash "fuzzing/scripts/prepare-oss-fuzz.sh" -zip -j $OUT/ftfuzzer_seed_corpus.zip $SRC/font-corpus/* -cp $SRC/*.options $OUT/ +# Rename the `legacy' target to `ftfuzzer' for historical reasons: +for f in "${OUT}/legacy"*; do + mv "${f}" "${f/legacy/ftfuzzer}" +done + +zip -ju "${OUT}/ftfuzzer_seed_corpus.zip" "${SRC}/font-corpus/"* |