Add an explicit harfbuzz dependency
authorMatthias Clasen <mclasen@redhat.com>
Sun, 15 May 2022 14:37:24 +0000 (10:37 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 15 May 2022 14:37:24 +0000 (10:37 -0400)
We are using Harfbuzz api in the file chooser,
so lets make this official.

gtk/meson.build
meson.build
subprojects/harfbuzz.wrap [new file with mode: 0644]

index 987835ff9dcb8d81ba660e195d3977299f3fdaa3..322badc1ada6377a7e77df0ae063b6a24c92dc2f 100644 (file)
@@ -1111,6 +1111,7 @@ gtk_deps = [
   gobject_dep,
   platform_gio_dep,
   pangocairo_dep,
+  harfbuzz_dep,
   fribidi_dep,
   cairogobj_dep,
   fontconfig_dep,
index 6c28a626832308f59f04e02e8cd9582e39bdc8e1..0bad104e246813771af729fa862f1e8f03de706f 100644 (file)
@@ -12,6 +12,7 @@ project('gtk', 'c',
 
 glib_req           = '>= 2.66.0'
 pango_req          = '>= 1.50.0' # keep this in sync with .gitlab-ci/test-msys.sh
+harfbuzz_req      = '>= 2.6.0'
 fribidi_req        = '>= 0.19.7'
 cairo_req          = '>= 1.14.0'
 gdk_pixbuf_req     = '>= 2.30.0'
@@ -393,6 +394,9 @@ pango_dep      = dependency('pango', version: pango_req,
                             fallback : ['pango', 'libpango_dep'])
 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'])
 
 # Require PangoFT2 if on X11 or wayland
 require_pangoft2 = wayland_enabled or x11_enabled
diff --git a/subprojects/harfbuzz.wrap b/subprojects/harfbuzz.wrap
new file mode 100644 (file)
index 0000000..10b770d
--- /dev/null
@@ -0,0 +1,6 @@
+[wrap-git]
+directory=harfbuzz
+url=https://github.com/harfbuzz/harfbuzz.git
+push-url=git@github.com:harfbuzz/harfbuzz.git
+revision=main
+depth=1