[Mesa-dev] [PATCH] vulkan/wsi: include builddir for generated headers

Juan A. Suarez Romero jasuarez at igalia.com
Mon Mar 13 12:58:13 UTC 2017


wayland-drm-client-protocol.h is generated in builddir, so when
builddir != srcdir the header is not found.
---
 src/vulkan/Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/vulkan/Makefile.am b/src/vulkan/Makefile.am
index f8d6fae..c796049 100644
--- a/src/vulkan/Makefile.am
+++ b/src/vulkan/Makefile.am
@@ -64,6 +64,7 @@ wsi/wayland-drm-client-protocol.h : $(WL_DRM_XML)
 if HAVE_PLATFORM_WAYLAND
 AM_CPPFLAGS += \
 	$(WAYLAND_CFLAGS) \
+	-I$(top_builddir)/src/vulkan/wsi \
 	-DVK_USE_PLATFORM_WAYLAND_KHR
 
 VULKAN_WSI_SOURCES += \
-- 
2.9.3



More information about the mesa-dev mailing list