* meson.build: Add summary. Based on a patch from Vincent Torri <vincent.torri@gmail.com>.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
diff --git a/ChangeLog b/ChangeLog
index 1354513..12c2c07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-01-06 Werner Lemberg <wl@gnu.org>
+
+ * meson.build: Add summary.
+
+ Based on a patch from Vincent Torri <vincent.torri@gmail.com>.
+
2021-01-06 Torsten Hilbrich <emacs.nolkaf@hilbrich.tk>
* meson.build: Fix 'png' build option (#59458).
diff --git a/meson.build b/meson.build
index 895ebb3..cab118c 100644
--- a/meson.build
+++ b/meson.build
@@ -13,6 +13,7 @@
project('freetype2', 'c',
+ version: '2.10.4',
meson_version: '>= 0.55.0',
default_options: ['default_library=both'],
)
@@ -231,10 +232,12 @@ ftoption_command = [python_exe,
'@INPUT@', '--output=@OUTPUT@']
# GZip support
+have_zlib='no'
zlib_option = get_option('zlib')
if zlib_option == 'disabled'
ftoption_command += ['--disable=FT_CONFIG_OPTION_USE_ZLIB']
else
+ have_zlib='yes'
ftoption_command += ['--enable=FT_CONFIG_OPTION_USE_ZLIB']
if zlib_option == 'builtin'
ftoption_command += ['--disable=FT_CONFIG_OPTION_SYSTEM_ZLIB']
@@ -379,4 +382,13 @@ gen_docs = custom_target('freetype2 reference documentation',
],
)
+
+summary({'OS': host_machine.system(),
+ 'Zlib': have_zlib,
+ 'Bzip2': bzip2_dep.found() ? 'yes' : 'no',
+ 'Png': libpng_dep.found() ? 'yes' : 'no',
+ 'Harfbuzz': harfbuzz_dep.found() ? 'yes' : 'no',
+ 'Brotli': brotli_dep.found() ? 'yes' : 'no',
+ }, section: 'Configuration Options Summary:')
+
# EOF