ref: f88c00e45a2f503f8a62bb9cc963ece5c46fc7d5
parent: c6345ca36de9d396b4dbef2aeab73a5a838c46b6
author: Werner Lemberg <[email protected]>
date: Wed Jan 6 14:19:29 EST 2021
* meson.build: Add summary. Based on a patch from Vincent Torri <[email protected]>.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-01-06 Werner Lemberg <[email protected]>
+
+ * meson.build: Add summary.
+
+ Based on a patch from Vincent Torri <[email protected]>.
+
2021-01-06 Torsten Hilbrich <[email protected]>
* meson.build: Fix 'png' build option (#59458).
--- 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 @@
'@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']
@@ -378,5 +381,14 @@
'--output-dir=@OUTPUT@'
],
)
+
+
+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