Don't build fontconfig on Windows

mesons 'auto' is too eager to build things. Building
fontconfig as a subproject on Windows is not the right
thing, unless it was explictly requested.
This commit is contained in:
Matthias Clasen 2021-04-19 11:49:31 -04:00
parent c287fb3a1f
commit f6a3f6d8ad

View file

@ -198,8 +198,15 @@ if png_dep.found()
endif
endif
# Don't build fontconfig as a subproject on Windows unless
# explicitly requested
fontconfig_option = get_option('fontconfig')
if host_machine.system() == 'windows' and not fontconfig_option.enabled()
fontconfig_option = false
endif
fontconfig_dep = dependency('fontconfig',
required: get_option('fontconfig'),
required: fontconfig_option,
version: fontconfig_required_version,
fallback: ['fontconfig', 'fontconfig_dep'],
)