ADD_DEFINITIONS("-DVOICE_LIBDIR=\"${LIBDIR}\"")
ADD_DEFINITIONS("-Werror")
+# for the use of ecore_wl2
+ADD_DEFINITIONS("-DEFL_BETA_API_SUPPORT")
# pkg config tool
INCLUDE(FindPkgConfig)
INCLUDE(FindPkgConfig)
IF("${_TV_PRODUCT}" STREQUAL "TRUE")
pkg_check_modules(pkgs REQUIRED
- aul capi-appfw-app-control capi-appfw-app-manager capi-base-common capi-media-audio-io capi-media-sound-manager ecore-wayland
+ aul capi-appfw-app-control capi-appfw-app-manager capi-base-common capi-media-audio-io capi-media-sound-manager ecore-wl2
capi-network-bluetooth capi-network-bluetooth-tv capi-system-info cynara-client cynara-session dbus-1 db-util dlog ecore glib-2.0 json-glib-1.0 libgum libtzplatform-config libxml-2.0 sqlite3 vconf msfapi farfield-voice-api
)
ELSE()
pkg_check_modules(pkgs REQUIRED
- aul capi-appfw-app-control capi-appfw-app-manager capi-base-common capi-media-audio-io capi-media-sound-manager ecore-wayland
+ aul capi-appfw-app-control capi-appfw-app-manager capi-base-common capi-media-audio-io capi-media-sound-manager ecore-wl2
capi-system-info cynara-client cynara-session dbus-1 db-util dlog ecore glib-2.0 json-glib-1.0 libgum libtzplatform-config libxml-2.0 sqlite3 vconf
)
ENDIF()
#include <cynara-client.h>
#include <cynara-error.h>
#include <cynara-session.h>
-#include <Ecore_Wayland.h>
+#include <Ecore_Wl2.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
SLOG(LOG_DEBUG, TAG_VCC, "@@@ Focus changed");
int ret;
- if (ECORE_WL_EVENT_FOCUS_IN == type) {
+ if (ECORE_WL2_EVENT_FOCUS_IN == type) {
SLOG(LOG_DEBUG, TAG_VCC, "@@@ Set foreground");
ret = vc_dbus_set_foreground(getpid(), true);
if (0 != ret) {
/* notify auth changed cb */
ecore_timer_add(0, __notify_auth_changed_cb, NULL);
}
- } else if (ECORE_WL_EVENT_FOCUS_OUT == type) {
+ } else if (ECORE_WL2_EVENT_FOCUS_OUT == type) {
SLOG(LOG_DEBUG, TAG_VCW, "@@@ Set background");
ret = vc_dbus_set_foreground(getpid(), false);
if (0 != ret) {
/* Register focus handler */
ecore_thread_main_loop_begin();
- g_focus_in_handler = ecore_event_handler_add(ECORE_WL_EVENT_FOCUS_IN, __focus_changed_cb, NULL);
- g_focus_out_handler = ecore_event_handler_add(ECORE_WL_EVENT_FOCUS_OUT, __focus_changed_cb, NULL);
+ g_focus_in_handler = ecore_event_handler_add(ECORE_WL2_EVENT_FOCUS_IN, __focus_changed_cb, NULL);
+ g_focus_out_handler = ecore_event_handler_add(ECORE_WL2_EVENT_FOCUS_OUT, __focus_changed_cb, NULL);
ecore_thread_main_loop_end();
char appid[1024] = {'\0',};
#include <aul.h>
#include <system_info.h>
-#include <Ecore_Wayland.h>
+#include <Ecore_Wl2.h>
#include "vc_cmd_db.h"
#include "vc_command.h"
#include "vc_config_mgr.h"
SLOG(LOG_DEBUG, TAG_VCW, "@@@ Focus changed");
int ret;
- if (ECORE_WL_EVENT_FOCUS_IN == type) {
+ if (ECORE_WL2_EVENT_FOCUS_IN == type) {
SLOG(LOG_DEBUG, TAG_VCW, "@@@ Set foreground");
ret = vc_widget_dbus_set_foreground(getpid(), true);
if (0 != ret) {
SLOG(LOG_ERROR, TAG_VCW, "[ERROR] Fail to set foreground (true) : %d", ret);
}
- } else if (ECORE_WL_EVENT_FOCUS_OUT == type) {
+ } else if (ECORE_WL2_EVENT_FOCUS_OUT == type) {
SLOG(LOG_DEBUG, TAG_VCW, "@@@ Set background");
ret = vc_widget_dbus_set_foreground(getpid(), false);
if (0 != ret) {
SLOG(LOG_INFO, TAG_VCW, "@@@ [Widget] add focus event handler");
if (NULL == g_focus_in_handler)
- g_focus_in_handler = ecore_event_handler_add(ECORE_WL_EVENT_FOCUS_IN, __focus_changed_cb, NULL);
+ g_focus_in_handler = ecore_event_handler_add(ECORE_WL2_EVENT_FOCUS_IN, __focus_changed_cb, NULL);
if (NULL == g_focus_out_handler)
- g_focus_out_handler = ecore_event_handler_add(ECORE_WL_EVENT_FOCUS_OUT, __focus_changed_cb, NULL);
+ g_focus_out_handler = ecore_event_handler_add(ECORE_WL2_EVENT_FOCUS_OUT, __focus_changed_cb, NULL);
return;
}
BuildRequires: pkgconfig(db-util)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(ecore)
-BuildRequires: pkgconfig(ecore-wayland)
+BuildRequires: pkgconfig(ecore-wl2)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libgum)