summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-12-21 00:10:41 +0000
committerPhil Jones <philj56@gmail.com>2022-12-21 00:15:19 +0000
commita0cb6eab595e67b1e45efb6e4203bea2b5bdd7ae (patch)
treed08796e6f6b136e2a77182f78fafc210a35b4bc0 /meson.build
parent6c47cf7892d0f212b04e7b798e53c120f51022d7 (diff)
Fix compilation with Harfbuzz < 4.0.0.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 910075b..09d6a10 100644
--- a/meson.build
+++ b/meson.build
@@ -149,6 +149,13 @@ if wayland_client.version().version_compare('<1.20.0')
)
endif
+if harfbuzz.version().version_compare('<4.0.0')
+ add_project_arguments(
+ ['-DNO_HARFBUZZ_METRIC_FALLBACK=1'],
+ language: 'c'
+ )
+endif
+
if harfbuzz.version().version_compare('<4.4.0')
add_project_arguments(
['-DNO_HARFBUZZ_FONT_CHANGED=1'],