[pango/pango2-windows: 118/126] build: Always look for FontConfig
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2-windows: 118/126] build: Always look for FontConfig
- Date: Thu, 9 Jun 2022 16:57:06 +0000 (UTC)
commit 7423d9f285b1173ebf522e62464b29aa69cdcdb5
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Jun 9 15:39:42 2022 +0800
build: Always look for FontConfig
...but only have it required if we are building for Linux. We might still have
multiple backends that we support.
meson.build | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 5f118fbe..de8152c4 100644
--- a/meson.build
+++ b/meson.build
@@ -273,9 +273,9 @@ harfbuzz_dep = dependency('harfbuzz',
pango_deps += harfbuzz_dep
-if host_system == 'linux'
- fontconfig_dep = dependency('fontconfig', version: fontconfig_req_version, required: true)
+fontconfig_dep = dependency('fontconfig', version: fontconfig_req_version, required: host_system == 'linux')
+if fontconfig_dep.found()
pango_deps += fontconfig_dep
pango_conf.set('HAVE_FONTCONFIG', 1)
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]