enable_tizenBuild=yes,
enable_tizenBuild=no)
+AC_ARG_ENABLE(Ecore_Wl2,
+ [ --enable-ecore-wl2 build with ecorewl2 on tizen],
+ enable_ecore_wl2=yes,
+ enable_ecore_wl2=no)
+
AM_CONDITIONAL([TIZENBUILD], [test x$enable_tizenBuild = xyes])
+AM_CONDITIONAL([ECOREWL2], [test "x$enable_ecore_wl2" = "xyes"])
PKG_PROG_PKG_CONFIG
# Checks for libraries. added for widget_viewer_dali binding only for tizen
# added for key grab binding only for tizen
if test x$enable_tizenBuild = xyes; then
PKG_CHECK_MODULES(DALI, dali-core dali-adaptor dali-toolkit widget_viewer_dali)
- PKG_CHECK_MODULES(ECORE_WAYLAND, ecore-wayland)
+ if test x$enable_ecore_wl2 = xyes; then
+ PKG_CHECK_MODULES(ECORE_WL2, ecore-wl2)
+ else
+ PKG_CHECK_MODULES(ECORE_WAYLAND, ecore-wayland)
+ fi
else
PKG_CHECK_MODULES(DALI, dali-core dali-adaptor dali-toolkit)
fi
Name: DALi C# binder
Description: DALi C# binder Libaray
Version: @VERSION@
-Requires: dali-core dali-adaptor dali-toolkit ecore-wayland
+Requires: dali-core dali-adaptor dali-toolkit
Libs: -L${libdir} -ldali-csharp-binder
Cflags: -I${includedir}/dali-csharp-binder
libdali_csharp_binder_la_CXXFLAGS = \
${CFLAGS} \
$(DALI_CFLAGS) \
- $(ECORE_WAYLAND_CFLAGS) \
$(viewer_dali_CFLAGS) \
$(dali_csharp_binder_includes)
+if ECOREWL2
+libdali_csharp_binder_la_CXXFLAGS+= $(ECORE_WL2_CFLAGS)
+else
+libdali_csharp_binder_la_CXXFLAGS+= $(ECORE_WAYLAND_CFLAGS)
+endif
+
# added for key grab binding only for tizen
if TIZENBUILD
libdali_csharp_binder_la_CXXFLAGS += -DTIZEN_BUILD
#ifdef TIZEN_BUILD
+#ifdef ECORE_WL2
+#include <Ecore_Wl2.h>
+#else
#include <Ecore_Wayland.h>
#endif
+#endif
#undef LOG
//#define LOG DALI_LOG_ERROR
Dali::Any result;
try {
result = _win->GetNativeHandle();
-
+#ifdef ECORE_WL2
+ Ecore_Wl2_Window * ecore_win = Dali::AnyCast<Ecore_Wl2_Window*>(result);
+#else
Ecore_Wl_Window * ecore_win = Dali::AnyCast<Ecore_Wl_Window*>(result);
+#endif
ret = (void*)ecore_win;
} catch (std::out_of_range& e) {
BuildRequires: pkgconfig(dali-core)
BuildRequires: pkgconfig(dali-adaptor)
BuildRequires: pkgconfig(dali-toolkit)
-BuildRequires: pkgconfig(ecore-wayland)
BuildRequires: pkgconfig(widget_viewer_dali)
+# dali-adaptor uses ecore mainloop
+%if 0%{?tizen_version_major} >= 5
+BuildRequires: pkgconfig(ecore-wl2)
+%else
+BuildRequires: pkgconfig(ecore-wayland)
+%endif
+
%description
dali-csharp-binder
+%if 0%{?tizen_version_major} >= 5
+CFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
+CXXFLAGS+=" -DECORE_WL2 -DEFL_BETA_API_SUPPORT"
+configure_flags="--enable-ecore-wl2"
+%endif
+
##############################
# devel
##############################
%build
%autogen
# added for key grab binding only for tizen
-%configure --enable-tizenBuild=yes
+%configure --enable-tizenBuild=yes \
+ $configure_flags
+
make %{?_smp_mflags}
##############################