GNOME Bugzilla – Bug 788295
GtkDoc generation is failing
Last modified: 2017-09-28 14:49:35 UTC
Documentation generation is failing due to missing directories. The output when it fails is as follows: > Building documentation for gnome-todo > > Error in gtkdoc helper script: > 'gtkdoc-scan' failed with status 2 > Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.30), passed through in regex; marked by <-- HERE in m/(.*?){ <-- HERE / at /usr/bin/gtkdoc-scan line 735. > Can't open source directory /home/jack/Projects/gnome-todo/_build/src/engine: No such file or directory at /usr/bin/gtkdoc-scan line 223.
Created attachment 360607 [details] [review] Fix documentation generation This is happening because GtkDoc tries to search for directories that are present in the source code tree, but are not in the build tree: 'src/engine', 'src/interfaces' and 'src/notification'. These directories were added to `src_inc` in 450876f to give access to the objects defined in those directories to plugins. However, the `include_directories` function from meson includes directories from both source code and built trees. This patch modifies the directories that GtkDoc scans in search for source code files.
Thanks for the patches