build: Add a dependency on glyphy

We have a subproject, and we link statically
if we can, to avoid depending on a project
that is not generally packaged in distros.
This commit is contained in:
Matthias Clasen
2023-06-28 22:33:13 -04:00
parent 732a607127
commit 7088acb88b
4 changed files with 12 additions and 0 deletions

View File

@@ -194,6 +194,7 @@ gsk_deps = [
cairo_csi_dep,
pixbuf_dep,
libgdk_dep,
libglyphy_dep
]
libgsk_f16c = static_library('gsk_f16c',

View File

@@ -1015,6 +1015,7 @@ gtk_deps = [
epoxy_dep,
libm,
graphene_dep,
libglyphy_dep,
]
if x11_enabled

View File

@@ -25,6 +25,7 @@ epoxy_req = '>= 1.4'
cloudproviders_req = '>= 0.3.1'
xkbcommon_req = '>= 0.2.0'
sysprof_req = '>= 3.38.0'
libglyphy_req = '>= 0.2.0'
fs = import('fs')
gnome = import('gnome')
@@ -378,6 +379,9 @@ fribidi_dep = dependency('fribidi', version: fribidi_req,
default_options: ['docs=false'])
harfbuzz_dep = dependency('harfbuzz', version: harfbuzz_req,
default_options: ['coretext=enabled'])
libglyphy_dep = dependency('glyphy', version: libglyphy_req,
default_options: ['default_library=static', 'demo=disabled'],
fallback : ['glyphy', 'libglyphy_dep'])
# Require PangoFT2 if on X11 or wayland
pangoft_dep = dependency('pangoft2', version: pango_req,

6
subprojects/glyphy.wrap Normal file
View File

@@ -0,0 +1,6 @@
[wrap-git]
directory=glyphy
url=https://github.com/behdad/glyphy.git
revision=master
depth=1