[pango/pango2-windows: 118/126] build: Always look for FontConfig




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]