diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2022-07-06 14:56:13 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2022-07-08 17:14:04 +0800 |
commit | 24d25b0db578e5195a7a11c6b33def799e6494fa (patch) | |
tree | def41c0756a8c24752f8128de313188685daee70 | |
parent | 30147b1a99ad8aa85d44f7b979981f6b4da1577e (diff) | |
download | gtk+-pango2-windows.tar.gz |
build: Check HarfBuzz has GDI support built in on Windowspango2-windows
We are using APIs from there. Also enable GDI and DirectWrite if we are
building HarfBuzz as a fallback, and remove an extraneous HarfBuzz dependency
declaration.
-rw-r--r-- | meson.build | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/meson.build b/meson.build index 69cc94aa64..ad63f82f34 100644 --- a/meson.build +++ b/meson.build @@ -397,7 +397,7 @@ fribidi_dep = dependency('fribidi', version: fribidi_req, fallback : ['fribidi', 'libfribidi_dep']) harfbuzz_dep = dependency('harfbuzz', version: harfbuzz_req, fallback: ['harfbuzz', 'libharfbuzz_dep'], - default_options: ['coretext=enabled']) + default_options: ['coretext=enabled', 'directwrite=auto', 'gdi=auto']) pangocairo_dep = pango_dep @@ -417,9 +417,6 @@ jpeg_dep = dependency('libjpeg', epoxy_dep = dependency('epoxy', version: epoxy_req, fallback: ['libepoxy', 'libepoxy_dep']) -harfbuzz_dep = dependency('harfbuzz', version: '>= 2.1.0', required: false, - fallback: ['harfbuzz', 'libharfbuzz_dep'], - default_options: ['coretext=enabled']) xkbdep = dependency('xkbcommon', version: xkbcommon_req, required: wayland_enabled) graphene_dep = dependency('graphene-gobject-1.0', version: graphene_req, fallback: ['graphene', 'graphene_dep'], @@ -495,6 +492,17 @@ cdata.set('HAVE_CAIRO_SCRIPT_INTERPRETER', cairo_csi_dep.found()) if have_egl cdata.set('HAVE_EGL', 1) endif + +if os_win32 + if harfbuzz_dep.type_name() == 'pkgconfig' + if not cc.has_header_symbol('hb-uniscribe.h', + 'hb_uniscribe_font_get_logfontw', + dependencies: harfbuzz_dep) + error ('HarfBuzz must be built with GDI/Uniscribe support') + endif + endif +endif + cdata.set('HAVE_HARFBUZZ', harfbuzz_dep.found()) wayland_pkgs = [] |