[meson] try freetype without harfbuzz just as a last resort
This commit is contained in:
parent
01fa55e88f
commit
020b182c79
15
meson.build
15
meson.build
|
@ -73,13 +73,20 @@ if not get_option('freetype').disabled()
|
||||||
|
|
||||||
if not freetype_dep.found() and cpp.get_id() == 'msvc'
|
if not freetype_dep.found() and cpp.get_id() == 'msvc'
|
||||||
freetype_dep = cpp.find_library('freetype', required: false,
|
freetype_dep = cpp.find_library('freetype', required: false,
|
||||||
has_headers: ['ft2build.h'], )
|
has_headers: ['ft2build.h'])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if not freetype_dep.found()
|
if not freetype_dep.found()
|
||||||
freetype_dep = dependency('freetype2', fallback: ['freetype2', 'freetype_dep'],
|
freetype_dep = dependency('freetype2', required: false,
|
||||||
default_options: ['harfbuzz=disabled'],
|
fallback: ['freetype2', 'freetype_dep'])
|
||||||
required: get_option('freetype'))
|
endif
|
||||||
|
|
||||||
|
if not freetype_dep.found()
|
||||||
|
# try to fetch freetype2 without harfbuzz, just as a last resort
|
||||||
|
# https://github.com/harfbuzz/harfbuzz/pull/2498
|
||||||
|
freetype_dep = dependency('freetype2', required: get_option('freetype'),
|
||||||
|
fallback: ['freetype2', 'freetype_dep'],
|
||||||
|
default_options: ['harfbuzz=disabled'])
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
freetype_dep = dependency('', required: false)
|
freetype_dep = dependency('', required: false)
|
||||||
|
|
Loading…
Reference in New Issue