summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2020-01-15 15:17:16 +0800
committerAaron Boxer <boxerab@gmail.com>2020-06-08 08:31:54 -0400
commitfb2d89845196ac02e2db0dc9ccf40bc9338fea7e (patch)
treed9ba38cc350822d7937ff3ec197eac8d164e3513
parentbf84f87bb0342a0875a96a0e9b6548c6ff57b76f (diff)
downloadpango-fb2d89845196ac02e2db0dc9ccf40bc9338fea7e.tar.gz
meson: Fix pkg-config file generation for HarfBuzz
HarfBuzz may be found manually instead of via pkg-config, so only add it to Pango's pkg-config file if it is really found via pkg-config.
-rw-r--r--pango/meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/pango/meson.build b/pango/meson.build
index 738bd36c..b2496373 100644
--- a/pango/meson.build
+++ b/pango/meson.build
@@ -152,11 +152,16 @@ libpango_dep = declare_dependency(
sources: pango_dep_sources,
)
+pango_pkg_requires = ['gobject-2.0']
+if harfbuzz_dep.type_name() == 'pkgconfig'
+ pango_pkg_requires += 'harfbuzz'
+endif
+
pkgconfig.generate(libpango,
name: 'Pango',
description: 'Internationalized text handling',
version: meson.project_version(),
- requires: ['gobject-2.0', 'harfbuzz'],
+ requires: pango_pkg_requires,
filebase: 'pango',
subdirs: pango_api_name,
install_dir: join_paths(pango_libdir, 'pkgconfig'),