[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master f4c2a44ea: * meson.build: Add support for compiling w
From: |
Werner Lemberg |
Subject: |
[freetype2] master f4c2a44ea: * meson.build: Add support for compiling with error strings. |
Date: |
Sat, 12 Oct 2024 06:47:46 -0400 (EDT) |
branch: master
commit f4c2a44ea98d0764262cb02e5d772f17daa36a56
Author: Benoit Pierre <benoit.pierre+freedesktop@gmail.com>
Commit: Alexei Podtelezhnikov (Алексей Подтележников) <apodtele@gmail.com>
* meson.build: Add support for compiling with error strings.
* meson_options.txt: Document it.
---
meson.build | 4 ++++
meson_options.txt | 5 +++++
2 files changed, 9 insertions(+)
diff --git a/meson.build b/meson.build
index 5126e0f82..72b7f9900 100644
--- a/meson.build
+++ b/meson.build
@@ -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',
diff --git a/meson_options.txt b/meson_options.txt
index ce035b98d..d4aeb4a8b 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master f4c2a44ea: * meson.build: Add support for compiling with error strings.,
Werner Lemberg <=