[gnome-calculator] gcalc: check for gobject-introspection-1.0 dependency



commit b825b38b15982b3bb355185d5266a5c030538c33
Author: Daniel Espinosa <esodan gmail com>
Date:   Wed Feb 23 19:54:51 2022 -0600

    gcalc: check for gobject-introspection-1.0 dependency

 gcalc/meson.build | 2 +-
 meson.build       | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gcalc/meson.build b/gcalc/meson.build
index a786db86..b43581c9 100644
--- a/gcalc/meson.build
+++ b/gcalc/meson.build
@@ -179,7 +179,7 @@ libgcalc = library(VERSIONED_PROJECT_NAME,
                true
        ])
 
-if not get_option('disable-introspection')
+if not get_option('disable-introspection') and gobject_introspection.found()
 g_ir_compiler = find_program('g-ir-compiler', required: false)
 if g_ir_compiler.found()
 custom_target('gcalc-typelib',
diff --git a/meson.build b/meson.build
index b81756c8..5975f0f3 100644
--- a/meson.build
+++ b/meson.build
@@ -37,6 +37,7 @@ gobject = dependency('gobject-2.0', version: '>= ' + glib_min_version)
 libxml = dependency('libxml-2.0')
 libsoup = dependency('libsoup-2.4', version: '>= 2.42')
 gee = dependency('gee-0.8', version: '>= 0.20.0')
+gobject_introspection = dependency('gobject-introspection-1.0', required: false)
 
 # Libraries
 cc = meson.get_compiler('c')


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