diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-08-20 13:04:53 +0200 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-08-20 21:35:14 +0200 |
commit | 370398910a23cf313c94a7ac279da94bce9e4de8 (patch) | |
tree | 81891c2e25e0b1d8eeb7c015c04d9b1544aee1d9 /external | |
parent | 0aaf0a624859b7f04717b0e8f70476658dd010fe (diff) |
external/freetype: Enable debug logging support for --enable-dbgutil
Change-Id: I4f605166f5a6e0b2bd9196472db9ea3ad400d44c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172108
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
Diffstat (limited to 'external')
-rw-r--r-- | external/freetype/UnpackedTarball_freetype.mk | 9 | ||||
-rw-r--r-- | external/freetype/logging.patch.0 | 11 |
2 files changed, 20 insertions, 0 deletions
diff --git a/external/freetype/UnpackedTarball_freetype.mk b/external/freetype/UnpackedTarball_freetype.mk index 5ea678f80280..7dcd942baa44 100644 --- a/external/freetype/UnpackedTarball_freetype.mk +++ b/external/freetype/UnpackedTarball_freetype.mk @@ -17,6 +17,15 @@ $(eval $(call gb_UnpackedTarball_add_patches,freetype,\ external/freetype/freetype-fd-hack.patch.0 \ )) +# Enable FreeType's FT_DEBUG_LOGGING at least in --enable-dbgutil builds (and see +# workdir/UnpackedTarball/freetype/docs/DEBUG for how to actually make use of that by setting an +# FT2_DEBUG environment variable at runtime): +ifeq ($(ENABLE_DBGUTIL),TRUE) +$(eval $(call gb_UnpackedTarball_add_patches,freetype, \ + external/freetype/logging.patch.0 \ +)) +endif + $(eval $(call gb_UnpackedTarball_set_patchlevel,freetype,0)) # vim: set noet sw=4 ts=4: diff --git a/external/freetype/logging.patch.0 b/external/freetype/logging.patch.0 new file mode 100644 index 000000000000..8ed2f05b1bb2 --- /dev/null +++ b/external/freetype/logging.patch.0 @@ -0,0 +1,11 @@ +--- include/freetype/config/ftoption.h ++++ include/freetype/config/ftoption.h +@@ -448,7 +448,7 @@ + * + * This option needs a C99 compiler. + */ +-/* #define FT_DEBUG_LOGGING */ ++#define FT_DEBUG_LOGGING + + + /************************************************************************** |