forked from enlightenment/efl
ecore/wayland: detect wayland-scanner
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>
This commit is contained in:
parent
82e1fef6ed
commit
d201747cc8
|
@ -1007,14 +1007,7 @@ AC_ARG_ENABLE([wayland],
|
||||||
|
|
||||||
if test "${want_wayland}" = "yes"; then
|
if test "${want_wayland}" = "yes"; then
|
||||||
EFL_PKG_CHECK_STRICT([wayland-client])
|
EFL_PKG_CHECK_STRICT([wayland-client])
|
||||||
dnl This is a problem. unless you somehow have this macro defined
|
AC_PATH_PROG([wayland_scanner], [wayland-scanner], [AC_MSG_ERROR("wayland-scanner is needed to compile ecore_wayland protocol")])
|
||||||
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'])
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Fb
|
# Fb
|
||||||
|
|
|
@ -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_DEPENDENCIES = @ECORE_WAYLAND_INTERNAL_LIBS@
|
||||||
lib_ecore_wayland_libecore_wayland_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
|
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
|
lib/ecore_wayland/subsurface-protocol.c: $(wayland_protocoldir)/subsurface.xml
|
||||||
$(AM_V_GEN)$(wayland_scanner) code < $< > $@
|
$(AM_V_GEN)$(wayland_scanner) code < $< > $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue