From 7bc35a2163ff88d52d2c7f52eba3f5dcc7999fcd Mon Sep 17 00:00:00 2001 From: Takuro Ashie Date: Thu, 27 Apr 2017 16:55:48 +0900 Subject: [PATCH] waylandsink: Fix a potential build issue caused by missing linux-dmabuf-client-protocol.h Use BUILT_SOURCES to make sure to generate it. The detail of the build issue: * http://elinux.org/Thread:Talk:R-Car/Boards/Yocto-Gen3/Error_in_Bitbake Signed-off-by: Takuro Ashie --- ext/wayland/Makefile.am | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/ext/wayland/Makefile.am b/ext/wayland/Makefile.am index f022ad5d33..1296b3a33c 100644 --- a/ext/wayland/Makefile.am +++ b/ext/wayland/Makefile.am @@ -1,5 +1,9 @@ plugin_LTLIBRARIES = libgstwaylandsink.la +BUILT_SOURCES = \ + scaler-protocol.c scaler-client-protocol.h \ + linux-dmabuf-protocol.c linux-dmabuf-client-protocol.h + libgstwaylandsink_la_SOURCES = \ gstwaylandsink.c \ waylandpool.c \ @@ -34,9 +38,7 @@ noinst_HEADERS = \ linux-dmabuf-client-protocol.h EXTRA_DIST = scaler.xml -CLEANFILES = scaler-protocol.c scaler-client-protocol.h \ - linux-dmabuf-protocol.c \ - linux-dmabuf-client-protocol.h +CLEANFILES = $(BUILT_SOURCES) WAYLAND_GEN_PROTOCOL_CODE = $(wayland_scanner) code < $< > $@ WAYLAND_GEN_PROTOCOL_HEADER = $(wayland_scanner) client-header < $< > $@ @@ -52,15 +54,3 @@ scaler-protocol.c : scaler.xml scaler-client-protocol.h : scaler.xml $(WAYLAND_GEN_PROTOCOL_HEADER) - -gstwaylandsink.c: scaler-client-protocol.h - -waylandpool.c: scaler-client-protocol.h - -wlbuffer.c: scaler-client-protocol.h - -wldisplay.c: scaler-client-protocol.h linux-dmabuf-client-protocol.h - -wlwindow.c: scaler-client-protocol.h - -wldmabuf.c: linux-dmabuf-client-protocol.h