ref: c6345ca36de9d396b4dbef2aeab73a5a838c46b6
parent: 74f1b6be4a91ec9e105d9c2a11e5ba124b698755
author: Torsten Hilbrich <[email protected]>
date: Wed Jan 6 03:55:16 EST 2021
* meson.build: Fix 'png' build option (#59458). Without this patch, 'png' is always required.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2021-01-06 Torsten Hilbrich <[email protected]>
+
+ * meson.build: Fix 'png' build option (#59458).
+
+ Without this patch, 'png' is always required.
+
2021-01-04 Alexei Podtelezhnikov <[email protected]>
[builds/windows] Add SDF to VC2010 project.
--- a/meson.build
+++ b/meson.build
@@ -264,8 +264,10 @@
# PNG support
libpng_dep = dependency('libpng', required: get_option('png'))
-ftoption_command += ['--enable=FT_CONFIG_OPTION_USE_PNG']
-ft2_deps += [libpng_dep]
+if libpng_dep.found()
+ ftoption_command += ['--enable=FT_CONFIG_OPTION_USE_PNG']
+ ft2_deps += [libpng_dep]
+endif
# Harfbuzz support
harfbuzz_dep = dependency('harfbuzz',