After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 634174 - Need something like _SCANNERFLAGS for compiling typelib
Need something like _SCANNERFLAGS for compiling typelib
Status: RESOLVED NOTABUG
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal critical
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-11-06 15:54 UTC by Vincent Untz
Modified: 2015-02-07 16:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vincent Untz 2010-11-06 15:54:44 UTC
Trying to build e-d-s with introspection support for the first time, I'm hitting an issue:

  GISCAN ECalendar-1.2.gir
Couldn't find include 'EDataServer-1.2.gir' (search path: ['/gnome/usr/share/gir-1.0', '/usr/share/gir-1.0', '/gnome/usr/share/gir-1.0', '/usr/share/gir-1.0', '/gnome/usr/share/gir-1.0'])
make[1]: *** [ECalendar-1.2.gir] Erreur 1

So I changed Makefile.am and added this:

ECalendar_1_2_gir_SCANNERFLAGS = --add-include-path=../../libedataserver

I can now build the gir file. But I can't compile it into a typelib file:

  GICOMP ECalendar-1.2.gir
Could not find GIR file 'EDataServer-1.2.gir'; check XDG_DATA_DIRS or use --includedir
error parsing file ECalendar-1.2.gir: Failed to parse included gir EDataServer-1.2
make[1]: *** [ECalendar-1.2.typelib] Erreur 1

And there's no way to properly fix this: there's no ECalendar_1_2_gir_COMPILERGLAGS or similar variable I can define.
Comment 1 Johan (not receiving bugmail) Dahlin 2010-11-18 12:51:53 UTC
You can use the global variable INTROSPECTION_COMPILER_ARGS, see http://git.gnome.org/browse/gtk+/tree/gtk/Makefile.am#n7 for an example.

You should probably use INTROSPECTION_SCANNER_ARGS as well (instead of ECalendar_1_2_gir_SCANNERFLAGS) as they apply to all girs/typelibs instead of a single one.
Comment 2 André Klapper 2015-02-07 16:59:36 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]