diff options
-rw-r--r-- | meson.build | 2 | ||||
-rw-r--r-- | nice/meson.build | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 022fe05..d27d396 100644 --- a/meson.build +++ b/meson.build @@ -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') diff --git a/nice/meson.build b/nice/meson.build index 5d7755b..f7f608b 100644 --- a/nice/meson.build +++ b/nice/meson.build @@ -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, |