Require Harfbuzz only for Wayland and X11 backends.
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1968
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user