[pango/for-master] build: Generate pkg-config files for PangoOT and PangoFc



commit e3187008cceed82a2f2b36d5a5f8c4bdbc203eb7
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Apr 14 18:59:26 2020 +0100

    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.

 pango/meson.build | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)
---
diff --git a/pango/meson.build b/pango/meson.build
index b33cb233..6ed24b42 100644
--- a/pango/meson.build
+++ b/pango/meson.build
@@ -235,7 +235,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,
@@ -253,7 +253,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,
@@ -290,11 +290,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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]