Mesa (master): wayland: Stop trying to use make rules from aclocal, just copy and paste

Kristian Høgsberg krh at kemper.freedesktop.org
Fri Jul 13 15:20:30 UTC 2012


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

Author: Kristian Høgsberg <krh at bitplanet.net>
Date:   Fri Jul 13 11:06:32 2012 -0400

wayland: Stop trying to use make rules from aclocal, just copy and paste

Defeated by autotool, copy and paste to the rescue.

https://bugs.freedesktop.org/show_bug.cgi?id=51997
https://bugs.freedesktop.org/show_bug.cgi?id=51531

Signed-off-by: Kristian Høgsberg <krh at bitplanet.net>

---

 configure.ac                                       |    5 +++--
 src/egl/wayland/wayland-drm/Makefile.am            |    9 ++++++++-
 .../wayland-drm/{protocol => }/wayland-drm.xml     |    0 
 3 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 00a1d5d..0221c02 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1728,8 +1728,9 @@ for plat in $egl_platforms; do
 				  [AC_MSG_ERROR([cannot find libwayland-client])])
 		GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS sw/wayland"
 
-		m4_ifdef([WAYLAND_SCANNER_RULES],
-		         [WAYLAND_SCANNER_RULES(['$(top_srcdir)/src/egl/wayland/wayland-drm/protocol'])])
+                WAYLAND_PREFIX=`$PKG_CONFIG --variable=prefix wayland-client`
+                AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner],,
+                             [${WAYLAND_PREFIX}/bin$PATH_SEPARATOR$PATH])
 		;;
 
 	x11)
diff --git a/src/egl/wayland/wayland-drm/Makefile.am b/src/egl/wayland/wayland-drm/Makefile.am
index cf15eda..4b2aeb3 100644
--- a/src/egl/wayland/wayland-drm/Makefile.am
+++ b/src/egl/wayland/wayland-drm/Makefile.am
@@ -12,4 +12,11 @@ BUILT_SOURCES = wayland-drm-protocol.c \
 		wayland-drm-server-protocol.h
 CLEANFILES = $(BUILT_SOURCES)
 
- at wayland_scanner_rules@
+%-protocol.c : %.xml
+	$(AM_V_GEN)$(WAYLAND_SCANNER) code < $< > $@
+
+%-server-protocol.h : %.xml
+	$(AM_V_GEN)$(WAYLAND_SCANNER) server-header < $< > $@
+
+%-client-protocol.h : %.xml
+	$(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@
diff --git a/src/egl/wayland/wayland-drm/protocol/wayland-drm.xml b/src/egl/wayland/wayland-drm/wayland-drm.xml
similarity index 100%
rename from src/egl/wayland/wayland-drm/protocol/wayland-drm.xml
rename to src/egl/wayland/wayland-drm/wayland-drm.xml




More information about the mesa-commit mailing list