[geocode-glib/bilelmoussaoui/gi-docgen: 9/9] 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: 9/9] misc: require g-ir-scanner if introspection is enabled
- Date: Fri, 14 Jan 2022 13:29:12 +0000 (UTC)
commit 3ff06cd526d4477a603eb158df6cf2c0bcb430fa
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]