AC_SUBST(EVAS_CFLAGS)
AC_SUBST(EVAS_LIBS)
+PKG_CHECK_MODULES(ECORE_WL2, ecore-wl2)
+AC_SUBST(ECORE_WL2_CFLAGS)
+AC_SUBST(ECORE_WL2_LIBS)
+
PKG_CHECK_MODULES(TZPLATFORM_CONFIG, libtzplatform-config)
AC_SUBST(TZPLATFORM_CONFIG_CFLAGS)
AC_SUBST(TZPLATFORM_CONFIG_LIBS)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(evas)
-BuildRequires: pkgconfig(ecore-wayland)
+BuildRequires: pkgconfig(ecore-wl2)
BuildRequires: pkgconfig(libtbm)
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(capi-system-info)
export CFLAGS+=" -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow"
export CFLAGS+=" -Wwrite-strings -Wswitch-default"
export CFLAGS+=" -DSYSCONFDIR=\\\"%{_sysconfdir}\\\""
+export CFLAGS+=" -DEFL_BETA_API_SUPPORT"
./autogen.sh
CFLAGS+=" -DMMFW_DEBUG_MODE -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" "; export CFLAGS
#include <gst/gst.h>
#include <gst/video/videooverlay.h>
#include <Elementary.h>
-#include <Ecore_Wayland.h>
+#include <Ecore_Wl2.h>
#include "mm_wfd_sink_util.h"
#include "mm_wfd_sink_priv.h"
int wl_window_height = 0;
struct wl_surface *wl_surface = NULL;
struct wl_display *wl_display = NULL;
- Ecore_Wl_Window *wl_window = NULL;
+ Ecore_Wl2_Window *wl2_window = NULL;
+ Ecore_Wl2_Display *wl2_display = NULL;
wl_client *wlclient = NULL;
Evas_Object *obj = NULL;
void *object = NULL;
wfd_sink_debug("x[%d] y[%d] width[%d] height[%d]", wl_window_x, wl_window_y,
wl_window_width, wl_window_height);
- wl_window = elm_win_wl_window_get(obj);
- ecore_wl_window_video_has(wl_window, EINA_TRUE);
- wl_surface = (struct wl_surface *) ecore_wl_window_surface_get(wl_window);
+ wl2_window = ecore_evas_wayland2_window_get(ecore_evas_ecore_evas_get(evas_object_evas_get(obj)));
+ ecore_wl2_window_video_has(wl2_window, EINA_TRUE);
+ wl_surface = ecore_wl2_window_surface_get(wl2_window);
/* get wl_display */
- wl_display = (struct wl_display *) ecore_wl_display_get();
+ wl2_display = ecore_wl2_connected_display_get(NULL);
+ wl_display = ecore_wl2_display_get(wl2_display);
wfd_sink_debug("previous display object : %p current object : %p", display_overlay, object);
if (wl_surface && wl_display && (wl_surface_id == 0 || display_overlay != object)) {