* meson.build: Add support for compiling with error strings.

* meson_options.txt: Document it.
This commit is contained in:
Benoit Pierre 2024-10-12 10:47:38 +00:00 committed by Alexei Podtelezhnikov
parent 0dd4eef68f
commit f4c2a44ea9
2 changed files with 9 additions and 0 deletions

View File

@ -363,6 +363,10 @@ if brotli_dep.found()
ft2_deps += [brotli_dep]
endif
if get_option('error_strings')
ftoption_command += ['--enable=FT_CONFIG_OPTION_ERROR_STRINGS']
endif
# We can now generate `ftoption.h`.
ftoption_h = custom_target('ftoption.h',
input: 'include/freetype/config/ftoption.h',

View File

@ -52,4 +52,9 @@ option('zlib',
'disabled', 'enabled' ],
description: 'Support reading gzip-compressed font files')
option('error_strings',
type: 'boolean',
value: false,
description: 'Enable support for meaningful error descriptions')
# EOF