GNOME Bugzilla – Bug 786843
Out of source build support
Last modified: 2017-08-26 19:42:30 UTC
Currently, Vala source code is not suitable for out-of-source builds. The programmers mix up srcdir and builddir. It looks like their knowledge of the meaning of srcdir and builddir came from Automake. Vala does not use Automake's built-in Vala rules, it uses custom ones that store .c files in builddir. I have already prepared a patch, that allows me to run configure with a separate builddir. By moving .version from top_srcdir to top_builddir, this allows me even to make the srcdir read-only. The patches are made for the current state of the master branch (26 August 2017).
Created attachment 358488 [details] [review] This patch makes the Makefiles (and valadoc/tests/testrunner.sh) work properly in a separate builddir
Created attachment 358489 [details] [review] This patch makes the .version be generated in builddir, not srcdir
Take a look at https://bugzilla.gnome.org/show_bug.cgi?id=725497
*** This bug has been marked as a duplicate of bug 725497 ***