[ISF_HAS_ECOREWL=yes],
[ISF_HAS_ECOREWL=no])
-AC_PATH_PROG([wayland_scanner], [wayland-scanner])
-if test x$wayland_scanner = x; then
- AC_MSG_ERROR([wayland-scanner is needed to compile])
-fi
-
-PKG_CHECK_MODULES(WAYLAND_SCANNER, [wayland-scanner])
-
if test "$ISF_HAS_ECOREWL" = "yes"; then
AC_DEFINE(HAVE_ECOREWL,1,[Have ecore-wayland functions.])
+
+ AC_PATH_PROG([wayland_scanner], [wayland-scanner])
+ if test x$wayland_scanner = x; then
+ AC_MSG_ERROR([wayland-scanner is needed to compile])
+ fi
+
+ PKG_CHECK_MODULES(WAYLAND_SCANNER, [wayland-scanner])
fi
if test "$ISF_HAS_EFL" = "yes"; then
isf_wsc_efl_LDADD = $(top_builddir)/ism/src/libscim@SCIM_EPOCH@.la
+if ISF_BUILD_WSC_EFL
%-protocol.c : $(top_srcdir)/ism/protocol/%.xml
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
%-client-protocol.h : $(top_srcdir)/ism/protocol/%.xml
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
-
+endif
BuildRequires: pkgconfig(vconf)
%if %{with wayland}
BuildRequires: pkgconfig(ecore-wayland)
+BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(xkbcommon) >= 0.3.0
%else
BuildRequires: pkgconfig(utilX)