Commit fbe492fd authored by Víctor Manuel Jáquez Leal's avatar Víctor Manuel Jáquez Leal Committed by Olivier Crête

meson: disable introspection if g-ir-scanner is not found

parent 8ce2b76b
......@@ -219,6 +219,8 @@ if ignored_iface_prefix != ''
cdata.set_quoted('IGNORED_IFACE_PREFIX', ignored_iface_prefix)
endif
gir = find_program('g-ir-scanner', required : get_option('introspection'))
subdir('agent')
subdir('stun')
subdir('socket')
......
......@@ -32,7 +32,7 @@ install_headers('nice.h', subdir: 'nice')
nice_include = include_directories('.')
# introspection
build_gir = not get_option('introspection').disabled() and get_option('default_library') != 'static'
build_gir = gir.found() and not get_option('introspection').disabled() and get_option('default_library') != 'static'
if build_gir
nice_gen_sources += [
gnome.generate_gir(libnice,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment