Raise if gobject-introspection is not found.

This used to produce a warning, but then would crash anyway. It's
simpler if we just error out and have the user disable gir generation or
install gobject-introspection.
pull/763/merge
Elliott Sales de Andrade 8 years ago committed by Jussi Pakkanen
parent 4f0e204c34
commit 7c5de87656
  1. 6
      mesonbuild/modules/gnome.py

@ -371,11 +371,7 @@ class GnomeModule(ExtensionModule):
{'native': True})
pkgargs = self.gir_dep.get_compile_args()
except Exception:
global girwarning_printed
if not girwarning_printed:
mlog.warning('gobject-introspection dependency was not found, disabling gir generation.')
girwarning_printed = True
return ModuleReturnValue(None, [])
raise MesonException('gobject-introspection dependency was not found, gir cannot be generated.')
ns = kwargs.pop('namespace')
nsversion = kwargs.pop('nsversion')
libsources = kwargs.pop('sources')

Loading…
Cancel
Save