GNOME Bugzilla – Bug 595675
g-ir-scanner needs input files includes dir
Last modified: 2015-02-07 16:53:39 UTC
In gnome-bluetooth, I do: GnomeBluetooth-1.0.gir: $(libgnome_bluetooth_la_SOURCES) GnomeBluetooth-1.0.gir: $(gnomebluetooth_HEADERS) GnomeBluetooth-1.0.gir: libgnome-bluetooth.la GnomeBluetooth-1.0.gir: $(INTROSPECTION_SCANNER) $(AM_V_GEN) $(INTROSPECTION_SCANNER) -v --namespace GnomeBluetooth --nsversion=1.0 \ --add-include-path=$(srcdir) --add-include-path=. \ --include=GObject-2.0 \ --include=Gtk-2.0 \ --include=DBusGLib-1.0 \ --include=GModule-2.0 \ --libtool="$(LIBTOOL)" \ --library=gnome-bluetooth \ --output $@ \ --pkg gobject-2.0 \ --pkg gtk+-2.0 \ --pkg dbus-glib-1 \ --pkg gmodule-2.0 \ -I$(srcdir) \ $(LIBGNOMEBT_CFLAGS) \ $(gnomebluetooth_HEADERS) But this fails distcheck as gnomebluetooth_HEADERS is in $(srcdir) and g-ir-scanner looks in $(builddir). Adding a --sourcedir= would help.
You can just pass in directories you wish to including using -I{dir}.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]