vulkan/wsi: include builddir for generated headers
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Mon, 13 Mar 2017 15:04:20 +0000 (16:04 +0100)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Mon, 13 Mar 2017 15:04:20 +0000 (16:04 +0100)
wayland-drm-client-protocol.h is generated in builddir, so when
builddir != srcdir the header is not found, and compilation of
wsi_common_wayland.c will fail.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/vulkan/Makefile.am

index f8d6fae40b429feac1b6e36d2b5aab5ed7a8cc92..bd66901255db56395a5279cf0f0013eb7e8bb9e2 100644 (file)
@@ -63,6 +63,7 @@ wsi/wayland-drm-client-protocol.h : $(WL_DRM_XML)
 
 if HAVE_PLATFORM_WAYLAND
 AM_CPPFLAGS += \
+       -I$(top_builddir)/src/vulkan/wsi \
        $(WAYLAND_CFLAGS) \
        -DVK_USE_PLATFORM_WAYLAND_KHR