mirror of
git://git.sv.nongnu.org/freetype/freetype2.git
synced 2026-01-19 04:52:09 +00:00
* meson.build: Add summary.
Based on a patch from Vincent Torri <vincent.torri@gmail.com>.
This commit is contained in:
12
meson.build
12
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
|
||||
|
||||
Reference in New Issue
Block a user