<div dir="ltr"><div>I won't claim to be an autotools expert, but this looks sane to me. Probably something we want to take care of for 1.5.<br><br></div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 7, 2014 at 7:09 AM, Thierry Reding <span dir="ltr"><<a href="mailto:thierry.reding@gmail.com" target="_blank">thierry.reding@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Thierry Reding <<a href="mailto:treding@nvidia.com">treding@nvidia.com</a>><br>
<br>
The wayland-server-protocol.h and wayland-client-protocol.h headers are<br>
currently being shipped in tarballs created using make dist. This causes<br>
out-of-tree builds to fail since make will detect that the headers exist<br>
by looking at the source directory (via VPATH) and not regenerate them.<br>
But as opposed to ${top_builddir}/protocol, ${top_srcdir}/protocol is<br>
not part of the include path and therefore the shipped files can't be<br>
found during compilation.<br>
<br>
Two solutions exist to this problem: 1) add ${top_srcdir}/protocol to<br>
the include path to allow shipped files to be used if available or 2)<br>
don't ship these generated files in release tarballs. The latter seems<br>
the most appropriate. wayland-scanner is already a prerequisite in order<br>
to generate wayland-protocol.c, so it is either built as part of the<br>
package or provided externally. Generating all files from the protocol<br>
definition at build time also ensures that they don't get out of sync.<br>
<br>
Both of the generated headers are already listed in Makefile.am as<br>
nodist_*_SOURCES, but at the same time they appear in include_HEADERS,<br>
which will cause them to be added to the list of distributable files<br>
after all. To prevent that, split them off into nodist_include_HEADERS.<br>
<br>
Note that this problem will be hidden if a previous version of wayland<br>
has been installed, since these files will exist in /usr/include and be<br>
included from there. So this build error will only show for out-of-tree<br>
builds on systems that don't have wayland installed yet.<br>
<br>
Signed-off-by: Thierry Reding <<a href="mailto:treding@nvidia.com">treding@nvidia.com</a>><br>
---<br>
Makefile.am | 6 ++++--<br>
1 file changed, 4 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/Makefile.am b/Makefile.am<br>
index f1584d5bfc12..0ec6f47ab2c7 100644<br>
--- a/Makefile.am<br>
+++ b/Makefile.am<br>
@@ -20,13 +20,15 @@ noinst_LTLIBRARIES = <a href="http://libwayland-util.la" target="_blank">libwayland-util.la</a><br>
<br>
include_HEADERS = \<br>
src/wayland-util.h \<br>
- protocol/wayland-server-protocol.h \<br>
src/wayland-server.h \<br>
- protocol/wayland-client-protocol.h \<br>
src/wayland-client.h \<br>
src/wayland-egl.h \<br>
src/wayland-version.h<br>
<br>
+nodist_include_HEADERS = \<br>
+ protocol/wayland-server-protocol.h \<br>
+ protocol/wayland-client-protocol.h<br>
+<br>
libwayland_util_la_SOURCES = \<br>
src/connection.c \<br>
src/wayland-util.c \<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.9.2<br>
<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</font></span></blockquote></div><br></div>