AC_PROG_CXX
AC_PROG_LIBTOOL
+# added for key grab binding only for tizen
+AC_ARG_ENABLE(tizenBuild,
+ [ --enable-tizenBuild build on tizen],
+ enable_tizenBuild=yes,
+ enable_tizenBuild=no)
+
+AM_CONDITIONAL([TIZENBUILD], [test x$enable_tizenBuild = xyes])
+
# Checks for libraries.
PKG_CHECK_MODULES([DALI], [dali-core dali-adaptor dali-toolkit])
+# added for key grab binding only for tizen
+if test x$enable_tizenBuild = xyes; then
+PKG_CHECK_MODULES(ECORE_WAYLAND, ecore-wayland)
+fi
AC_CONFIG_FILES([
Makefile
libdali_csharp_binder_la_CXXFLAGS = \
${CFLAGS} \
$(DALI_CFLAGS) \
+ $(ECORE_WAYLAND_CFLAGS) \
$(dali_csharp_binder_includes)
+# added for key grab binding only for tizen
+if TIZENBUILD
+libdali_csharp_binder_la_CXXFLAGS += -DTIZEN_BUILD
+libdali_csharp_binder_la_SOURCES = $(dali_csharp_binder_src_files_tizen)
+else
libdali_csharp_binder_la_SOURCES = $(dali_csharp_binder_src_files)
+endif
libdali_csharp_binderdir = $(includedir)/dali-csharp-binder
libdali_csharp_binder_HEADERS = $(dali_csharp_binder_header_files)
src/view-wrapper-impl-wrap.cpp \
src/event-thread-callback-wrap.cpp \
src/manual-bindings-all.cpp \
+ src/tts-player.cpp
+
+# added for key grab binding only for tizen
+dali_csharp_binder_src_files_tizen = \
+ src/dali_wrap.cpp \
+ src/callbackbase_wrap.cpp \
+ src/keyboard_focus_manager_wrap.cpp \
+ src/devel-property-wrap.cpp \
+ src/version-check.cpp \
+ src/view-wrapper-impl-wrap.cpp \
+ src/event-thread-callback-wrap.cpp \
+ src/manual-bindings-all.cpp \
src/tts-player.cpp \
src/text-editor.cpp \
src/window.cpp \
#include <dali/public-api/adaptor-framework/key-grab.h>
#include <dali/devel-api/adaptor-framework/window-devel.h>
+#ifdef TIZEN_BUILD
+#include <Ecore_Wayland.h>
+#endif
#undef LOG
//#define LOG DALI_LOG_ERROR
extern "C" {
#endif
-
SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_GrabKeyTopmost(void * window, int daliKey)
{
Dali::Window *_win = (Dali::Window *)window;
LOG("CSharp_Dali_GetNativeWindowHandler() [DP1] window=%d", window);
{
+ Dali::Any result;
try {
- ret = Dali::DevelWindow::GetNativeWindowHandler(*_win);
+ result = _win->GetNativeHandle();
+
+ Ecore_Wl_Window * ecore_win = Dali::AnyCast<Ecore_Wl_Window*>(result);
+ ret = (void*)ecore_win;
+
} catch (std::out_of_range& e) {
{
SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return NULL;
+
Name: dali-csharp-binder
Version: 1.2.39
Release: 1
BuildRequires: pkgconfig(dali-core)
BuildRequires: pkgconfig(dali-adaptor)
BuildRequires: pkgconfig(dali-toolkit)
+BuildRequires: pkgconfig(ecore-wayland)
%description
dali-csharp-binder
##############################
%build
%autogen
+# added for key grab binding only for tizen
+%configure --enable-tizenBuild=yes
make %{?_smp_mflags}
##############################