From e6133276ebbf9b3b8a4faae18a7038ad744028e3 Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Thu, 23 Feb 2017 16:10:09 +0200 Subject: wayland: Don't commit and ship generated files I believe shipping wayland-drm-client-protocol.h is wrong: The header should always be generated by the wayland-scanner that matches the runtime wayland version. Currently when someone clones the repo and builds, the shipped version is used. Remove wayland-drm-client-protocol.h from source tree, modify the build so the header is considered a built source file, and make configure fail if wayland is enabled but wayland-scanner is not found. Fixes #34. Signed-off-by: Jussi Kukkonen --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index b14d624..8e1a5fc 100644 --- a/configure.ac +++ b/configure.ac @@ -292,6 +292,9 @@ if test "$enable_wayland" = "yes"; then WAYLAND_PREFIX=`$PKG_CONFIG --variable=prefix wayland-client` AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner],, [${WAYLAND_PREFIX}/bin$PATH_SEPARATOR$PATH]) + if test "x$WAYLAND_SCANNER" = "x"; then + AC_MSG_ERROR([wayland-scanner not found: Install it or use --disable-wayland]) + fi AC_DEFINE([HAVE_VA_WAYLAND], [1], [Defined to 1 if VA/Wayland API is built]) -- cgit v1.2.1