GNOME Bugzilla – Bug 771170
GIR files are generated in the source dir
Last modified: 2016-09-10 10:45:12 UTC
There are two rules to generate each GIR file and they all are generatedin the srcdir instead of the builddir. Here are the warnings for retro-gobject: /home/kekun/JHBuild/install/share/gobject-introspection-1.0/Makefile.introspection:155: Recipe was specified for file 'Retro-0.6.gir' at Makefile:901, /home/kekun/JHBuild/install/share/gobject-introspection-1.0/Makefile.introspection:155: but 'Retro-0.6.gir' is now considered the same file as '/home/kekun/JHBuild/checkout/retro-gtk/retro-gobject/Retro-0.6.gir'. /home/kekun/JHBuild/install/share/gobject-introspection-1.0/Makefile.introspection:155: Recipe for '/home/kekun/JHBuild/checkout/retro-gtk/retro-gobject/Retro-0.6.gir' will be ignored in favor of the one for 'Retro-0.6.gir'. And here are the warnings for retro-gtk: /home/kekun/JHBuild/install/share/gobject-introspection-1.0/Makefile.introspection:155: Recipe was specified for file 'RetroGtk-0.6.gir' at Makefile:753, /home/kekun/JHBuild/install/share/gobject-introspection-1.0/Makefile.introspection:155: but 'RetroGtk-0.6.gir' is now considered the same file as '/home/kekun/JHBuild/checkout/retro-gtk/retro-gtk/RetroGtk-0.6.gir'. /home/kekun/JHBuild/install/share/gobject-introspection-1.0/Makefile.introspection:155: Recipe for '/home/kekun/JHBuild/checkout/retro-gtk/retro-gtk/RetroGtk-0.6.gir' will be ignored in favor of the one for 'RetroGtk-0.6.gir'.
Also, this prevents retro-gtk to compile with srcdir != builddir.
Created attachment 335234 [details] [review] build: Remove GIR rules from Vala flags This avoids a double definition of the GIR file creation rules, once correctly via Automake, once incorrectly via the Vala rules. This allows the GIR files to land in the builddir rather than the srcdir.
Attachment 335234 [details] pushed as d181d6b - build: Remove GIR rules from Vala flags