vulkan/wsi/wayland: Move Wayland protocol from BUILT_SOURCES
authorDaniel Stone <daniels@collabora.com>
Fri, 23 Feb 2018 11:15:11 +0000 (11:15 +0000)
committerDaniel Stone <daniels@collabora.com>
Mon, 26 Feb 2018 10:43:12 +0000 (10:43 +0000)
commitd8f19d9aa03b50feaf8583b26ff5561ea2a56101
tree415e121e7f86792dd21140b0c63a7f9137b52626
parent0cc5be7741aa77bd65046d627370c18839e0da25
vulkan/wsi/wayland: Move Wayland protocol from BUILT_SOURCES

autotools wants to have the BUILT_SOURCES ready as soon as it enters the
directory, even if they are not used. This meant the build failed if
wayland-protocols was not available on the system, even if it was not
enabled.

As BUILT_SOURCES cannot be used in a conditional (cf. 166852ee957f), do
the same thing as EGL and manually encode the dependencies in the
Makefile.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Fixes: bfa22266cd4d ("vulkan/wsi/wayland: Add support for zwp_dmabuf")
Cc: Emil Velikov <emil.velikov@collabora.co.uk>
Reported-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105211
src/vulkan/Makefile.am