summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2022-04-21 16:54:49 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2022-04-21 23:53:44 +0200
commitd348a36a053bee9d45fdd3f90b0d0682e0ffdf25 (patch)
tree6dd580a331fc98420bce59d13624a88796b036a0
parentd5a888fa3130d2d05bf045c9ef90a3beaac54be8 (diff)
downloadlibnotify-d348a36a053bee9d45fdd3f90b0d0682e0ffdf25.tar.gz
build: Do not require g-ir-scanner on introspection=auto
-rw-r--r--libnotify/meson.build5
1 files changed, 3 insertions, 2 deletions
diff --git a/libnotify/meson.build b/libnotify/meson.build
index c1fb485..2258a1d 100644
--- a/libnotify/meson.build
+++ b/libnotify/meson.build
@@ -69,8 +69,9 @@ pkgconfig.generate(libnotify_lib,
)
introspection = get_option('introspection')
-if not introspection.disabled()
- find_program('g-ir-scanner', required: introspection.enabled())
+g_ir_scanner = find_program('g-ir-scanner', required: introspection.enabled())
+
+if g_ir_scanner.found() and not introspection.disabled()
gnome.generate_gir(libnotify_lib,
sources: headers + sources + enum_types,
namespace: 'Notify',