Kaydet (Commit) 5ca4a50c authored tarafından Caolán McNamara's avatar Caolán McNamara

optionally enable oss-fuzz targets via --enable-fuzzers

Change-Id: I16f52515a149a1e6e47cd0301a45db84ddd95885
üst 32bdcdd4
...@@ -93,6 +93,7 @@ $(eval $(call gb_Helper_register_executables_for_install,SDK,sdk, \ ...@@ -93,6 +93,7 @@ $(eval $(call gb_Helper_register_executables_for_install,SDK,sdk, \
$(eval $(call gb_Helper_register_executables_for_install,OOO,brand, \ $(eval $(call gb_Helper_register_executables_for_install,OOO,brand, \
$(call gb_Helper_optional,BREAKPAD,minidump_upload) \ $(call gb_Helper_optional,BREAKPAD,minidump_upload) \
$(call gb_Helper_optional,FUZZERS,wmftester) \
$(if $(filter-out ANDROID IOS MACOSX WNT,$(OS)),oosplash) \ $(if $(filter-out ANDROID IOS MACOSX WNT,$(OS)),oosplash) \
soffice_bin \ soffice_bin \
$(if $(filter DESKTOP,$(BUILD_TYPE)),unopkg_bin) \ $(if $(filter DESKTOP,$(BUILD_TYPE)),unopkg_bin) \
......
...@@ -121,6 +121,7 @@ export ENABLE_COLLADA=@ENABLE_COLLADA@ ...@@ -121,6 +121,7 @@ export ENABLE_COLLADA=@ENABLE_COLLADA@
export ENABLE_CRASHDUMP=@ENABLE_CRASHDUMP@ export ENABLE_CRASHDUMP=@ENABLE_CRASHDUMP@
export ENABLE_CUPS=@ENABLE_CUPS@ export ENABLE_CUPS=@ENABLE_CUPS@
export ENABLE_CURL=@ENABLE_CURL@ export ENABLE_CURL=@ENABLE_CURL@
export ENABLE_FUZZERS=@ENABLE_FUZZERS@
export ENABLE_DBGUTIL=@ENABLE_DBGUTIL@ export ENABLE_DBGUTIL=@ENABLE_DBGUTIL@
export ENABLE_DBUS=@ENABLE_DBUS@ export ENABLE_DBUS=@ENABLE_DBUS@
export ENABLE_DCONF=@ENABLE_DCONF@ export ENABLE_DCONF=@ENABLE_DCONF@
......
...@@ -1049,6 +1049,11 @@ AC_ARG_ENABLE(fetch-external, ...@@ -1049,6 +1049,11 @@ AC_ARG_ENABLE(fetch-external,
[Disables fetching external tarballs from web sources.]) [Disables fetching external tarballs from web sources.])
) )
AC_ARG_ENABLE(fuzzers,
AS_HELP_STRING([--enable-fuzzers],
[Enables building libfuzzer targets for fuzz testing.])
)
AC_ARG_ENABLE(pch, AC_ARG_ENABLE(pch,
AS_HELP_STRING([--enable-pch], AS_HELP_STRING([--enable-pch],
[Enables precompiled header support for C++. Forced default on Windows/VC build]) [Enables precompiled header support for C++. Forced default on Windows/VC build])
...@@ -9206,6 +9211,20 @@ else ...@@ -9206,6 +9211,20 @@ else
fi fi
AC_SUBST(ENABLE_BREAKPAD) AC_SUBST(ENABLE_BREAKPAD)
dnl ==================================================================
dnl libfuzzer
dnl ==================================================================
AC_MSG_CHECKING([whether to enable fuzzers])
if test "$enable_fuzzers" != yes; then
AC_MSG_RESULT([no])
else
AC_MSG_RESULT([yes])
ENABLE_FUZZERS="TRUE"
AC_DEFINE(ENABLE_FUZZERS)
BUILD_TYPE="$BUILD_TYPE FUZZERS"
fi
AC_SUBST(ENABLE_FUZZERS)
dnl =================================================================== dnl ===================================================================
dnl Orcus dnl Orcus
dnl =================================================================== dnl ===================================================================
......
--enable-fuzzers
--disable-postgresql-sdbc --disable-postgresql-sdbc
--disable-firebird-sdbc --disable-firebird-sdbc
--disable-coinmp --disable-coinmp
......
...@@ -95,6 +95,12 @@ $(eval $(call gb_Module_add_targets,vcl,\ ...@@ -95,6 +95,12 @@ $(eval $(call gb_Module_add_targets,vcl,\
)) ))
endif endif
ifneq ($(ENABLE_FUZZERS),)
$(eval $(call gb_Module_add_targets,vcl,\
Executable_wmftester \
))
endif
$(eval $(call gb_Module_add_check_targets,vcl,\ $(eval $(call gb_Module_add_check_targets,vcl,\
CppunitTest_vcl_lifecycle \ CppunitTest_vcl_lifecycle \
CppunitTest_vcl_bitmap_test \ CppunitTest_vcl_bitmap_test \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment