mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
Add build rule for fuzzer-api
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
7cd012f3dd
commit
270e466d75
14
Makefile.am
14
Makefile.am
@ -64,3 +64,17 @@ doc-clean:
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = tesseract.pc
|
||||
|
||||
# fuzzer-api is used for fuzzing tests.
|
||||
# They are run by OSS-Fuzz https://oss-fuzz.com/, but can also be run locally.
|
||||
# Note: -fsanitize=fuzzer currently requires the clang++ compiler.
|
||||
fuzzer-api: all
|
||||
fuzzer-api: $(top_srcdir)/unittest/fuzzers/fuzzer-api.cpp
|
||||
$(CXX) $(CXXFLAGS) -g -fsanitize=fuzzer \
|
||||
-I $(top_srcdir)/src/api \
|
||||
-I $(top_srcdir)/src/ccmain \
|
||||
-I $(top_srcdir)/src/ccstruct \
|
||||
-I $(top_srcdir)/src/ccutil \
|
||||
-I src/api \
|
||||
$< \
|
||||
src/api/.libs/libtesseract.a $(LEPTONICA_LIBS) $(libarchive_LIBS) -o $@
|
||||
|
Loading…
Reference in New Issue
Block a user