Mesa (master): egl_dri2: Fix out of tree builds with the wayland backend enabled

Kristian Høgsberg krh at kemper.freedesktop.org
Thu May 3 15:45:49 UTC 2012


Module: Mesa
Branch: master
Commit: c384c5d4d733244c9922638eebb20b05f465df62
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c384c5d4d733244c9922638eebb20b05f465df62

Author: Robert Hooker <sarvatt at ubuntu.com>
Date:   Wed May  2 19:04:57 2012 -0400

egl_dri2: Fix out of tree builds with the wayland backend enabled

Otherwise it fails like so:

  CC     egl_dri2.lo
In file included from egl_dri2.h:40:0,
                 from egl_dri2.c:42:
../../../../../../src/egl/wayland/wayland-drm/wayland-drm.h:8:41:
fatal error: wayland-drm-server-protocol.h: No such file or directory
compilation terminated.

---

 src/egl/drivers/dri2/Makefile.am |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/egl/drivers/dri2/Makefile.am b/src/egl/drivers/dri2/Makefile.am
index e4d4abb..49ec06b 100644
--- a/src/egl/drivers/dri2/Makefile.am
+++ b/src/egl/drivers/dri2/Makefile.am
@@ -26,6 +26,7 @@ AM_CFLAGS = \
 	-I$(top_srcdir)/src/gbm/backends/dri \
 	-I$(top_srcdir)/src/egl/wayland/wayland-egl \
 	-I$(top_srcdir)/src/egl/wayland/wayland-drm \
+	-I$(top_builddir)/src/egl/wayland/wayland-drm \
 	$(DEFINES) \
 	$(LIBDRM_CFLAGS) \
 	$(LIBUDEV_CFLAGS) \




More information about the mesa-commit mailing list