From e24b5c7338c0bf461a7d549a9633f526b5ad4692 Mon Sep 17 00:00:00 2001 From: Damian Hobson-Garcia Date: Tue, 12 Sep 2017 12:14:15 +0900 Subject: [PATCH] wayland: Mark files generated by wayland-scanner as such The generated files should be created before all other build tasks are executed. The BUILT_SOURCES variable is specifically intended for this, so use it. --- ext/wayland/Makefile.am | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/ext/wayland/Makefile.am b/ext/wayland/Makefile.am index 09c8f89..2ce3cc8 100644 --- a/ext/wayland/Makefile.am +++ b/ext/wayland/Makefile.am @@ -1,5 +1,11 @@ plugin_LTLIBRARIES = libgstwaylandsink.la +BUILT_SOURCES = \ + scaler-client-protocol.h \ + linux-dmabuf-unstable-v1-client-protocol.h \ + scaler-protocol.c \ + linux-dmabuf-unstable-v1-protocol.c + libgstwaylandsink_la_SOURCES = \ gstwaylandsink.c \ wlshmallocator.c \ @@ -34,23 +40,8 @@ noinst_HEADERS = \ linux-dmabuf-unstable-v1-client-protocol.h EXTRA_DIST = scaler.xml -CLEANFILES = scaler-protocol.c scaler-client-protocol.h \ - linux-dmabuf-unstable-v1-protocol.c \ - linux-dmabuf-unstable-v1-client-protocol.h - -gstwaylandsink.c: scaler-client-protocol.h linux-dmabuf-unstable-v1-client-protocol.h - -waylandpool.c: scaler-client-protocol.h - -wlbuffer.c: scaler-client-protocol.h - -wldisplay.c: scaler-client-protocol.h linux-dmabuf-unstable-v1-client-protocol.h - -wlwindow.c: scaler-client-protocol.h - -wldmabuf.c: linux-dmabuf-unstable-v1-client-protocol.h +CLEANFILES = $(BUILT_SOURCES) -wlshmallocator.c: scaler-client-protocol.h .SECONDEXPANSION: define protostability -- 1.9.1