build: Do not require g-ir-scanner on introspection=auto
This commit is contained in:
parent
d5a888fa31
commit
d348a36a05
|
@ -69,8 +69,9 @@ pkgconfig.generate(libnotify_lib,
|
||||||
)
|
)
|
||||||
|
|
||||||
introspection = get_option('introspection')
|
introspection = get_option('introspection')
|
||||||
if not introspection.disabled()
|
g_ir_scanner = find_program('g-ir-scanner', required: introspection.enabled())
|
||||||
find_program('g-ir-scanner', required: introspection.enabled())
|
|
||||||
|
if g_ir_scanner.found() and not introspection.disabled()
|
||||||
gnome.generate_gir(libnotify_lib,
|
gnome.generate_gir(libnotify_lib,
|
||||||
sources: headers + sources + enum_types,
|
sources: headers + sources + enum_types,
|
||||||
namespace: 'Notify',
|
namespace: 'Notify',
|
||||||
|
|
Loading…
Reference in New Issue