summaryrefslogtreecommitdiff
path: root/pango/meson.build
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-21 00:40:36 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-07-21 00:40:36 +0000
commit9f217e7f93f63bf1ee26e23dd978e1729461b9b1 (patch)
treee9962be556bdaa614aa8b841d2f10ffd88c9b622 /pango/meson.build
parentf14969a988e1afb0830e0e05206800deee1ab777 (diff)
parent77e77bcf8897a58cd29a44ce1ce85e99ac28635b (diff)
downloadpango-9f217e7f93f63bf1ee26e23dd978e1729461b9b1.tar.gz
Merge branch 'cairo-detection-improvements' into 'master'
Improve build experience in regards to Cairo/PangoCairo See merge request GNOME/pango!93
Diffstat (limited to 'pango/meson.build')
-rw-r--r--pango/meson.build10
1 files changed, 9 insertions, 1 deletions
diff --git a/pango/meson.build b/pango/meson.build
index 1327ca39..c07b6bde 100644
--- a/pango/meson.build
+++ b/pango/meson.build
@@ -485,13 +485,21 @@ if cairo_dep.found()
sources: pangocairo_dep_sources,
)
+ # Create pangocairo.pc according to whether we found Cairo
+ # manually
+ if ['pkgconfig', 'internal'].contains(cairo_found_type)
+ pango_cairo_requires = [ 'pango', cairo_pc ]
+ else
+ pango_cairo_requires = [ 'pango' ]
+ endif
+
pkgconfig.generate(libpangocairo,
name: 'Pango Cairo',
description: 'Cairo rendering support for Pango',
version: meson.project_version(),
filebase: 'pangocairo',
subdirs: pango_api_name,
- requires: [ 'pango', cairo_pc ],
+ requires: pango_cairo_requires,
install_dir: join_paths(pango_libdir, 'pkgconfig'),
)
else