diff options
author | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2022-12-19 11:52:34 +0000 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2022-12-19 11:52:34 +0000 |
commit | 56f8f499cc7ae7600a6832f84ee8341dc2598362 (patch) | |
tree | c731ae14fb8448e2f5cf3d9982d5f2c4923eae80 /meson.build | |
parent | 7e846f2b51e24c147048d9b48061326cce612c37 (diff) | |
parent | 488d510e8394deb5361210e354f8b64387a49a82 (diff) | |
download | pango-56f8f499cc7ae7600a6832f84ee8341dc2598362.tar.gz |
Merge branch 'fix-pcfile-generation-internal' into 'main'
meson: Fix pangoft2.pc when using freetype and fontconfig subprojects
See merge request GNOME/pango!665
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/meson.build b/meson.build index ca296da3..a3103e96 100644 --- a/meson.build +++ b/meson.build @@ -263,9 +263,7 @@ if not fontconfig_option.disabled() or fontconfig_required endif fontconfig_dep = dependency('fontconfig', version: fontconfig_req_version, required: fontconfig_option) -if fontconfig_dep.found() - fontconfig_pc = 'fontconfig' -else +if not fontconfig_dep.found() if cc.get_id() == 'msvc' and cc.has_header('fontconfig/fontconfig.h') # Look for the Visual Studio-style import library if FontConfig's .pc file cannot be # found on Visual Studio @@ -283,6 +281,10 @@ if not fontconfig_dep.found() endif if fontconfig_dep.found() + if fontconfig_dep.type_name() in ['pkgconfig', 'internal'] + fontconfig_pc = 'fontconfig' + endif + pango_deps += fontconfig_dep if fontconfig_dep.type_name() != 'library' @@ -319,7 +321,7 @@ freetype_dep = dependency(freetype_package_name, required: freetype_option, fallback: ['freetype2', 'freetype_dep']) -if freetype_dep.found() and freetype_dep.type_name() == 'pkgconfig' +if freetype_dep.found() and freetype_dep.type_name() in ['pkgconfig', 'internal'] freetype2_pc = 'freetype2' endif @@ -389,7 +391,7 @@ endif pango_font_backends = [] pango_cairo_backends = [] -if ['pkgconfig', 'internal'].contains(cairo_found_type) +if cairo_found_type in ['pkgconfig', 'internal'] # Check the following Cairo font backends # - dependency # - version |