GNOME Bugzilla – Bug 593010
[introspection.m3] Macro to check for .gir/.typelib
Last modified: 2018-02-08 11:51:44 UTC
At the moment modules are using GOBJECT_INTROSPECTION_CHECK to enable introspection support, but then they call g-ir-scanner with some include flags, without any guarantee corresponding gir files exist. It would be nice if gobject-introspection had a macro (new, or a new parameter to GOBJECT_INTROSPECTION_CHECK) modules could use to check for the presence of .gir files at ./configure time, instead of failing at build time.
Same applies to typelib, as some bindings, eg vala only uses the girs. Modules providing introspection support should check for the typelib and not the gir. In theory the typelib should be present if the gir is, but better safe than sorry in this case. Might need a small tool similar to pkg-config which is installed and checks the same paths as g-ir-scanner/g-ir-compiler Proposed names: GOBJECT_INTROSPECTION_GIR(gtk+-2.0 gstreamer-0.10) GOBJECT_INTROSPECTION_TYPELIB(gtk+-2.0 gstreamer-0.10)
(see also bug 598479 about jhbuild failing to build gnome because of that issue)
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Would still be nice to have — even though we're doing a mass migration to Meson.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/23.