egl: guard wayland header dep. tracking behind HAVE_PLATFORM_WAYLAND
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 24 Jul 2017 12:22:06 +0000 (13:22 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 24 Jul 2017 13:09:08 +0000 (14:09 +0100)
Otherwise we'll attemt to generate the header even we don't need to.
In that case the dependencies may not be met, leading to build failure.

Fixes: 166852e "configure.ac: rework wayland-protocols handling"
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/egl/Makefile.am

index f881145c0e3151f055a3146401b70dc06ba4923a..ecaf148aaece49c3f3c50095abfd497708c3e3f0 100644 (file)
@@ -74,10 +74,10 @@ drivers/dri2/linux-dmabuf-unstable-v1-client-protocol.h: $(WL_DMABUF_XML)
        $(MKDIR_GEN)
        $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@
 
+if HAVE_PLATFORM_WAYLAND
 drivers/dri2/linux-dmabuf-unstable-v1-protocol.lo: drivers/dri2/linux-dmabuf-unstable-v1-client-protocol.h
 drivers/dri2/egl_dri2.lo: drivers/dri2/linux-dmabuf-unstable-v1-client-protocol.h
 
-if HAVE_PLATFORM_WAYLAND
 AM_CFLAGS += $(WAYLAND_CFLAGS)
 libEGL_common_la_LIBADD += $(WAYLAND_LIBS)
 libEGL_common_la_LIBADD += $(LIBDRM_LIBS)