meson: Fallback to freetype2 subproject when option is 'auto'

But disable harfbuzz support when configuring freetype2 subproject to
avoid dependency cycle.
This commit is contained in:
Xavier Claessens 2020-06-24 13:40:55 -04:00 committed by Ebrahim Byagowi
parent 33252ce576
commit c4bbe89b53

View File

@ -76,8 +76,9 @@ if not get_option('freetype').disabled()
has_headers: ['ft2build.h'], )
endif
if not freetype_dep.found() and get_option('freetype').enabled()
freetype_dep = dependency('freetype2', fallback: ['freetype2', 'freetype_dep'])
if not freetype_dep.found()
freetype_dep = dependency('freetype2', fallback: ['freetype2', 'freetype_dep'],
default_options: ['harfbuzz=disabled'])
endif
else
freetype_dep = dependency('', required: false)