AC_PROG_LIBTOOL
# Checks for library functions.
PKG_CHECK_MODULES([ELEMENTARY],[elementary])
-PKG_CHECK_MODULES([ECOREWAYLAND],[ecore-wayland])
+PKG_CHECK_MODULES([ECOREWAYLAND],[ecore-wl2])
PKG_CHECK_MODULES([CAPISYSTEMINFO],[capi-system-info])
AC_SUBST([DESKTOP])
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig(elementary)
-BuildRequires: pkgconfig(ecore-wayland)
+BuildRequires: pkgconfig(ecore-wl2)
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(capi-system-info)
cp %{SOURCE2} .
%build
+export CFLAGS+=" -DEFL_BETA_API_SUPPORT "
+
./autogen.sh
TZ_SYS_BIN=%{TZ_SYS_BIN} ./configure --prefix %{_prefix}/
#include <Elementary.h>
-#include <Ecore_Wayland.h>
+#include <Ecore_Wl2.h>
#include <sys/socket.h>
#include <sys/un.h>
}
static void
-_scale_set(void)
+_scale_set(Evas_Object *win)
{
Evas_Coord w, h;
float inch, scale = 0.0, saved_scale = 0.0, profile_factor = 1.0;
int dpi;
- ecore_wl_sync();
- dpi = ecore_wl_dpi_get();
+ Ecore_Wl2_Window *wlwin = elm_win_wl_window_get(win);
+ Ecore_Wl2_Output *wlout = ecore_wl2_window_output_find(wlwin);
+ Ecore_Wl2_Display *wldp = ecore_wl2_window_display_get(wlwin);
+
+ ecore_wl2_sync();
+ dpi = ecore_wl2_output_dpi_get(wlout);
tizen_profile_t prof = get_tizen_profile();
if (prof == TIZEN_PROFILE_MOBILE || prof == TIZEN_PROFILE_IVI || prof == TIZEN_PROFILE_COMMON)
{
- ecore_wl_screen_size_get(&w, &h);
+ ecore_wl2_display_screen_size_get(wldp, &w, &h);
inch = floor(sqrt((w * w) + (h * h)) / dpi * 10 + 0.5) / 10;
}
else /* prof == TIZEN_PROFILE_TV */
{
- ecore_wl_screen_size_get(&w, &h);
+ ecore_wl2_display_screen_size_get(wldp, &w, &h);
profile_factor = 2.0;
scale = floor((double)w * profile_factor / 1920 * 10 + 0.5) / 10;
EINA_LOG_INFO("efl-config :: START");
- elm_win_add(NULL, "config", ELM_WIN_BASIC);
+ Evas_Object *win = elm_win_add(NULL, "config", ELM_WIN_BASIC);
if (argc > 1)
{
else
{
EINA_LOG_DBG("efl-config :: Launching without option. Call _scale_set()");
- _scale_set();
+ _scale_set(win);
}
if (opt_with_message)