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

Emil Velikov emil.l.velikov at gmail.com
Mon Mar 13 13:17:08 UTC 2017


On 13 March 2017 at 12:58, Juan A. Suarez Romero <jasuarez at igalia.com> wrote:
> 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 at collabora.com>
> ---
>  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 \
Nit: please move this above the WAYLAND_CFLAGS.

Thanks for catching these.
Emil


More information about the mesa-dev mailing list