[pango/gir-fixes] Include version macros in the gir



commit fb19dd4a8c9735d381d79adf16c142c4d025749c
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Feb 15 22:43:17 2021 -0500

    Include version macros in the gir
    
    PANGO_MAJOR/MINOR/MICRO_VERSION are useful to have
    in the gir.

 pango/meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pango/meson.build b/pango/meson.build
index 15386661..388d4588 100644
--- a/pango/meson.build
+++ b/pango/meson.build
@@ -67,7 +67,7 @@ pango_features_conf.set('PANGO_VERSION_MICRO', pango_micro_version)
 pango_features_conf.set('PANGO_API_VERSION', pango_api_version)
 pango_features_conf.set('PANGO_CURRENT_MINUS_AGE', '0')
 
-configure_file(
+pango_features_h = configure_file(
   input: 'pango-features.h.meson',
   output: 'pango-features.h',
   configuration: pango_features_conf,
@@ -135,7 +135,7 @@ if build_gir
   endif
   pango_gir = gnome.generate_gir(
     libpango,
-    sources: pango_sources + pango_headers + [ pango_enum_h ],
+    sources: pango_sources + pango_headers + [ pango_enum_h, pango_features_h ],
     namespace: 'Pango',
     nsversion: pango_api_version,
     identifier_prefix: 'Pango',


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