summaryrefslogtreecommitdiff
path: root/pango/meson.build
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-04-14 18:59:26 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2020-06-08 17:07:42 +0100
commit5dfa88dc880079fb314f24525f940cdd9b2d08b5 (patch)
tree4e516ad751855a0b40b4fa499fb698b4dd5f2d61 /pango/meson.build
parent598c3a28e5eb14a047d767055f4d8c7833dda0fb (diff)
downloadpango-5dfa88dc880079fb314f24525f940cdd9b2d08b5.tar.gz
build: Generate pkg-config files for PangoOT and PangoFc
Since we have them as separate namespaces, we need separate pkg-config file in order to let Vala consume them.
Diffstat (limited to 'pango/meson.build')
-rw-r--r--pango/meson.build24
1 files changed, 20 insertions, 4 deletions
diff --git a/pango/meson.build b/pango/meson.build
index a86617b4..ad7fb798 100644
--- a/pango/meson.build
+++ b/pango/meson.build
@@ -240,7 +240,7 @@ if build_pangoft2
nsversion: pango_api_version,
identifier_prefix: 'Pango',
symbol_prefix: 'pango',
- export_packages: 'pangoft2',
+ export_packages: 'pangofc',
includes: [ pango_gir[0], 'fontconfig-2.0', ],
header: 'pango/pangofc-fontmap.h',
install: true,
@@ -258,7 +258,7 @@ if build_pangoft2
nsversion: pango_api_version,
identifier_prefix: 'Pango',
symbol_prefix: 'pango',
- export_packages: 'pangoft2',
+ export_packages: 'pangoot',
includes: [ pangofc_gir[0], 'freetype2-2.0', ],
header: 'pango/pango-ot.h',
install: true,
@@ -295,11 +295,27 @@ if build_pangoft2
pkgconfig.generate(libpangoft2,
name: 'Pango FT2 and Pango Fc',
description: 'Freetype 2.0 and fontconfig font support for Pango',
- version: meson.project_version(),
filebase: 'pangoft2',
subdirs: pango_api_name,
requires: [ 'pango', freetype2_pc, fontconfig_pc ],
- install_dir: join_paths(pango_libdir, 'pkgconfig'),
+ )
+
+ # Since we split the introspection data, we also need a split pkg-config
+ # file for Vala
+ pkgconfig.generate(
+ name: 'Pango OT',
+ description: 'OpenType font support for Pango (deprecated)',
+ filebase: 'pangoot',
+ subdirs: pango_api_name,
+ requires: [ 'pangoft2' ],
+ )
+
+ pkgconfig.generate(
+ name: 'Pango FC',
+ description: 'Fontconfig support for Pango',
+ filebase: 'pangofc',
+ subdirs: pango_api_name,
+ requires: [ 'pangoft2' ],
)
else
# For usage as a subproject