[geocode-glib/bilelmoussaoui/gi-docgen: 2/2] misc: require g-ir-scanner if introspection is enabled
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib/bilelmoussaoui/gi-docgen: 2/2] misc: require g-ir-scanner if introspection is enabled
- Date: Fri, 14 Jan 2022 12:59:52 +0000 (UTC)
commit 0b05d8bd53c2e539dcf394010c23fde825b79e10
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date: Fri Jan 14 13:54:23 2022 +0100
misc: require g-ir-scanner if introspection is enabled
Otherwise this causes weird issues were you expect the build to fail but it doesn't and throws a
completely different error
geocode-glib/meson.build | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/geocode-glib/meson.build b/geocode-glib/meson.build
index 3b3786b..837e563 100644
--- a/geocode-glib/meson.build
+++ b/geocode-glib/meson.build
@@ -98,10 +98,10 @@ pkgconf.generate(libraries: libgcglib,
'soupapiversion=' + soup_api_version,
])
-gir = find_program('g-ir-scanner', required: false)
enable_gir = get_option('enable-introspection')
-if gir.found() and enable_gir
+if enable_gir
+ find_program('g-ir-scanner')
gir_args = [
'--quiet',
'--c-include=geocode-glib/geocode-glib.h'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]