ecore/wayland: detect wayland-scanner
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Sat, 5 Oct 2013 15:53:35 +0000 (08:53 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 10 Oct 2013 16:24:17 +0000 (13:24 -0300)
We need the wayland-scanner program to auto-generate the
subsurface protocol source files from subsurface.xml

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
configure.ac
src/Makefile_Ecore_Wayland.am

index d720310..e9efd1f 100644 (file)
@@ -1007,14 +1007,7 @@ AC_ARG_ENABLE([wayland],
 
 if test "${want_wayland}" = "yes"; then
    EFL_PKG_CHECK_STRICT([wayland-client])
-dnl This is a problem. unless you somehow have this macro defined
-dnl magically... you cant do dev on efl. configure is totally broken.
-dnl you end up with something like:
-dnl
-dnl ./configure: line 25508: syntax error near unexpected token `'$(top_srcdir)/data/ecore/ecore_wayland/protocol''
-dnl ./configure: line 25508: `WAYLAND_SCANNER_RULES('$(top_srcdir)/data/ecore/ecore_wayland/protocol')'
-
-dnl   WAYLAND_SCANNER_RULES(['$(top_srcdir)/data/ecore/ecore_wayland/protocol'])
+   AC_PATH_PROG([wayland_scanner], [wayland-scanner], [AC_MSG_ERROR("wayland-scanner is needed to compile ecore_wayland protocol")])
 fi
 
 # Fb
index 0709d6b..607d26e 100644 (file)
@@ -31,6 +31,8 @@ lib_ecore_wayland_libecore_wayland_la_LIBADD = @ECORE_WAYLAND_LIBS@
 lib_ecore_wayland_libecore_wayland_la_DEPENDENCIES = @ECORE_WAYLAND_INTERNAL_LIBS@
 lib_ecore_wayland_libecore_wayland_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
 
+wayland_protocoldir = $(top_srcdir)/data/ecore/ecore_wayland/protocol
+
 lib/ecore_wayland/subsurface-protocol.c: $(wayland_protocoldir)/subsurface.xml
        $(AM_V_GEN)$(wayland_scanner) code < $< > $@