GNOME Bugzilla – Bug 634174
Need something like _SCANNERFLAGS for compiling typelib
Last modified: 2015-02-07 16:59:36 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.
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.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]