[pango/pango2-windows: 65/73] build: Always look for FontConfig




commit 3a9212b4e7e018f8cd810854defd3401bb6d220a
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 ddbc451f..a404df80 100644
--- a/meson.build
+++ b/meson.build
@@ -281,9 +281,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]