[fuzzing] Remove limited-edition build of libraries
Use normal, production, shared libraries. Fixes https://github.com/harfbuzz/harfbuzz/issues/1237
This commit is contained in:
parent
a549aa14a0
commit
d6666b3866
|
@ -15,7 +15,6 @@ check_PROGRAMS =
|
|||
# Convenience targets:
|
||||
lib: $(BUILT_SOURCES) libharfbuzz.la
|
||||
libs: $(BUILT_SOURCES) $(lib_LTLIBRARIES)
|
||||
fuzzing: $(BUILT_SOURCES) libharfbuzz-fuzzing.la libharfbuzz-subset-fuzzing.la
|
||||
|
||||
lib_LTLIBRARIES = libharfbuzz.la
|
||||
|
||||
|
@ -169,36 +168,6 @@ pkginclude_HEADERS += $(HB_SUBSET_headers)
|
|||
pkgconfig_DATA += harfbuzz-subset.pc
|
||||
EXTRA_DIST += harfbuzz-subset.pc.in
|
||||
|
||||
FUZZING_CPPFLAGS = \
|
||||
-DHB_MAX_NESTING_LEVEL=3 \
|
||||
-DHB_SANITIZE_MAX_EDITS=3 \
|
||||
-DHB_SANITIZE_MAX_OPS_FACTOR=3 \
|
||||
-DHB_SANITIZE_MAX_OPS_MIN=128 \
|
||||
-DHB_BUFFER_MAX_LEN_FACTOR=3 \
|
||||
-DHB_BUFFER_MAX_LEN_MIN=8 \
|
||||
-DHB_BUFFER_MAX_LEN_DEFAULT=128 \
|
||||
-DHB_BUFFER_MAX_OPS_FACTOR=8 \
|
||||
-DHB_BUFFER_MAX_OPS_MIN=64 \
|
||||
-DHB_BUFFER_MAX_OPS_DEFAULT=1024 \
|
||||
$(NULL)
|
||||
EXTRA_LTLIBRARIES = libharfbuzz-fuzzing.la libharfbuzz-subset-fuzzing.la
|
||||
|
||||
libharfbuzz_fuzzing_la_LINK = $(chosen_linker) $(libharfbuzz_fuzzing_la_LDFLAGS)
|
||||
libharfbuzz_fuzzing_la_SOURCES = $(libharfbuzz_la_SOURCES)
|
||||
libharfbuzz_fuzzing_la_CPPFLAGS = $(HBCFLAGS) $(FUZZING_CPPFLAGS)
|
||||
libharfbuzz_fuzzing_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libharfbuzz_fuzzing_la_LIBADD = $(libharfbuzz_la_LIBADD)
|
||||
EXTRA_libharfbuzz_fuzzing_la_DEPENDENCIES = $(EXTRA_libharfbuzz_la_DEPENDENCIES)
|
||||
CLEANFILES += libharfbuzz-fuzzing.la
|
||||
|
||||
libharfbuzz_subset_fuzzing_la_LINK = $(chosen_linker) $(libharfbuzz_subset_fuzzing_la_LDFLAGS)
|
||||
libharfbuzz_subset_fuzzing_la_SOURCES = $(libharfbuzz_subset_la_SOURCES)
|
||||
libharfbuzz_subset_fuzzing_la_CPPFLAGS = $(HBCFLAGS) $(FUZZING_CPPFLAGS)
|
||||
libharfbuzz_subset_fuzzing_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libharfbuzz_subset_fuzzing_la_LIBADD = libharfbuzz-fuzzing.la
|
||||
EXTRA_libharfbuzz_subset_fuzzing_la_DEPENDENCIES = $(EXTRA_libharfbuzz_subset_la_DEPENDENCIES)
|
||||
CLEANFILES += libharfbuzz-subset-fuzzing.la
|
||||
|
||||
if HAVE_ICU
|
||||
if HAVE_ICU_BUILTIN
|
||||
HBCFLAGS += $(ICU_CFLAGS)
|
||||
|
|
|
@ -7,13 +7,13 @@ DISTCLEANFILES =
|
|||
MAINTAINERCLEANFILES =
|
||||
|
||||
# Convenience targets:
|
||||
lib-only:
|
||||
@$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir)/src fuzzing
|
||||
lib: lib-only
|
||||
@$(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
|
||||
lib:
|
||||
@$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir)/src lib
|
||||
libs:
|
||||
@$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir)/src libs
|
||||
|
||||
$(top_builddir)/src/libharfbuzz-fuzzing.la: lib-only
|
||||
$(top_builddir)/src/libharfbuzz-subset-fuzzing.la: lib-only
|
||||
$(top_builddir)/src/libharfbuzz.la: lib
|
||||
$(top_builddir)/src/libharfbuzz-subset.la: libs
|
||||
|
||||
EXTRA_DIST += \
|
||||
README \
|
||||
|
@ -33,24 +33,15 @@ AM_CPPFLAGS = \
|
|||
-I$(top_srcdir)/src/ \
|
||||
-I$(top_builddir)/src/ \
|
||||
$(NULL)
|
||||
LDADD = \
|
||||
$(top_builddir)/src/libharfbuzz-fuzzing.la \
|
||||
$(NULL)
|
||||
|
||||
hb_shape_fuzzer_SOURCES = \
|
||||
hb-fuzzer.hh \
|
||||
hb-shape-fuzzer.cc \
|
||||
main.cc \
|
||||
$(NULL)
|
||||
hb_shape_fuzzer_LDADD = \
|
||||
$(LDADD) \
|
||||
$(NULL)
|
||||
hb_shape_fuzzer_CPPFLAGS = \
|
||||
$(AM_CPPFLAGS) \
|
||||
$(NULL)
|
||||
hb_shape_fuzzer_DEPENDENCIES = \
|
||||
$(top_builddir)/src/libharfbuzz-fuzzing.la
|
||||
$(NULL)
|
||||
hb_shape_fuzzer_LDADD = $(top_builddir)/src/libharfbuzz.la
|
||||
hb_shape_fuzzer_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
hb_shape_fuzzer_DEPENDENCIES = $(top_builddir)/src/libharfbuzz.la
|
||||
|
||||
hb_subset_fuzzer_SOURCES = \
|
||||
hb-fuzzer.hh \
|
||||
|
@ -58,14 +49,10 @@ hb_subset_fuzzer_SOURCES = \
|
|||
main.cc \
|
||||
$(NULL)
|
||||
hb_subset_fuzzer_LDADD = \
|
||||
$(top_builddir)/src/libharfbuzz-subset-fuzzing.la \
|
||||
$(NULL)
|
||||
hb_subset_fuzzer_CPPFLAGS = \
|
||||
$(AM_CPPFLAGS) \
|
||||
$(NULL)
|
||||
hb_subset_fuzzer_DEPENDENCIES = \
|
||||
$(top_builddir)/src/libharfbuzz-subset-fuzzing.la
|
||||
$(NULL)
|
||||
$(top_builddir)/src/libharfbuzz.la \
|
||||
$(top_builddir)/src/libharfbuzz-subset.la
|
||||
hb_subset_fuzzer_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
hb_subset_fuzzer_DEPENDENCIES = $(top_builddir)/src/libharfbuzz-subset.la
|
||||
|
||||
check:
|
||||
EXEEXT="$(EXEEXT)" srcdir="$(srcdir)" builddir="$(builddir)" $(srcdir)/run-shape-fuzzer-tests.py
|
||||
|
|
Loading…
Reference in New Issue