Require Harfbuzz only for Wayland and X11 backends.

Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1968
This commit is contained in:
John Ralls
2019-06-22 10:51:43 -07:00
parent 3ffd71cf35
commit e169e2bdd5

View File

@ -471,7 +471,8 @@ if cc.get_id() == 'msvc' and not harfbuzz_dep.found()
endif
endif
if not harfbuzz_dep.found()
require_harfbuzz = wayland_enabled or x11_enabled
if require_harfbuzz and not harfbuzz_dep.found()
harfbuzz_dep = dependency('harfbuzz', version: '>= 0.9', required: false,
fallback: ['harfbuzz', 'libharfbuzz_dep'])
endif