build: Do not require g-ir-scanner on introspection=auto

This commit is contained in:
Marco Trevisan (Treviño) 2022-04-21 16:54:49 +02:00
parent d5a888fa31
commit d348a36a05
1 changed files with 3 additions and 2 deletions

View File

@ -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',