GNOME Bugzilla – Bug 786796
gtk-doc build fails with meson
Last modified: 2017-12-11 15:26:24 UTC
Created attachment 358390 [details] [review] docs: Fix building with meson When -Dwith-docs=yes is set when building with meson, install process would fail, with messages such as: 'gtkdoc-scangobj' failed with status 1 gobject-scan.c:8:10: fatal error: 'gobject.cI' file not found #include "gobject.cI" I've tracked the issue to meson using paths relative to top source/build directories in subdirectories, making gtk-doc pass invalid paths to the compiler, which then fails to find the necessary headers. Attached patch, although an ugly fix, fixes the issue for me.
Can we fix this in Meson instead?
I think so, yes. But even with fixes in meson, there are still some parts of this patch that would be required.
I created this PR in Meson: https://github.com/mesonbuild/meson/pull/2603 With that change, we can fix this glib issue more nicely: incldir = include_directories('.') gnome.gtkdoc(..., include_directories=[incldir])
Created attachment 363319 [details] [review] Patch
Meson 0.44.0 got released, can we merge this now?
I’m leaving GLib/Meson patch review to Nirbheek or Emmanuele.
Review of attachment 363319 [details] [review]: ACK-by: me