[pango/pango2-windows: 114/123] build: Always look for FontConfig




commit 2883dc43fd0d47928462bbafcef23301564804e1
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 5900a37d2..c377b127a 100644
--- a/meson.build
+++ b/meson.build
@@ -285,9 +285,9 @@ harfbuzz_gobj_dep = dependency('harfbuzz-gobject',
 
 pango_deps += [ harfbuzz_dep, harfbuzz_gobj_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]