From da059347f8df5fc180b4538d9d3c50867c401fbd Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 19 Jul 2019 18:47:13 +0800 Subject: build: Only use fallback dep for FontConfig when needed/requested Windows and macOS only optionally requires FontConfig, so: -Add an option, for Windows and macOS, whether we want to use FontConfig on these platforms. This is ignored on *NIX, where FontConfig will always be used. -We still look for FontConfig first via pkg-config files, and on MSVC builds, via looking for its headers and .lib files. If FontConfig is required (or requested) but is not found, we then use the fallback dependency for it. --- meson_options.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meson_options.txt') diff --git a/meson_options.txt b/meson_options.txt index d2f5f302..7a59fa2b 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -10,3 +10,7 @@ option('install-tests', description : 'Install tests', type: 'boolean', value: 'false') +option('use_fontconfig', + description : 'Force using FontConfig where it is optional, on Windows and macOS. This is ignored on platforms where it is required', + type: 'boolean', + value: 'false') -- cgit v1.2.1