forked from AuroraMiddleware/gtk
build: Handle introspection a bit better
Error out if introspection is requested, but g-ir-scanner isn't found. And if introspection isn't explicitly disabled but is required for building the docs, build it.
This commit is contained in:
parent
30586d75ac
commit
87f820287a
@ -728,8 +728,13 @@ endif
|
||||
|
||||
# Introspection
|
||||
gir = find_program('g-ir-scanner', required : get_option('introspection'))
|
||||
build_gir = gir.found() and get_option('introspection').enabled()
|
||||
|
||||
if not gir.found() and get_option('introspection').enabled()
|
||||
error('Introspection enabled, but g-ir-scanner not found.')
|
||||
endif
|
||||
|
||||
build_gir = gir.found() and (get_option('introspection').enabled() or
|
||||
(get_option('introspection').allowed() and get_option('gtk_doc')))
|
||||
|
||||
project_build_root = meson.current_build_dir()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user