From 978c6cfa7b9d072167083c3d17ccc9f89f038c2d Mon Sep 17 00:00:00 2001 From: Yuta Doi Date: Wed, 18 Jan 2017 15:05:05 +0900 Subject: Update app-core and add sensord from: d86d0066b93cf402badc408de591e54d6db6c164 to : 73f688b07dab4d695cc1f7bee4eec6701500eab4 Add sensord because app-core needs sensord instead of sensor. Change-Id: I8f342c9dae12c27f730080edea57126bc39ffc1b Signed-off-by: Yuta Doi --- .../app-core/app-core.inc | 23 +- .../app-core/app-core_git.bb | 2 +- .../app-core/files/0001-hack-window-hide.patch | 133 +-- .../files/0002-remove-efl-appcore-efl.patch | 1041 +++++++------------- .../files/0003-remove-disused-package.patch | 206 ++++ .../files/remove-dlog-for-native-build.patch | 10 +- .../agl-demo-platform-plus-application-manager.bb | 3 +- .../sensord/files/0001-remove-linkerflags.patch | 15 + .../sensord/files/0002-Fix-libinstalldir.patch | 219 ++++ .../0003-remove_checking_libsystemd-daemon.patch | 13 + ...4-Removing-redundant-auto_rotation-events.patch | 117 +++ .../recipes-others/sensord/sensord-extraconf.inc | 5 + .../recipes-others/sensord/sensord.inc | 189 ++++ .../recipes-others/sensord/sensord_git.bb | 10 + 14 files changed, 1206 insertions(+), 780 deletions(-) create mode 100644 meta-application-manager/recipes-application-framework/app-core/files/0003-remove-disused-package.patch create mode 100644 meta-application-manager/recipes-others/sensord/files/0001-remove-linkerflags.patch create mode 100644 meta-application-manager/recipes-others/sensord/files/0002-Fix-libinstalldir.patch create mode 100644 meta-application-manager/recipes-others/sensord/files/0003-remove_checking_libsystemd-daemon.patch create mode 100644 meta-application-manager/recipes-others/sensord/files/0004-Removing-redundant-auto_rotation-events.patch create mode 100644 meta-application-manager/recipes-others/sensord/sensord-extraconf.inc create mode 100644 meta-application-manager/recipes-others/sensord/sensord.inc create mode 100644 meta-application-manager/recipes-others/sensord/sensord_git.bb diff --git a/meta-application-manager/recipes-application-framework/app-core/app-core.inc b/meta-application-manager/recipes-application-framework/app-core/app-core.inc index 2f4ad28..c6154ab 100644 --- a/meta-application-manager/recipes-application-framework/app-core/app-core.inc +++ b/meta-application-manager/recipes-application-framework/app-core/app-core.inc @@ -7,6 +7,7 @@ PV = "1.2" SRC_URI = " \ file://0001-hack-window-hide.patch \ file://0002-remove-efl-appcore-efl.patch \ + file://0003-remove-disused-package.patch \ " S = "${WORKDIR}/git" @@ -44,7 +45,7 @@ RDEPENDS = "" RDEPENDS_${PN}-efl += "glibc" #RDEPENDS of app-core-common-dev (${PN}-common-dev) -RDEPENDS_${PN}-common-dev += "sensor" +RDEPENDS_${PN}-common-dev += "sensord" RDEPENDS_${PN}-common-dev += "app-core-common" RDEPENDS_${PN}-common-dev += "vconf" RDEPENDS_${PN}-common-dev += "aul" @@ -61,13 +62,15 @@ DEPENDS = "" #DEPENDS of app-core DEPENDS += "librua" inherit tizen_cmake -DEPENDS += "tizen-platform-config" DEPENDS += "aul" DEPENDS += "dlog" inherit pkgconfig DEPENDS += "glib-2.0" -DEPENDS += "sensor" +DEPENDS += "sensord" DEPENDS += "vconf" +DEPENDS += "wayland" +DEPENDS += "pkgmgr-info" + do_prep() { cd ${S} @@ -92,7 +95,7 @@ do_compile() { unset DISPLAY LD_AS_NEEDED=1; export LD_AS_NEEDED ; - + _WITH_WAYLAND=ON cmake \ -DCMAKE_VERBOSE_MAKEFILE=ON \ @@ -105,9 +108,10 @@ do_compile() { -DCMAKE_SKIP_RPATH:BOOL=ON \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \ - ${EXTRA_OECMAKE} . \ - -Dwith_wayland=TRUE\ - -DENABLE_GTK=OFF + -D_WITH_WAYLAND:BOOL=${_WITH_WAYLAND} \ + -D_APPFW_FEATURE_BACKGROUND_MANAGEMENT:BOOL=${_APPFW_FEATURE_BACKGROUND_MANAGEMENT} \ + -DENABLE_GTK=OFF \ + ${EXTRA_OECMAKE} . make ${PARALLEL_MAKE} @@ -115,6 +119,7 @@ do_compile() { } +# -D_WITH_X11:BOOL=${_WITH_X11} do_install() { export RPM_BUILD_ROOT=${D} @@ -135,8 +140,6 @@ do_install() { rm -f ${D}${infodir}/dir find ${D} -regex ".*\.la$" | xargs rm -f -- find ${D} -regex ".*\.a$" | xargs rm -f -- - install -d ${D}${prefix}/lib/systemd/user/core-efl.target.wants - install -m0644 ${S}/packaging/core-efl-wayland.target ${D}${prefix}/lib/systemd/user/core-efl.target @@ -184,8 +187,6 @@ MANIFESTFILES_${PN}-efl = "app-core.manifest" app-core-common_files = "" app-core-common_files += "${prefix}/lib/libappcore-common.so.*" -app-core-common_files += "${prefix}/lib/systemd/user/core-efl.target" -app-core-common_files += "${prefix}/lib/systemd/user/core-efl.target.wants/" MANIFESTFILES_${PN}-common = "app-core.manifest" app-core-common-dev_files = "" diff --git a/meta-application-manager/recipes-application-framework/app-core/app-core_git.bb b/meta-application-manager/recipes-application-framework/app-core/app-core_git.bb index ba7ec7f..aa32189 100644 --- a/meta-application-manager/recipes-application-framework/app-core/app-core_git.bb +++ b/meta-application-manager/recipes-application-framework/app-core/app-core_git.bb @@ -4,7 +4,7 @@ PRIORITY = "10" LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" -SRC_URI += "git://review.tizen.org/platform/core/appfw/app-core;tag=d86d0066b93cf402badc408de591e54d6db6c164;nobranch=1" +SRC_URI += "git://review.tizen.org/platform/core/appfw/app-core;tag=73f688b07dab4d695cc1f7bee4eec6701500eab4;nobranch=1" BBCLASSEXTEND += " native " diff --git a/meta-application-manager/recipes-application-framework/app-core/files/0001-hack-window-hide.patch b/meta-application-manager/recipes-application-framework/app-core/files/0001-hack-window-hide.patch index 69e904d..06640cb 100644 --- a/meta-application-manager/recipes-application-framework/app-core/files/0001-hack-window-hide.patch +++ b/meta-application-manager/recipes-application-framework/app-core/files/0001-hack-window-hide.patch @@ -1,88 +1,107 @@ +diff --git a/src/appcore-efl.c b/src/appcore-efl.c +index b70ee32..559b6d3 100644 --- a/src/appcore-efl.c +++ b/src/appcore-efl.c -@@ -610,7 +610,7 @@ +@@ -769,21 +769,22 @@ static void __set_wm_rotation_support(unsigned int win, unsigned int set) static Eina_Bool __show_cb(void *data, int type, void *event) { - #ifdef WAYLAND -- Ecore_Wl_Event_Window_Activate *ev; -+ /*Ecore_Wl_Event_Window_Activate *ev; + #if defined(WAYLAND) +- Ecore_Wl_Event_Window_Show *ev; ++// Ecore_Wl_Event_Window_Show *ev; - ev = event; - -@@ -618,14 +618,14 @@ - { - // This is child window. Skip!!! - return ECORE_CALLBACK_PASS_ON; +- ev = event; +- if (ev->parent_win != 0) { +- /* This is child window. Skip!!! */ +- return ECORE_CALLBACK_PASS_ON; - } -+ }*/ ++// ev = event; ++// if (ev->parent_win != 0) { ++// /* This is child window. Skip!!! */ ++// return ECORE_CALLBACK_PASS_ON; ++// } -- _DBG("[EVENT_TEST][EVENT] GET SHOW EVENT!!!. WIN:%x\n", ev->win); +- _DBG("[EVENT_TEST][EVENT] GET SHOW EVENT!!!. WIN:%x, %d\n", ev->win, ev->data[0]); + _DBG("[EVENT_TEST][EVENT] GET SHOW EVENT!!!.\n"); -- if (!__exist_win((unsigned int)ev->win)) -+ /*if (!__exist_win((unsigned int)ev->win)) - __add_win((unsigned int)ev->win); ++/* + if (!__find_win((unsigned int)ev->win)) + __add_win((unsigned int)ev->win, (unsigned int)ev->data[0]); else -- __update_win((unsigned int)ev->win, FALSE); -+ __update_win((unsigned int)ev->win, FALSE);*/ + __update_win((unsigned int)ev->win, (unsigned int)ev->data[0], FALSE); +- ++*/ + #elif defined(X11) + Ecore_X_Event_Window_Show *ev; - __visibility_cb(data, type, event); - #else -@@ -661,14 +661,14 @@ +@@ -808,7 +809,7 @@ static Eina_Bool __show_cb(void *data, int type, void *event) static Eina_Bool __hide_cb(void *data, int type, void *event) { - #ifdef WAYLAND -- Ecore_Wl_Event_Window_Deactivate *ev; -+ //Ecore_Wl_Event_Window_Deactivate *ev; - int bvisibility = 0; + #if defined(WAYLAND) +- Ecore_Wl_Event_Window_Hide *ev; ++// Ecore_Wl_Event_Window_Hide *ev; + #elif defined(X11) + Ecore_X_Event_Window_Hide *ev; + #endif +@@ -816,8 +817,9 @@ static Eina_Bool __hide_cb(void *data, int type, void *event) -- ev = event; -+ //ev = event; + ev = event; - _DBG("[EVENT_TEST][EVENT] GET HIDE EVENT!!!. WIN:%x\n", ev->win); + _DBG("[EVENT_TEST][EVENT] GET HIDE EVENT!!!.\n"); -- if (__exist_win((unsigned int)ev->win)) { -+ /*if (__exist_win((unsigned int)ev->win)) { ++/* + if (__find_win((unsigned int)ev->win)) { __delete_win((unsigned int)ev->win); - bvisibility = __check_visible(); -@@ -677,7 +677,7 @@ - b_active = 0; +@@ -827,6 +829,7 @@ static Eina_Bool __hide_cb(void *data, int type, void *event) __do_app(AE_PAUSE, data, NULL); } -- } -+ }*/ - #else - Ecore_X_Event_Window_Hide *ev; - int bvisibility = 0; -@@ -704,12 +704,12 @@ + } ++*/ + + return ECORE_CALLBACK_RENEW; + } +@@ -834,10 +837,12 @@ static Eina_Bool __hide_cb(void *data, int type, void *event) + #if defined(WAYLAND) + static Eina_Bool __lower_cb(void *data, int type, void *event) + { ++/* + Ecore_Wl_Event_Window_Lower *ev; + ev = event; + if (!ev) return ECORE_CALLBACK_RENEW; +- _DBG("ECORE_WL_EVENT_WINDOW_LOWER window id:%u\n", ev->win); ++*/ ++ _DBG("ECORE_WL_EVENT_WINDOW_LOWER\n"); + appcore_group_lower(); + return ECORE_CALLBACK_RENEW; + } +@@ -846,10 +851,10 @@ static Eina_Bool __lower_cb(void *data, int type, void *event) static Eina_Bool __visibility_cb(void *data, int type, void *event) { - #ifdef WAYLAND -- Ecore_Wl_Event_Window_Activate *ev; -+ //Ecore_Wl_Event_Window_Activate *ev; + #if defined(WAYLAND) +- Ecore_Wl_Event_Window_Visibility_Change *ev; ++// Ecore_Wl_Event_Window_Visibility_Change *ev; int bvisibility = 0; - - ev = event; -+ //ev = event; - -- __update_win((unsigned int)ev->win, ev->fobscured); -+ //__update_win((unsigned int)ev->win, ev->fobscured); - #else +- __update_win((unsigned int)ev->win, 0, ev->fully_obscured); ++// ev = event; ++// __update_win((unsigned int)ev->win, 0, ev->fully_obscured); + #elif defined(X11) Ecore_X_Event_Window_Visibility_Change *ev; int bvisibility = 0; -@@ -777,10 +777,10 @@ +@@ -931,6 +936,7 @@ static void __add_climsg_cb(struct ui_priv *ui) { _ret_if(ui == NULL); - #ifdef WAYLAND -- ui->hshow = -+ /*ui->hshow = - ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_ACTIVATE, __show_cb, ui); + #if defined(WAYLAND) ++/* + ui->hshow = + ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_SHOW, __show_cb, ui); ui->hhide = -- ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_DEACTIVATE, __hide_cb, ui); -+ ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_DEACTIVATE, __hide_cb, ui);*/ - #else - atom_parent = ecore_x_atom_get("_E_PARENT_BORDER_WINDOW"); - if (!atom_parent) - +@@ -941,6 +947,7 @@ static void __add_climsg_cb(struct ui_priv *ui) + ui->hlower = + ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_LOWER, + __lower_cb, ui); ++*/ + #elif defined(X11) + ui->hshow = + ecore_event_handler_add(ECORE_X_EVENT_WINDOW_SHOW, __show_cb, ui); diff --git a/meta-application-manager/recipes-application-framework/app-core/files/0002-remove-efl-appcore-efl.patch b/meta-application-manager/recipes-application-framework/app-core/files/0002-remove-efl-appcore-efl.patch index c6ba8cf..2a2fa3d 100644 --- a/meta-application-manager/recipes-application-framework/app-core/files/0002-remove-efl-appcore-efl.patch +++ b/meta-application-manager/recipes-application-framework/app-core/files/0002-remove-efl-appcore-efl.patch @@ -1,88 +1,152 @@ ---- a/src/appcore-efl.c -+++ b/src/appcore-efl.c -@@ -30,19 +30,21 @@ +diff -ru a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt 2016-11-03 18:01:31.546096215 +0900 ++++ b/CMakeLists.txt 2016-12-16 14:49:37.370894113 +0900 +@@ -42,12 +42,12 @@ + SET(HEADERS_common appcore-common.h) + + INCLUDE(FindPkgConfig) +-SET(APPCORE_PKG_CHECK_MODULES "gio-2.0 vconf sensor aul dlog ecore") ++SET(APPCORE_PKG_CHECK_MODULES "gio-2.0 vconf sensor aul dlog") + IF(_WITH_X11) +- SET(APPCORE_PKG_CHECK_MODULES "${APPCORE_PKG_CHECK_MODULES} x11 eina ecore-x") ++ SET(APPCORE_PKG_CHECK_MODULES "${APPCORE_PKG_CHECK_MODULES} x11") + ENDIF(_WITH_X11) + IF(_WITH_WAYLAND) +- SET(APPCORE_PKG_CHECK_MODULES "${APPCORE_PKG_CHECK_MODULES} ecore-wayland wayland-client tizen-extension-client wayland-tbm-client") ++ SET(APPCORE_PKG_CHECK_MODULES "${APPCORE_PKG_CHECK_MODULES} wayland-client tizen-extension-client wayland-tbm-client") + ENDIF(_WITH_WAYLAND) + + +@@ -85,9 +85,9 @@ + SET(HEADERS_efl appcore-efl.h) + + INCLUDE(FindPkgConfig) +-SET(APPCORE_PKG_CHECK_MODULES2 "elementary dlog ecore gobject-2.0 glib-2.0 aul pkgmgr-info ttrace") ++SET(APPCORE_PKG_CHECK_MODULES2 "dlog gobject-2.0 glib-2.0 aul pkgmgr-info ttrace") + IF(_WITH_X11) +- SET(APPCORE_PKG_CHECK_MODULES2 "${APPCORE_PKG_CHECK_MODULES2} ecore-x") ++ SET(APPCORE_PKG_CHECK_MODULES2 "${APPCORE_PKG_CHECK_MODULES2}") + ENDIF(_WITH_X11) + + pkg_check_modules(pkg_efl REQUIRED ${APPCORE_PKG_CHECK_MODULES2}) +diff -ru a/TC/unit/utc_ApplicationFW_appcore_efl_main_func.c b/TC/unit/utc_ApplicationFW_appcore_efl_main_func.c +--- a/TC/unit/utc_ApplicationFW_appcore_efl_main_func.c 2016-11-03 18:01:31.546096215 +0900 ++++ b/TC/unit/utc_ApplicationFW_appcore_efl_main_func.c 2016-12-16 14:50:24.074894725 +0900 +@@ -19,7 +19,7 @@ + * + */ + #include +-#include ++//#include + #include + + static void startup(void); +@@ -52,7 +52,7 @@ + + static int app_reset(bundle *b, void *data) + { +- elm_exit(); ++// elm_exit(); + return 0; + } + +diff -ru a/appcore-efl.pc.in b/appcore-efl.pc.in +--- a/appcore-efl.pc.in 2016-11-03 18:01:31.546096215 +0900 ++++ b/appcore-efl.pc.in 2016-12-16 14:51:12.290895357 +0900 +@@ -8,7 +8,7 @@ + Name: app-core-efl + Description: SAMSUNG Linux platform efl application library + Version: @VERSION@ +-Requires.private: elementary dlog ++Requires.private: dlog + Requires: appcore-common + Libs: -L${libdir} -lappcore-efl + Cflags: -I${includedir} -I${includedir}/appcore +diff -ru a/src/appcore-efl.c b/src/appcore-efl.c +--- a/src/appcore-efl.c 2016-12-16 14:54:33.602897995 +0900 ++++ b/src/appcore-efl.c 2016-12-16 14:44:35.214890154 +0900 +@@ -25,20 +25,22 @@ #include - #ifdef WAYLAND + #if defined(WAYLAND) -#include +//#include - #endif - - #ifdef X11 + #include + #include + #include + #elif defined(X11) #include #include -#include +//#include #endif --#include --#include --#include --#include +/* -+ * #include -+ * #include -+ * #include -+ * #include -+ */ + #include + #include + #include + #include ++*/ #include #include #include -@@ -83,12 +85,12 @@ +@@ -60,15 +62,15 @@ const char *name; enum app_state state; - Ecore_Event_Handler *hshow; - Ecore_Event_Handler *hhide; - Ecore_Event_Handler *hvchange; ++// Ecore_Event_Handler *hshow; ++// Ecore_Event_Handler *hhide; ++// Ecore_Event_Handler *hvchange; + #if defined(WAYLAND) +- Ecore_Event_Handler *hlower; ++// Ecore_Event_Handler *hlower; + #endif - Ecore_Event_Handler *hcmsg; /* WM_ROTATE */ -+/* Ecore_Event_Handler *hshow; -+ * Ecore_Event_Handler *hhide; -+ Ecore_Event_Handler *hvchange; */ +// Ecore_Event_Handler *hcmsg; /* WM_ROTATE */ -- Ecore_Timer *mftimer; /* Ecore Timer for memory flushing */ -+// Ecore_Timer *mftimer; /* Ecore Timer for memory flushing */ +- Ecore_Timer *mftimer; /* Ecore Timer for memory flushing */ ++// Ecore_Timer *mftimer; /* Ecore Timer for memory flushing */ - struct appcore_ops *ops; - void (*mfcb) (void); /* Memory Flushing Callback */ -@@ -129,7 +131,7 @@ + #ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT + struct appcore *app_core; +@@ -111,7 +111,7 @@ static const char *_as_name[] = { + [AS_DYING] = "DYING", }; +-static bool b_active = FALSE; ++//static bool b_active = FALSE; + static bool first_launch = TRUE; + + struct win_node { +@@ -123,7 +125,7 @@ + #if defined(X11) static struct ui_wm_rotate wm_rotate; + #endif -static Eina_Bool __visibility_cb(void *data, int type, void *event); +//static Eina_Bool __visibility_cb(void *data, int type, void *event); + static GSList *g_winnode_list; - static inline int send_int(int fd, int val) - { -@@ -282,16 +284,16 @@ - GSList *g_winnode_list = NULL; + static struct wl_display *dsp; +@@ -257,6 +259,7 @@ + #endif #if defined(MEMORY_FLUSH_ACTIVATE) --static Eina_Bool __appcore_memory_flush_cb(void *data) --{ -- struct ui_priv *ui = (struct ui_priv *)data; -- -- appcore_flush_memory(); -- ui->mftimer = NULL; -- -- return ECORE_CALLBACK_CANCEL; --} -- -+/* static Eina_Bool __appcore_memory_flush_cb(void *data) -+ * { -+ * struct ui_priv *ui = (struct ui_priv *)data; -+ * -+ * appcore_flush_memory(); -+ * ui->mftimer = NULL; -+ * -+ * return ECORE_CALLBACK_CANCEL; -+ * } -+ */ ++/* + static Eina_Bool __appcore_memory_flush_cb(void *data) + { + struct ui_priv *ui = (struct ui_priv *)data; +@@ -274,6 +277,7 @@ + + return ECORE_CALLBACK_CANCEL; + } ++*/ + static int __appcore_low_memory_post_cb(struct ui_priv *ui) { - if (ui->state == AS_PAUSED) { -@@ -305,15 +307,16 @@ +@@ -287,15 +291,17 @@ static void __appcore_timer_add(struct ui_priv *ui) { @@ -92,591 +156,156 @@ static void __appcore_timer_del(struct ui_priv *ui) { -- if (ui->mftimer) { -- ecore_timer_del(ui->mftimer); -- ui->mftimer = NULL; -- } -+/* if (ui->mftimer) { -+ * ecore_timer_del(ui->mftimer); -+ * ui->mftimer = NULL; -+ * } -+ */ ++/* + if (ui->mftimer) { + ecore_timer_del(ui->mftimer); + ui->mftimer = NULL; + } ++*/ } #else -@@ -331,7 +334,7 @@ +@@ -313,25 +319,27 @@ + + #endif + ++#if 0 static void __appcore_efl_memory_flush_cb(void) { _DBG("[APP %d] __appcore_efl_memory_flush_cb()", _pid); -- elm_cache_all_flush(); -+// elm_cache_all_flush(); + elm_cache_all_flush(); } ++#endif + #if defined(WAYLAND) + static void wl_raise_win(void) + { +- Ecore_Wl_Window *win; ++// Ecore_Wl_Window *win; + unsigned int win_id = appcore_get_main_window(); + + _DBG("Raise window: %d", win_id); +- win = ecore_wl_window_find(win_id); +- ecore_wl_window_activate(win); ++// win = ecore_wl_window_find(win_id); ++// ecore_wl_window_activate(win); + } + + static void wl_pause_win(void) + { +- Ecore_Wl_Window *win; ++// Ecore_Wl_Window *win; + GSList *wlist = g_winnode_list; + struct win_node *entry = NULL; + +@@ -338,8 +344,8 @@ + entry = wlist->data; + + _DBG("Pause window: %d", entry->win); +- win = ecore_wl_window_find(entry->win); +- ecore_wl_window_iconified_set(win, EINA_TRUE); ++// win = ecore_wl_window_find(entry->win); ++// ecore_wl_window_iconified_set(win, EINA_TRUE); + + wlist = wlist->next; + } +@@ -379,7 +385,7 @@ - static void __do_app(enum app_event event, void *data, bundle * b) -@@ -360,7 +363,7 @@ if (event == AE_TERMINATE) { _DBG("[APP %d] TERMINATE", _pid); - ui->state = AS_DYING; - elm_exit(); +// elm_exit(); + aul_status_update(STATUS_DYING); return; } +@@ -532,7 +534,7 @@ static void __do_app(enum app_event event, void *data, bundle * b) + _DBG("[APP %d] is paused. TERMINATE", _pid); + ui->state = AS_DYING; + aul_status_update(STATUS_DYING); +- elm_exit(); ++// elm_exit(); + } else if (ui->state == AS_RUNNING) { + _DBG("[APP %d] is running.", _pid); + } else { +@@ -550,6 +554,7 @@ static struct ui_ops efl_ops = { + .cb_app = __do_app, + }; -@@ -543,236 +546,238 @@ ++#if 0 + static bool __check_visible(void) + { + GSList *iter = NULL; +@@ -709,8 +716,10 @@ static bool __update_win(unsigned int win, unsigned int surf, bool bfobscured) + return TRUE; } - - /* WM_ROTATE */ --#ifdef X11 --static Ecore_X_Atom _WM_WINDOW_ROTATION_SUPPORTED = 0; --static Ecore_X_Atom _WM_WINDOW_ROTATION_CHANGE_REQUEST = 0; -- --static int __check_wm_rotation_support(void) --{ -- _DBG("Disable window manager rotation"); -- return -1; -- -- Ecore_X_Window root, win, win2; -- int ret; -- -- if (!_WM_WINDOW_ROTATION_SUPPORTED) { -- _WM_WINDOW_ROTATION_SUPPORTED = -- ecore_x_atom_get("_E_WINDOW_ROTATION_SUPPORTED"); -- } -- -- if (!_WM_WINDOW_ROTATION_CHANGE_REQUEST) { -- _WM_WINDOW_ROTATION_CHANGE_REQUEST = -- ecore_x_atom_get("_E_WINDOW_ROTATION_CHANGE_REQUEST"); -- } -- -- root = ecore_x_window_root_first_get(); -- ret = ecore_x_window_prop_xid_get(root, -- _WM_WINDOW_ROTATION_SUPPORTED, -- ECORE_X_ATOM_WINDOW, -- &win, 1); -- if ((ret == 1) && (win)) -- { -- ret = ecore_x_window_prop_xid_get(win, -- _WM_WINDOW_ROTATION_SUPPORTED, -- ECORE_X_ATOM_WINDOW, -- &win2, 1); -- if ((ret == 1) && (win2 == win)) -- return 0; -- } -- -- return -1; --} -- --static void __set_wm_rotation_support(unsigned int win, unsigned int set) --{ -- GSList *iter = NULL; -- struct win_node *entry = NULL; -- -- if (0 == win) { -- for (iter = g_winnode_list; iter != NULL; iter = g_slist_next(iter)) { -- entry = iter->data; -- if (entry->win) { -- ecore_x_window_prop_card32_set(entry->win, -- _WM_WINDOW_ROTATION_SUPPORTED, -- &set, 1); -- } -- } -- } else { -- ecore_x_window_prop_card32_set(win, -- _WM_WINDOW_ROTATION_SUPPORTED, -- &set, 1); -- } --} -- --Ecore_X_Atom atom_parent; --#endif -- --static Eina_Bool __show_cb(void *data, int type, void *event) --{ --#ifdef WAYLAND -- /*Ecore_Wl_Event_Window_Activate *ev; -- -- ev = event; -- -- if (ev->parent_win != 0) -- { -- // This is child window. Skip!!! -- return ECORE_CALLBACK_PASS_ON; -- }*/ -- -- _DBG("[EVENT_TEST][EVENT] GET SHOW EVENT!!!.\n"); -- -- /*if (!__exist_win((unsigned int)ev->win)) -- __add_win((unsigned int)ev->win); -- else -- __update_win((unsigned int)ev->win, FALSE);*/ -- -- __visibility_cb(data, type, event); --#else -- Ecore_X_Event_Window_Show *ev; -- int ret; -- Ecore_X_Window parent; -- -- ev = event; -- -- ret = ecore_x_window_prop_window_get(ev->win, atom_parent, &parent, 1); -- if (ret != 1) -- { -- // This is child window. Skip!!! -- return ECORE_CALLBACK_PASS_ON; -- } -- -- _DBG("[EVENT_TEST][EVENT] GET SHOW EVENT!!!. WIN:%x\n", ev->win); -- -- if (!__exist_win((unsigned int)ev->win)) { -- /* WM_ROTATE */ -- if ((priv.wm_rot_supported) && (1 == priv.rot_started)) { -- __set_wm_rotation_support(ev->win, 1); -- } -- __add_win((unsigned int)ev->win); -- } -- else -- __update_win((unsigned int)ev->win, FALSE); --#endif -- -- return ECORE_CALLBACK_RENEW; --} -- --static Eina_Bool __hide_cb(void *data, int type, void *event) --{ --#ifdef WAYLAND -- //Ecore_Wl_Event_Window_Deactivate *ev; -- int bvisibility = 0; -- -- //ev = event; -- -- _DBG("[EVENT_TEST][EVENT] GET HIDE EVENT!!!.\n"); -- -- /*if (__exist_win((unsigned int)ev->win)) { -- __delete_win((unsigned int)ev->win); -- -- bvisibility = __check_visible(); -- if (!bvisibility && b_active == 1) { -- _DBG(" Go to Pasue state \n"); -- b_active = 0; -- __do_app(AE_PAUSE, data, NULL); -- } -- }*/ --#else -- Ecore_X_Event_Window_Hide *ev; -- int bvisibility = 0; -- -- ev = event; -- -- _DBG("[EVENT_TEST][EVENT] GET HIDE EVENT!!!. WIN:%x\n", ev->win); -- -- if (__exist_win((unsigned int)ev->win)) { -- __delete_win((unsigned int)ev->win); -- -- bvisibility = __check_visible(); -- if (!bvisibility && b_active == 1) { -- _DBG(" Go to Pasue state \n"); -- b_active = 0; -- __do_app(AE_PAUSE, data, NULL); -- } -- } --#endif -- -- return ECORE_CALLBACK_RENEW; --} -- --static Eina_Bool __visibility_cb(void *data, int type, void *event) --{ --#ifdef WAYLAND -- //Ecore_Wl_Event_Window_Activate *ev; -- int bvisibility = 0; -- -- //ev = event; -- -- //__update_win((unsigned int)ev->win, ev->fobscured); --#else -- Ecore_X_Event_Window_Visibility_Change *ev; -- int bvisibility = 0; -- -- ev = event; -- -- __update_win((unsigned int)ev->win, ev->fully_obscured); --#endif -- bvisibility = __check_visible(); -- -- if (bvisibility && b_active == 0) { -- _DBG(" Go to Resume state\n"); -- b_active = 1; -- __do_app(AE_RESUME, data, NULL); -- -- } else if (!bvisibility && b_active == 1) { -- _DBG(" Go to Pasue state \n"); -- b_active = 0; -- __do_app(AE_PAUSE, data, NULL); -- } else -- _DBG(" No change state \n"); -- -- return ECORE_CALLBACK_RENEW; -- --} -- --#ifdef X11 -+//#ifdef X11 -+/* -+ * static Ecore_X_Atom _WM_WINDOW_ROTATION_SUPPORTED = 0; -+ * static Ecore_X_Atom _WM_WINDOW_ROTATION_CHANGE_REQUEST = 0; -+ * -+ * static int __check_wm_rotation_support(void) -+ * { -+ * _DBG("Disable window manager rotation"); -+ * return -1; -+ * -+ * Ecore_X_Window root, win, win2; -+ * int ret; -+ * -+ * if (!_WM_WINDOW_ROTATION_SUPPORTED) { -+ * _WM_WINDOW_ROTATION_SUPPORTED = -+ * ecore_x_atom_get("_E_WINDOW_ROTATION_SUPPORTED"); -+ * } -+ * -+ * if (!_WM_WINDOW_ROTATION_CHANGE_REQUEST) { -+ * _WM_WINDOW_ROTATION_CHANGE_REQUEST = -+ * ecore_x_atom_get("_E_WINDOW_ROTATION_CHANGE_REQUEST"); -+ * } -+ * -+ * root = ecore_x_window_root_first_get(); -+ * ret = ecore_x_window_prop_xid_get(root, -+ * _WM_WINDOW_ROTATION_SUPPORTED, -+ * ECORE_X_ATOM_WINDOW, -+ * &win, 1); -+ * if ((ret == 1) && (win)) -+ * { -+ * ret = ecore_x_window_prop_xid_get(win, -+ * _WM_WINDOW_ROTATION_SUPPORTED, -+ * ECORE_X_ATOM_WINDOW, -+ * &win2, 1); -+ * if ((ret == 1) && (win2 == win)) -+ * return 0; -+ * } -+ * -+ * return -1; -+ * } -+ * -+ * static void __set_wm_rotation_support(unsigned int win, unsigned int set) -+ * { -+ * GSList *iter = NULL; -+ * struct win_node *entry = NULL; -+ * -+ * if (0 == win) { -+ * for (iter = g_winnode_list; iter != NULL; iter = g_slist_next(iter)) { -+ * entry = iter->data; -+ * if (entry->win) { -+ * ecore_x_window_prop_card32_set(entry->win, -+ * _WM_WINDOW_ROTATION_SUPPORTED, -+ * &set, 1); -+ * } -+ * } -+ * } else { -+ * ecore_x_window_prop_card32_set(win, -+ * _WM_WINDOW_ROTATION_SUPPORTED, * -+ * &set, 1); -+ * } -+ * } -+ * -+ * Ecore_X_Atom atom_parent; + #endif +#endif -+ -+/* static Eina_Bool __show_cb(void *data, int type, void *event) -+ * { -+ * #ifdef WAYLAND -+ * Ecore_Wl_Event_Window_Activate *ev; -+ * -+ * ev = event; -+ * -+ * if (ev->parent_win != 0) -+ * { -+ * // This is child window. Skip!!! -+ * return ECORE_CALLBACK_PASS_ON; -+ * } -+ * -+ * _DBG("[EVENT_TEST][EVENT] GET SHOW EVENT!!!.\n"); -+ * -+ * if (!__exist_win((unsigned int)ev->win)) -+ * __add_win((unsigned int)ev->win); -+ * else -+ * __update_win((unsigned int)ev->win, FALSE); -+ * -+ * __visibility_cb(data, type, event); -+ * #else -+ * Ecore_X_Event_Window_Show *ev; -+ * int ret; -+ * Ecore_X_Window parent; -+ * -+ * ev = event; -+ * -+ * ret = ecore_x_window_prop_window_get(ev->win, atom_parent, &parent, 1); -+ * if (ret != 1) -+ * { -+ * // This is child window. Skip!!! -+ * return ECORE_CALLBACK_PASS_ON; -+ * } -+ * -+ * _DBG("[EVENT_TEST][EVENT] GET SHOW EVENT!!!. WIN:%x\n", ev->win); -+ */ -+// if (!__exist_win((unsigned int)ev->win)) { -+// /* WM_ROTATE */ -+/* if ((priv.wm_rot_supported) && (1 == priv.rot_started)) { -+ * __set_wm_rotation_support(ev->win, 1); -+ * } -+ * __add_win((unsigned int)ev->win); -+ * } -+ * else -+ * __update_win((unsigned int)ev->win, FALSE); -+ * #endif -+ * -+ * return ECORE_CALLBACK_RENEW; -+ * } -+ */ -+/* static Eina_Bool __hide_cb(void *data, int type, void *event) -+ * { -+ * #ifdef WAYLAND -+ * //Ecore_Wl_Event_Window_Deactivate *ev; -+ * int bvisibility = 0; -+ * -+ * //ev = event; -+ * -+ * _DBG("[EVENT_TEST][EVENT] GET HIDE EVENT!!!.\n"); -+ * -+ * if (__exist_win((unsigned int)ev->win)) { -+ * __delete_win((unsigned int)ev->win); -+ * -+ * bvisibility = __check_visible(); -+ * if (!bvisibility && b_active == 1) { -+ * _DBG(" Go to Pasue state \n"); -+ * b_active = 0; -+ * __do_app(AE_PAUSE, data, NULL); -+ * } -+ * } -+ * #else -+ * Ecore_X_Event_Window_Hide *ev; -+ * int bvisibility = 0; -+ * -+ * ev = event; -+ * -+ * _DBG("[EVENT_TEST][EVENT] GET HIDE EVENT!!!. WIN:%x\n", ev->win); -+ * -+ * if (__exist_win((unsigned int)ev->win)) { -+ * __delete_win((unsigned int)ev->win); -+ * -+ * bvisibility = __check_visible(); -+ * if (!bvisibility && b_active == 1) { -+ * _DBG(" Go to Pasue state \n"); -+ * b_active = 0; -+ * __do_app(AE_PAUSE, data, NULL); -+ * } -+ * } -+ * #endif -+ * -+ * return ECORE_CALLBACK_RENEW; -+ * } -+ */ -+/* static Eina_Bool __visibility_cb(void *data, int type, void *event) -+ * { -+ * #ifdef WAYLAND -+ * //Ecore_Wl_Event_Window_Activate *ev; -+ * int bvisibility = 0; -+ * -+ * //ev = event; -+ * -+ * //__update_win((unsigned int)ev->win, ev->fobscured); -+ * #else -+ * Ecore_X_Event_Window_Visibility_Change *ev; -+ * int bvisibility = 0; -+ * -+ * ev = event; -+ * -+ * __update_win((unsigned int)ev->win, ev->fully_obscured); -+ * #endif -+ * bvisibility = __check_visible(); -+ * -+ * if (bvisibility && b_active == 0) { -+ * _DBG(" Go to Resume state\n"); -+ * b_active = 1; -+ * __do_app(AE_RESUME, data, NULL); -+ * -+ * } else if (!bvisibility && b_active == 1) { -+ * _DBG(" Go to Pasue state \n"); -+ * b_active = 0; -+ * __do_app(AE_PAUSE, data, NULL); -+ * } else -+ * _DBG(" No change state \n"); -+ * -+ * return ECORE_CALLBACK_RENEW; -+ * -+ * } -+ */ -+//#ifdef X11 + /* WM_ROTATE */ --static Eina_Bool __cmsg_cb(void *data, int type, void *event) --{ -- struct ui_priv *ui = (struct ui_priv *)data; -- Ecore_X_Event_Client_Message *e = event; -- -- if (!ui) return ECORE_CALLBACK_PASS_ON; -- if (e->format != 32) return ECORE_CALLBACK_PASS_ON; -- if (e->message_type == _WM_WINDOW_ROTATION_CHANGE_REQUEST) { -- if ((0 == ui->wm_rot_supported) || -- (0 == ui->rot_started) || -- (NULL == ui->rot_cb)) { -- return ECORE_CALLBACK_PASS_ON; -- } -- -- enum appcore_rm rm; -- switch (e->data.l[1]) -- { -- case 0: rm = APPCORE_RM_PORTRAIT_NORMAL; break; -- case 90: rm = APPCORE_RM_LANDSCAPE_REVERSE; break; -- case 180: rm = APPCORE_RM_PORTRAIT_REVERSE; break; -- case 270: rm = APPCORE_RM_LANDSCAPE_NORMAL; break; -- default: rm = APPCORE_RM_UNKNOWN; break; -- } -- -- ui->rot_mode = rm; -- -- if (APPCORE_RM_UNKNOWN != rm) { -- ui->rot_cb(rm, ui->rot_cb_data); -- } -- } -- -- return ECORE_CALLBACK_PASS_ON; --} --#endif -- -+/* static Eina_Bool __cmsg_cb(void *data, int type, void *event) -+ * { -+ * struct ui_priv *ui = (struct ui_priv *)data; -+ * Ecore_X_Event_Client_Message *e = event; -+ * -+ * if (!ui) return ECORE_CALLBACK_PASS_ON; -+ * if (e->format != 32) return ECORE_CALLBACK_PASS_ON; -+ * if (e->message_type == _WM_WINDOW_ROTATION_CHANGE_REQUEST) { -+ * if ((0 == ui->wm_rot_supported) || -+ * (0 == ui->rot_started) || -+ * (NULL == ui->rot_cb)) { -+ * return ECORE_CALLBACK_PASS_ON; -+ * } -+ * -+ * enum appcore_rm rm; -+ * switch (e->data.l[1]) -+ * { -+ * case 0: rm = APPCORE_RM_PORTRAIT_NORMAL; break; -+ * case 90: rm = APPCORE_RM_LANDSCAPE_REVERSE; break; -+ * case 180: rm = APPCORE_RM_PORTRAIT_REVERSE; break; -+ * case 270: rm = APPCORE_RM_LANDSCAPE_NORMAL; break; -+ * default: rm = APPCORE_RM_UNKNOWN; break; -+ * } -+ * -+ * ui->rot_mode = rm; -+ * -+ * if (APPCORE_RM_UNKNOWN != rm) { -+ * ui->rot_cb(rm, ui->rot_cb_data); -+ * } -+ * } -+ * -+ * return ECORE_CALLBACK_PASS_ON; -+ * } -+ * -+ * #endif -+ */ ++#if 0 /* remove-efl */ + #ifdef X11 + static Ecore_X_Atom _WM_WINDOW_ROTATION_SUPPORTED = 0; + static Ecore_X_Atom _WM_WINDOW_ROTATION_CHANGE_REQUEST = 0; +@@ -931,6 +938,7 @@ + return ECORE_CALLBACK_PASS_ON; + } + #endif ++#endif /* remove-efl */ + static void __add_climsg_cb(struct ui_priv *ui) { - _ret_if(ui == NULL); -@@ -782,25 +787,25 @@ +@@ -949,6 +957,7 @@ + __lower_cb, ui); + */ + #elif defined(X11) ++#if 0 /* remove-efl */ + ui->hshow = + ecore_event_handler_add(ECORE_X_EVENT_WINDOW_SHOW, __show_cb, ui); ui->hhide = - ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_DEACTIVATE, __hide_cb, ui);*/ - #else -- atom_parent = ecore_x_atom_get("_E_PARENT_BORDER_WINDOW"); -- if (!atom_parent) -- { -- // Do Error Handling -- } -- -- ui->hshow = -- ecore_event_handler_add(ECORE_X_EVENT_WINDOW_SHOW, __show_cb, ui); -- ui->hhide = -- ecore_event_handler_add(ECORE_X_EVENT_WINDOW_HIDE, __hide_cb, ui); -- ui->hvchange = -- ecore_event_handler_add(ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE, -- __visibility_cb, ui); -- -+/* atom_parent = ecore_x_atom_get("_E_PARENT_BORDER_WINDOW"); -+ * if (!atom_parent) -+ * { -+ * // Do Error Handling -+ * } -+ * -+ * ui->hshow = -+ * ecore_event_handler_add(ECORE_X_EVENT_WINDOW_SHOW, __show_cb, ui); -+ * ui->hhide = -+ * ecore_event_handler_add(ECORE_X_EVENT_WINDOW_HIDE, __hide_cb, ui); -+ * ui->hvchange = -+ * ecore_event_handler_add(ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE, -+ * __visibility_cb, ui); -+ */ +@@ -956,11 +965,14 @@ + ui->hvchange = + ecore_event_handler_add(ECORE_X_EVENT_WINDOW_VISIBILITY_CHANGE, + __visibility_cb, ui); ++#endif /* remove-efl */ + /* Add client message callback for WM_ROTATE */ - if(!__check_wm_rotation_support()) - { -- ui->hcmsg = -- ecore_event_handler_add(ECORE_X_EVENT_CLIENT_MESSAGE, __cmsg_cb, ui); -+/* ui->hcmsg = -+ ecore_event_handler_add(ECORE_X_EVENT_CLIENT_MESSAGE, __cmsg_cb, ui); */ + if (!__check_wm_rotation_support()) { ++#if 0 /* remove-efl */ + ui->hcmsg = ecore_event_handler_add(ECORE_X_EVENT_CLIENT_MESSAGE, + __cmsg_cb, ui); ++#endif /* remove-efl */ ui->wm_rot_supported = 1; appcore_set_wm_rotation(&wm_rotate); } -@@ -819,30 +824,30 @@ - } - +@@ -986,19 +998,19 @@ + #if !(GLIB_CHECK_VERSION(2, 36, 0)) g_type_init(); + #endif - elm_init(*argc, *argv); +// elm_init(*argc, *argv); hwacc = getenv("HWACC"); - - if(hwacc == NULL) { -- _DBG("elm_config_preferred_engine_set is not called"); -+// _DBG("elm_config_preferred_engine_set is not called"); - } else if(strcmp(hwacc, "USE") == 0) { - #ifdef WAYLAND -- elm_config_preferred_engine_set("wayland_egl"); -- _DBG("elm_config_preferred_engine_set : wayland_egl"); -+// elm_config_preferred_engine_set("wayland_egl"); -+// _DBG("elm_config_preferred_engine_set : wayland_egl"); - #else -- elm_config_preferred_engine_set("opengl_x11"); -- _DBG("elm_config_preferred_engine_set : opengl_x11"); -+// elm_config_preferred_engine_set("opengl_x11"); -+// _DBG("elm_config_preferred_engine_set : opengl_x11"); - #endif - } else if(strcmp(hwacc, "NOT_USE") == 0) { - #ifdef WAYLAND -- elm_config_preferred_engine_set("wayland_shm"); -- _DBG("elm_config_preferred_engine_set : wayland_shm"); -+// elm_config_preferred_engine_set("wayland_shm"); -+// _DBG("elm_config_preferred_engine_set : wayland_shm"); - #else -- elm_config_preferred_engine_set("software_x11"); -- _DBG("elm_config_preferred_engine_set : software_x11"); -+// elm_config_preferred_engine_set("software_x11"); -+// _DBG("elm_config_preferred_engine_set : software_x11"); - #endif + if (hwacc == NULL) { +- _DBG("elm_config_accel_preference_set is not called"); ++// _DBG("elm_config_accel_preference_set is not called"); + } else if (strcmp(hwacc, "USE") == 0) { +- elm_config_accel_preference_set("hw"); +- _DBG("elm_config_accel_preference_set : hw"); ++// elm_config_accel_preference_set("hw"); ++// _DBG("elm_config_accel_preference_set : hw"); + } else if (strcmp(hwacc, "NOT_USE") == 0) { +- elm_config_accel_preference_set("none"); +- _DBG("elm_config_accel_preference_set : none"); ++// elm_config_accel_preference_set("none"); ++// _DBG("elm_config_accel_preference_set : none"); } else { -- _DBG("elm_config_preferred_engine_set is not called"); -+// _DBG("elm_config_preferred_engine_set is not called"); +- _DBG("elm_config_accel_preference_set is not called"); ++// _DBG("elm_config_accel_preference_set is not called"); } r = appcore_init(ui->name, &efl_ops, *argc, *argv); -@@ -875,16 +880,16 @@ - if (ui->ops && ui->ops->terminate) - ui->ops->terminate(ui->ops->data); +@@ -1069,21 +1081,21 @@ + + ui->state = AS_DYING; - if (ui->hshow) - ecore_event_handler_del(ui->hshow); @@ -684,45 +313,114 @@ - ecore_event_handler_del(ui->hhide); - if (ui->hvchange) - ecore_event_handler_del(ui->hvchange); -- -+/* if (ui->hshow) -+ * ecore_event_handler_del(ui->hshow); -+ * if (ui->hhide) -+ * ecore_event_handler_del(ui->hhide); -+ * if (ui->hvchange) -+ * ecore_event_handler_del(ui->hvchange); -+ */ ++// if (ui->hshow) ++// ecore_event_handler_del(ui->hshow); ++// if (ui->hhide) ++// ecore_event_handler_del(ui->hhide); ++// if (ui->hvchange) ++// ecore_event_handler_del(ui->hvchange); + #if defined(WAYLAND) +- if (ui->hlower) +- ecore_event_handler_del(ui->hlower); ++// if (ui->hlower) ++// ecore_event_handler_del(ui->hlower); + #endif + __appcore_timer_del(ui); -- elm_shutdown(); -+// elm_shutdown(); + /* Check the launchpad-loader case */ +- while (elm_shutdown() > 0); ++// while (elm_shutdown() > 0); } static int __set_data(struct ui_priv *ui, const char *name, -@@ -913,7 +918,7 @@ +@@ -1111,7 +1123,7 @@ + _retv_if(ui->name == NULL, -1); ui->ops = ops; - - ui->mfcb = __appcore_efl_memory_flush_cb; +// ui->mfcb = __appcore_efl_memory_flush_cb; - _pid = getpid(); -@@ -1025,7 +1030,7 @@ - return -1; - } + /* WM_ROTATE */ +@@ -1123,8 +1135,8 @@ + + #ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT + ui->app_core = NULL; +- ui->prepare_to_suspend = __appcore_efl_prepare_to_suspend; +- ui->exit_from_suspend = __appcore_efl_exit_from_suspend; ++// ui->prepare_to_suspend = __appcore_efl_prepare_to_suspend; ++// ui->exit_from_suspend = __appcore_efl_exit_from_suspend; + #endif + + return 0; +@@ -1247,7 +1259,7 @@ + r = appcore_efl_init(name, argc, argv, ops); + _retv_if(r == -1, -1); - elm_run(); +// elm_run(); - aul_status_update(STATUS_DYING); + appcore_efl_fini(); + +@@ -1272,27 +1284,31 @@ EXPORT_API int appcore_set_preinit_window_name(const char *win_name) + EXPORT_API int appcore_set_preinit_window_name(const char *win_name) + { + int ret = -1; +- void *preinit_window = NULL; +- const Evas *e = NULL; ++// void *preinit_window = NULL; ++// const Evas *e = NULL; + + if (!win_name) { + _ERR("invalid parameter"); + return ret; + } + ++/* + preinit_window = elm_win_precreated_object_get(); + if (!preinit_window) { + _ERR("Failed to get preinit window"); + return ret; + } ++*/ - ---- a/src/appcore-rotation.c -+++ b/src/appcore-rotation.c -@@ -26,25 +26,25 @@ ++/* + e = evas_object_evas_get((const Evas_Object *)preinit_window); + if (e) { + Ecore_Evas *ee = ecore_evas_ecore_evas_get(e); + if (ee) { + ecore_evas_name_class_set(ee, win_name, win_name); + ret = 0; + } + } ++*/ + + return ret; +diff --git a/src/appcore-group.c b/src/appcore-group.c +index dcdcb6f..915264d 100644 +--- a/src/appcore-group.c ++++ b/src/appcore-group.c +@@ -1,4 +1,4 @@ +-#include ++//#include + #include + #include + #include +@@ -37,6 +37,6 @@ void appcore_group_lower() + aul_app_group_lower(&exit); + if (exit) { + _DBG("appcore_group_lower : sub-app!"); +- elm_exit(); ++// elm_exit(); + } + } +diff -ru a/src/appcore-rotation.c b/src/appcore-rotation.c +--- a/src/appcore-rotation.c 2016-11-03 18:01:31.550096215 +0900 ++++ b/src/appcore-rotation.c 2016-12-16 14:47:09.954892182 +0900 +@@ -26,20 +26,22 @@ - #include + #include #include -#include +//#include @@ -733,91 +431,26 @@ +//#include #include - /*Fixme: to be added for wayland works*/ - #define _MAKE_ATOM(a, s) \ -- do { \ -+/* do { \ - a = ecore_x_atom_get(s); \ - if (!a) \ - _ERR("##s creation failed.\n"); \ - } while(0) -- + /* Fixme: to be added for wayland works */ + #define _MAKE_ATOM(a, s) \ ++/* + do { \ + a = ecore_x_atom_get(s); \ + if (!a) \ + _ERR("##s creation failed.\n"); \ + } while (0) +*/ - #define STR_ATOM_ROTATION_LOCK "_E_ROTATION_LOCK" --static Ecore_X_Atom ATOM_ROTATION_LOCK = 0; --static Ecore_X_Window root; -+//static Ecore_X_Atom ATOM_ROTATION_LOCK = 0; -+//static Ecore_X_Window root; - #endif + #define STR_ATOM_ROTATION_LOCK "_E_ROTATION_LOCK" - struct rot_s { -@@ -245,8 +245,8 @@ +@@ -246,8 +248,10 @@ #ifdef X11 - _MAKE_ATOM(ATOM_ROTATION_LOCK, STR_ATOM_ROTATION_LOCK ); -- root = ecore_x_window_root_first_get(); -- XSelectInput(ecore_x_display_get(), root, PropertyChangeMask); -+ /*root = ecore_x_window_root_first_get(); -+ XSelectInput(ecore_x_display_get(), root, PropertyChangeMask);*/ + _MAKE_ATOM(ATOM_ROTATION_LOCK, STR_ATOM_ROTATION_LOCK); ++/* + root = ecore_x_window_root_first_get(); + XSelectInput(ecore_x_display_get(), root, PropertyChangeMask); ++*/ #endif } return 0; - ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -36,9 +36,9 @@ - SET(HEADERS_common appcore-common.h) - - INCLUDE(FindPkgConfig) --SET(APPCORE_PKG_CHECK_MODULES "vconf sensor aul dlog libtzplatform-config ecore") -+SET(APPCORE_PKG_CHECK_MODULES "vconf sensor aul dlog libtzplatform-config") - IF (with_x11) -- SET(APPCORE_PKG_CHECK_MODULES "${APPCORE_PKG_CHECK_MODULES} x11 ecore-x") -+ SET(APPCORE_PKG_CHECK_MODULES "${APPCORE_PKG_CHECK_MODULES} x11") - ENDIF (with_x11) - - pkg_check_modules(pkg_common REQUIRED ${APPCORE_PKG_CHECK_MODULES}) -@@ -75,9 +75,9 @@ - SET(HEADERS_efl appcore-efl.h) - - INCLUDE(FindPkgConfig) --SET(APPCORE_PKG_CHECK_MODULES2 "elementary dlog ecore gobject-2.0 glib-2.0 aul") -+SET(APPCORE_PKG_CHECK_MODULES2 "dlog gobject-2.0 glib-2.0 aul") - IF (with_x11) -- SET(APPCORE_PKG_CHECK_MODULES2 "${APPCORE_PKG_CHECK_MODULES2} ecore-x") -+ SET(APPCORE_PKG_CHECK_MODULES2 "${APPCORE_PKG_CHECK_MODULES2} ") - ENDIF (with_x11) - - pkg_check_modules(pkg_efl REQUIRED ${APPCORE_PKG_CHECK_MODULES2}) - ---- a/TC/unit/utc_ApplicationFW_appcore_efl_main_func.c -+++ b/TC/unit/utc_ApplicationFW_appcore_efl_main_func.c -@@ -19,7 +19,7 @@ - * - */ - #include --#include -+//#include - #include - - static void startup(void); -@@ -52,7 +52,7 @@ - - static int app_reset(bundle *b, void *data) - { -- elm_exit(); -+ //elm_exit(); - return 0; - } - ---- a/appcore-efl.pc.in -+++ b/appcore-efl.pc.in -@@ -8,6 +8,6 @@ includedir=@INCLUDEDIR@ - Name: app-core-efl - Description: SAMSUNG Linux platform efl application library - Version: @VERSION@ --Requires: elementary appcore-common dlog -+Requires: appcore-common dlog - Libs: -L${libdir} -lappcore-efl - Cflags: -I${includedir} -I${includedir}/appcore diff --git a/meta-application-manager/recipes-application-framework/app-core/files/0003-remove-disused-package.patch b/meta-application-manager/recipes-application-framework/app-core/files/0003-remove-disused-package.patch new file mode 100644 index 0000000..88354d8 --- /dev/null +++ b/meta-application-manager/recipes-application-framework/app-core/files/0003-remove-disused-package.patch @@ -0,0 +1,206 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6e2c508..41ef8b7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -47,7 +47,7 @@ IF(_WITH_X11) + SET(APPCORE_PKG_CHECK_MODULES "${APPCORE_PKG_CHECK_MODULES} x11") + ENDIF(_WITH_X11) + IF(_WITH_WAYLAND) +- SET(APPCORE_PKG_CHECK_MODULES "${APPCORE_PKG_CHECK_MODULES} wayland-client tizen-extension-client wayland-tbm-client") ++ SET(APPCORE_PKG_CHECK_MODULES "${APPCORE_PKG_CHECK_MODULES} ") + ENDIF(_WITH_WAYLAND) + + +@@ -85,7 +85,7 @@ SET(SRCS_efl src/appcore-efl.c src/appcore-group.c) + SET(HEADERS_efl appcore-efl.h) + + INCLUDE(FindPkgConfig) +-SET(APPCORE_PKG_CHECK_MODULES2 "dlog gobject-2.0 glib-2.0 aul pkgmgr-info ttrace") ++SET(APPCORE_PKG_CHECK_MODULES2 "dlog gobject-2.0 glib-2.0 aul pkgmgr-info") + IF(_WITH_X11) + SET(APPCORE_PKG_CHECK_MODULES2 "${APPCORE_PKG_CHECK_MODULES2}") + ENDIF(_WITH_X11) +diff --git a/src/appcore-efl.c b/src/appcore-efl.c +index c3fee93..e2262d9 100644 +--- a/src/appcore-efl.c ++++ b/src/appcore-efl.c +@@ -27,8 +27,8 @@ + #if defined(WAYLAND) + //#include + #include +-#include +-#include ++//#include ++//#include + #elif defined(X11) + #include + #include +@@ -49,7 +49,7 @@ + #include + #include + #include +-#include ++//#include + + #include "appcore-internal.h" + #include "appcore-efl.h" +@@ -128,6 +128,7 @@ static struct ui_wm_rotate wm_rotate; + //static Eina_Bool __visibility_cb(void *data, int type, void *event); + static GSList *g_winnode_list; + ++#if 0 + static struct wl_display *dsp; + static struct wl_registry *reg; + static struct tizen_policy *tz_policy; +@@ -223,6 +224,7 @@ static void __unset_bg_state(void) + _DBG("bg state: %d", bg_state); + __finish_wl(); + } ++#endif + + #ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT + static void __appcore_efl_prepare_to_suspend(void *data) +@@ -358,7 +360,7 @@ static void __do_app(enum app_event event, void *data, bundle * b) + int r = -1; + struct ui_priv *ui = data; + const char *below_app; +- const char *bg_launch; ++// const char *bg_launch; + + _DBG("[APP %d] Event: %d", _pid, event); + _ret_if(ui == NULL || event >= AE_MAX); +@@ -432,10 +434,10 @@ static void __do_app(enum app_event event, void *data, bundle * b) + #endif + + if (ui->ops->reset) { +- traceBegin(TTRACE_TAG_APPLICATION_MANAGER, +- "APPCORE:RESET"); ++// traceBegin(TTRACE_TAG_APPLICATION_MANAGER, ++// "APPCORE:RESET"); + r = ui->ops->reset(b, ui->ops->data); +- traceEnd(TTRACE_TAG_APPLICATION_MANAGER); ++// traceEnd(TTRACE_TAG_APPLICATION_MANAGER); + } + LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:reset:done]", ui->name); + +@@ -447,11 +449,11 @@ static void __do_app(enum app_event event, void *data, bundle * b) + first_launch = FALSE; + } else { + _INFO("[APP %d] App already running, raise the window", _pid); +- if (bg_state) { +- bg_launch = bundle_get_val(b, AUL_SVC_K_BG_LAUNCH); +- if (!bg_launch || strcmp(bg_launch, "enable")) +- __unset_bg_state(); +- } ++// if (bg_state) { ++// bg_launch = bundle_get_val(b, AUL_SVC_K_BG_LAUNCH); ++// if (!bg_launch || strcmp(bg_launch, "enable")) ++// __unset_bg_state(); ++// } + #ifdef X11 + x_raise_win(getpid()); + #else +@@ -465,10 +467,10 @@ static void __do_app(enum app_event event, void *data, bundle * b) + if (ui->state == AS_RUNNING) { + _DBG("[APP %d] PAUSE", _pid); + if (ui->ops->pause) { +- traceBegin(TTRACE_TAG_APPLICATION_MANAGER, +- "APPCORE:PAUSE"); ++// traceBegin(TTRACE_TAG_APPLICATION_MANAGER, ++// "APPCORE:PAUSE"); + r = ui->ops->pause(ui->ops->data); +- traceEnd(TTRACE_TAG_APPLICATION_MANAGER); ++// traceEnd(TTRACE_TAG_APPLICATION_MANAGER); + } + ui->state = AS_PAUSED; + if (r >= 0 && resource_reclaiming == TRUE) +@@ -506,10 +508,10 @@ static void __do_app(enum app_event event, void *data, bundle * b) + } + + if (ui->ops->resume) { +- traceBegin(TTRACE_TAG_APPLICATION_MANAGER, +- "APPCORE:RESUME"); ++// traceBegin(TTRACE_TAG_APPLICATION_MANAGER, ++// "APPCORE:RESUME"); + ui->ops->resume(ui->ops->data); +- traceEnd(TTRACE_TAG_APPLICATION_MANAGER); ++// traceEnd(TTRACE_TAG_APPLICATION_MANAGER); + } + ui->state = AS_RUNNING; + +@@ -986,8 +988,8 @@ static int __before_loop(struct ui_priv *ui, int *argc, char ***argv) + #if _APPFW_FEATURE_BACKGROUND_MANAGEMENT + struct appcore *ac = NULL; + #endif +- bundle *b; +- const char *bg_launch; ++// bundle *b; ++// const char *bg_launch; + + if (argc == NULL || argv == NULL) { + _ERR("argc/argv is NULL"); +@@ -1022,28 +1024,28 @@ static int __before_loop(struct ui_priv *ui, int *argc, char ***argv) + SECURE_LOGD("[__SUSPEND__] appcore initialized, appcore addr: #%x", ac); + #endif + +- b = bundle_import_from_argv(*argc, *argv); +- if (b) { +- bg_launch = bundle_get_val(b, AUL_SVC_K_BG_LAUNCH); +- if (bg_launch && strcmp(bg_launch, "enable") == 0) +- __set_bg_state(); +- +- bundle_free(b); +- } ++// b = bundle_import_from_argv(*argc, *argv); ++// if (b) { ++// bg_launch = bundle_get_val(b, AUL_SVC_K_BG_LAUNCH); ++// if (bg_launch && strcmp(bg_launch, "enable") == 0) ++// __set_bg_state(); ++// ++// bundle_free(b); ++// } + + LOG(LOG_DEBUG, "LAUNCH", "[%s:Platform:appcore_init:done]", ui->name); + if (ui->ops && ui->ops->create) { +- traceBegin(TTRACE_TAG_APPLICATION_MANAGER, "APPCORE:CREATE"); ++// traceBegin(TTRACE_TAG_APPLICATION_MANAGER, "APPCORE:CREATE"); + r = ui->ops->create(ui->ops->data); +- traceEnd(TTRACE_TAG_APPLICATION_MANAGER); ++// traceEnd(TTRACE_TAG_APPLICATION_MANAGER); + if (r < 0) { + _ERR("create() return error"); + appcore_exit(); + if (ui->ops && ui->ops->terminate) { +- traceBegin(TTRACE_TAG_APPLICATION_MANAGER, +- "APPCORE:TERMINATE"); ++// traceBegin(TTRACE_TAG_APPLICATION_MANAGER, ++// "APPCORE:TERMINATE"); + ui->ops->terminate(ui->ops->data); +- traceEnd(TTRACE_TAG_APPLICATION_MANAGER); ++// traceEnd(TTRACE_TAG_APPLICATION_MANAGER); + } + errno = ECANCELED; + return -1; +@@ -1066,17 +1068,17 @@ static void __after_loop(struct ui_priv *ui) + if (ui->state == AS_RUNNING) { + _DBG("[APP %d] PAUSE before termination", _pid); + if (ui->ops && ui->ops->pause) { +- traceBegin(TTRACE_TAG_APPLICATION_MANAGER, +- "APPCORE:PAUSE"); ++// traceBegin(TTRACE_TAG_APPLICATION_MANAGER, ++// "APPCORE:PAUSE"); + ui->ops->pause(ui->ops->data); +- traceEnd(TTRACE_TAG_APPLICATION_MANAGER); ++// traceEnd(TTRACE_TAG_APPLICATION_MANAGER); + } + } + + if (ui->ops && ui->ops->terminate) { +- traceBegin(TTRACE_TAG_APPLICATION_MANAGER, "APPCORE:TERMINATE"); ++// traceBegin(TTRACE_TAG_APPLICATION_MANAGER, "APPCORE:TERMINATE"); + ui->ops->terminate(ui->ops->data); +- traceEnd(TTRACE_TAG_APPLICATION_MANAGER); ++// traceEnd(TTRACE_TAG_APPLICATION_MANAGER); + } + + ui->state = AS_DYING; diff --git a/meta-application-manager/recipes-application-framework/app-core/files/remove-dlog-for-native-build.patch b/meta-application-manager/recipes-application-framework/app-core/files/remove-dlog-for-native-build.patch index 0199c60..bfc07b9 100644 --- a/meta-application-manager/recipes-application-framework/app-core/files/remove-dlog-for-native-build.patch +++ b/meta-application-manager/recipes-application-framework/app-core/files/remove-dlog-for-native-build.patch @@ -1,5 +1,5 @@ diff --git a/CMakeLists.txt b/CMakeLists.txt -index fd053b7..2403d3d 100644 +index fd053b7..83c7f2b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,17 +26,14 @@ SET(APPCORE_COMMON "appcore-common") @@ -16,8 +16,8 @@ index fd053b7..2403d3d 100644 SET(HEADERS_common appcore-common.h) INCLUDE(FindPkgConfig) --SET(APPCORE_PKG_CHECK_MODULES "vconf sensor aul dlog libtzplatform-config ecore") -+SET(APPCORE_PKG_CHECK_MODULES "vconf sensor aul libtzplatform-config ecore") +-SET(APPCORE_PKG_CHECK_MODULES "vconf sensor aul dlog libtzplatform-config") ++SET(APPCORE_PKG_CHECK_MODULES "vconf sensor aul libtzplatform-config") IF (with_x11) SET(APPCORE_PKG_CHECK_MODULES "${APPCORE_PKG_CHECK_MODULES} x11 ecore-x") ENDIF (with_x11) @@ -25,8 +25,8 @@ index fd053b7..2403d3d 100644 SET(HEADERS_efl appcore-efl.h) INCLUDE(FindPkgConfig) --SET(APPCORE_PKG_CHECK_MODULES2 "elementary dlog ecore gobject-2.0 glib-2.0 aul") -+SET(APPCORE_PKG_CHECK_MODULES2 "elementary ecore gobject-2.0 glib-2.0 aul") +-SET(APPCORE_PKG_CHECK_MODULES2 "dlog gobject-2.0 glib-2.0 aul") ++SET(APPCORE_PKG_CHECK_MODULES2 "gobject-2.0 glib-2.0 aul") IF (with_x11) SET(APPCORE_PKG_CHECK_MODULES2 "${APPCORE_PKG_CHECK_MODULES2} ecore-x") ENDIF (with_x11) diff --git a/meta-application-manager/recipes-others/images/agl-demo-platform-plus-application-manager.bb b/meta-application-manager/recipes-others/images/agl-demo-platform-plus-application-manager.bb index 8811287..c5dd9b7 100644 --- a/meta-application-manager/recipes-others/images/agl-demo-platform-plus-application-manager.bb +++ b/meta-application-manager/recipes-others/images/agl-demo-platform-plus-application-manager.bb @@ -44,8 +44,7 @@ IMAGE_INSTALL_append = " \ vconf \ capi-base-common \ ail \ - sensor \ - libsf-common \ + sensord \ iniparser \ app-svc \ heynoti \ diff --git a/meta-application-manager/recipes-others/sensord/files/0001-remove-linkerflags.patch b/meta-application-manager/recipes-others/sensord/files/0001-remove-linkerflags.patch new file mode 100644 index 0000000..49f2872 --- /dev/null +++ b/meta-application-manager/recipes-others/sensord/files/0001-remove-linkerflags.patch @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index affaa30..ad539ca 100755 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -12,7 +12,6 @@ SET(VERSION 1.0) + # Common Options + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O2 -omit-frame-pointer -std=gnu++0x") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdata-sections -ffunction-sections") +-SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gc-section -Wl,--print-gc-section") + MESSAGE("FLAGS: ${CMAKE_CXX_FLAGS}") + MESSAGE("FLAGS: ${CMAKE_EXE_LINKER_FLAGS}") + +-- +1.9.1 + diff --git a/meta-application-manager/recipes-others/sensord/files/0002-Fix-libinstalldir.patch b/meta-application-manager/recipes-others/sensord/files/0002-Fix-libinstalldir.patch new file mode 100644 index 0000000..ce0bb47 --- /dev/null +++ b/meta-application-manager/recipes-others/sensord/files/0002-Fix-libinstalldir.patch @@ -0,0 +1,219 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ad539ca..5cd0bea 100755 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -5,7 +5,7 @@ include(GNUInstallDirs) + # Setup For pkgconfig File + SET(PREFIX ${CMAKE_INSTALL_PREFIX}) + SET(EXEC_PREFIX "${PREFIX}/bin") +-SET(LIBDIR "${PREFIX}/${CMAKE_INSTALL_LIBDIR}") ++SET(LIBDIR "${PREFIX}/lib") + SET(INCLUDEDIR "${PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}") + SET(VERSION 1.0) + +@@ -16,7 +16,7 @@ MESSAGE("FLAGS: ${CMAKE_CXX_FLAGS}") + MESSAGE("FLAGS: ${CMAKE_EXE_LINKER_FLAGS}") + + add_definitions(-DUSE_DLOG_LOG) +-add_definitions(-DLIBDIR="${CMAKE_INSTALL_LIBDIR}") ++add_definitions(-DLIBDIR="${LIBDIR}") + + # Internal Debugging Options + #add_definitions(-Wall -g -D_DEBUG) +diff --git a/src/accel/CMakeLists.txt b/src/accel/CMakeLists.txt +index a37c89c..2f98f37 100755 +--- a/src/accel/CMakeLists.txt ++++ b/src/accel/CMakeLists.txt +@@ -29,5 +29,5 @@ add_library(${SENSOR_HAL_NAME} SHARED + target_link_libraries(${SENSOR_NAME} ${accel_pkgs_LDFLAGS} "-lm") + target_link_libraries(${SENSOR_HAL_NAME} ${accel_pkgs_LDFLAGS}) + +-install(TARGETS ${SENSOR_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) +-install(TARGETS ${SENSOR_HAL_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) ++install(TARGETS ${SENSOR_NAME} DESTINATION ${LIBDIR}/sensord) ++install(TARGETS ${SENSOR_HAL_NAME} DESTINATION ${LIBDIR}/sensord) +diff --git a/src/auto_rotation/CMakeLists.txt b/src/auto_rotation/CMakeLists.txt +index a0076b2..121c265 100644 +--- a/src/auto_rotation/CMakeLists.txt ++++ b/src/auto_rotation/CMakeLists.txt +@@ -25,4 +25,4 @@ add_library(${SENSOR_NAME} SHARED + + target_link_libraries(${SENSOR_NAME} ${auto_rot_pkgs_LDFLAGS} "-lm") + +-install(TARGETS ${SENSOR_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) ++install(TARGETS ${SENSOR_NAME} DESTINATION ${LIBDIR}/sensord) +diff --git a/src/geo/CMakeLists.txt b/src/geo/CMakeLists.txt +index c6d4aa1..0c593c5 100755 +--- a/src/geo/CMakeLists.txt ++++ b/src/geo/CMakeLists.txt +@@ -29,5 +29,5 @@ add_library(${SENSOR_HAL_NAME} SHARED + target_link_libraries(${SENSOR_NAME} ${geo_pkgs_LDFLAGS} "-lm") + target_link_libraries(${SENSOR_HAL_NAME} ${geo_pkgs_LDFLAGS}) + +-install(TARGETS ${SENSOR_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) +-install(TARGETS ${SENSOR_HAL_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) ++install(TARGETS ${SENSOR_NAME} DESTINATION ${LIBDIR}/sensord) ++install(TARGETS ${SENSOR_HAL_NAME} DESTINATION ${LIBDIR}/sensord) +diff --git a/src/gravity/CMakeLists.txt b/src/gravity/CMakeLists.txt +index e66964e..69ae097 100755 +--- a/src/gravity/CMakeLists.txt ++++ b/src/gravity/CMakeLists.txt +@@ -23,4 +23,4 @@ add_library(${SENSOR_NAME} SHARED + + target_link_libraries(${SENSOR_NAME} ${gravity_pkgs_LDFLAGS} "-lm") + +-install(TARGETS ${SENSOR_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) ++install(TARGETS ${SENSOR_NAME} DESTINATION ${LIBDIR}/sensord) +diff --git a/src/gyro/CMakeLists.txt b/src/gyro/CMakeLists.txt +index 228fac9..f2ce149 100755 +--- a/src/gyro/CMakeLists.txt ++++ b/src/gyro/CMakeLists.txt +@@ -28,5 +28,5 @@ add_library(${SENSOR_HAL_NAME} SHARED + target_link_libraries(${SENSOR_NAME} ${gyro_pkgs_LDFLAGS} "-lm") + target_link_libraries(${SENSOR_HAL_NAME} ${gyro_pkgs_LDFLAGS}) + +-install(TARGETS ${SENSOR_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) +-install(TARGETS ${SENSOR_HAL_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) ++install(TARGETS ${SENSOR_NAME} DESTINATION ${LIBDIR}/sensord) ++install(TARGETS ${SENSOR_HAL_NAME} DESTINATION ${LIBDIR}/sensord) +diff --git a/src/libsensord/CMakeLists.txt b/src/libsensord/CMakeLists.txt +index 5b57251..f507c93 100755 +--- a/src/libsensord/CMakeLists.txt ++++ b/src/libsensord/CMakeLists.txt +@@ -34,7 +34,7 @@ SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION ${VERSION_MAJOR}) + SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES VERSION ${VERSION}) + + configure_file(${PROJECT_NAME}.pc.in ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc @ONLY) +-install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries) ++install(TARGETS ${PROJECT_NAME} DESTINATION ${LIBDIR} COMPONENT RuntimeLibraries) + install(FILES sensor.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sensor/) + install(FILES sensor_internal_deprecated.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sensor/) + install(FILES sensor_internal.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sensor/) +@@ -59,4 +59,4 @@ install(FILES sensor_rv.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sensor/) + install(FILES sensor_temperature.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sensor/) + install(FILES sensor_motion.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sensor/) + install(FILES sensor_deprecated.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/sensor/) +-install(FILES ${PROJECT_NAME}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) ++install(FILES ${PROJECT_NAME}.pc DESTINATION ${LIBDIR}/pkgconfig) +diff --git a/src/light/CMakeLists.txt b/src/light/CMakeLists.txt +index 099ff82..759cba7 100755 +--- a/src/light/CMakeLists.txt ++++ b/src/light/CMakeLists.txt +@@ -29,5 +29,5 @@ add_library(${SENSOR_HAL_NAME} SHARED + target_link_libraries(${SENSOR_NAME} ${light_pkgs_LDFLAGS} "-lm") + target_link_libraries(${SENSOR_HAL_NAME} ${light_pkgs_LDFLAGS}) + +-install(TARGETS ${SENSOR_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) +-install(TARGETS ${SENSOR_HAL_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) ++install(TARGETS ${SENSOR_NAME} DESTINATION ${LIBDIR}/sensord) ++install(TARGETS ${SENSOR_HAL_NAME} DESTINATION ${LIBDIR}/sensord) +diff --git a/src/linear_accel/CMakeLists.txt b/src/linear_accel/CMakeLists.txt +index 986fb11..52a573a 100755 +--- a/src/linear_accel/CMakeLists.txt ++++ b/src/linear_accel/CMakeLists.txt +@@ -24,4 +24,4 @@ add_library(${SENSOR_NAME} SHARED + + target_link_libraries(${SENSOR_NAME} ${linear_accel_pkgs_LDFLAGS} "-lm") + +-install(TARGETS ${SENSOR_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) ++install(TARGETS ${SENSOR_NAME} DESTINATION ${LIBDIR}/sensord) +diff --git a/src/orientation/CMakeLists.txt b/src/orientation/CMakeLists.txt +index 6f02e9a..e7ef28a 100755 +--- a/src/orientation/CMakeLists.txt ++++ b/src/orientation/CMakeLists.txt +@@ -24,4 +24,4 @@ add_library(${SENSOR_NAME} SHARED + + target_link_libraries(${SENSOR_NAME} ${orientation_pkgs_LDFLAGS} "-lm") + +-install(TARGETS ${SENSOR_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) ++install(TARGETS ${SENSOR_NAME} DESTINATION ${LIBDIR}/sensord) +diff --git a/src/pressure/CMakeLists.txt b/src/pressure/CMakeLists.txt +index e61aca4..9eb8df8 100755 +--- a/src/pressure/CMakeLists.txt ++++ b/src/pressure/CMakeLists.txt +@@ -29,5 +29,5 @@ add_library(${SENSOR_HAL_NAME} SHARED + target_link_libraries(${SENSOR_NAME} ${pressure_pkgs_LDFLAGS} "-lm") + target_link_libraries(${SENSOR_HAL_NAME} ${pressure_pkgs_LDFLAGS}) + +-install(TARGETS ${SENSOR_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) +-install(TARGETS ${SENSOR_HAL_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) ++install(TARGETS ${SENSOR_NAME} DESTINATION ${LIBDIR}/sensord) ++install(TARGETS ${SENSOR_HAL_NAME} DESTINATION ${LIBDIR}/sensord) +diff --git a/src/proxi/CMakeLists.txt b/src/proxi/CMakeLists.txt +index 7cd4517..e05cc43 100755 +--- a/src/proxi/CMakeLists.txt ++++ b/src/proxi/CMakeLists.txt +@@ -29,5 +29,5 @@ add_library(${SENSOR_HAL_NAME} SHARED + target_link_libraries(${SENSOR_NAME} ${proxi_pkgs_LDFLAGS} "-lm") + target_link_libraries(${SENSOR_HAL_NAME} ${proxi_pkgs_LDFLAGS}) + +-install(TARGETS ${SENSOR_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) +-install(TARGETS ${SENSOR_HAL_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) ++install(TARGETS ${SENSOR_NAME} DESTINATION ${LIBDIR}/sensord) ++install(TARGETS ${SENSOR_HAL_NAME} DESTINATION ${LIBDIR}/sensord) +diff --git a/src/rotation_vector/rv/CMakeLists.txt b/src/rotation_vector/rv/CMakeLists.txt +index d26d4f9..6e0e386 100755 +--- a/src/rotation_vector/rv/CMakeLists.txt ++++ b/src/rotation_vector/rv/CMakeLists.txt +@@ -24,4 +24,4 @@ add_library(${SENSOR_NAME} SHARED + + target_link_libraries(${SENSOR_NAME} ${rv_pkgs_LDFLAGS} "-lm") + +-install(TARGETS ${SENSOR_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) ++install(TARGETS ${SENSOR_NAME} DESTINATION ${LIBDIR}/sensord) +diff --git a/src/rotation_vector/rv_raw/CMakeLists.txt b/src/rotation_vector/rv_raw/CMakeLists.txt +index 223b8c8..e83a639 100755 +--- a/src/rotation_vector/rv_raw/CMakeLists.txt ++++ b/src/rotation_vector/rv_raw/CMakeLists.txt +@@ -29,5 +29,5 @@ add_library(${SENSOR_HAL_NAME} SHARED + target_link_libraries(${SENSOR_NAME} ${rv_raw_pkgs_LDFLAGS} "-lm") + target_link_libraries(${SENSOR_HAL_NAME} ${rv_raw_pkgs_LDFLAGS}) + +-install(TARGETS ${SENSOR_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) +-install(TARGETS ${SENSOR_HAL_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) ++install(TARGETS ${SENSOR_NAME} DESTINATION ${LIBDIR}/sensord) ++install(TARGETS ${SENSOR_HAL_NAME} DESTINATION ${LIBDIR}/sensord) +diff --git a/src/sensor_fusion/CMakeLists.txt b/src/sensor_fusion/CMakeLists.txt +index c38f410..526b396 100755 +--- a/src/sensor_fusion/CMakeLists.txt ++++ b/src/sensor_fusion/CMakeLists.txt +@@ -35,4 +35,4 @@ add_library(${SENSOR_FUSION_NAME} SHARED + + target_link_libraries(${SENSOR_FUSION_NAME} ${rpkgs_LDFLAGS} ${GLES_LDFLAGS} "-lm") + +-install(TARGETS ${SENSOR_FUSION_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) ++install(TARGETS ${SENSOR_FUSION_NAME} DESTINATION ${LIBDIR}/sensord) +diff --git a/src/shared/CMakeLists.txt b/src/shared/CMakeLists.txt +index f400944..3b37bb6 100755 +--- a/src/shared/CMakeLists.txt ++++ b/src/shared/CMakeLists.txt +@@ -51,10 +51,10 @@ target_link_libraries(sensord-share ${shared_pkgs_LDFLAGS} "-lrt -ldl -pthread") + configure_file(sensord-server.pc.in ${CMAKE_CURRENT_SOURCE_DIR}/sensord-server.pc @ONLY) + configure_file(${PROJECT_NAME}.pc.in ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.pc @ONLY) + +-install(TARGETS sensord-server DESTINATION ${CMAKE_INSTALL_LIBDIR}) +-install(TARGETS sensord-share DESTINATION ${CMAKE_INSTALL_LIBDIR}) +-install(FILES sensord-server.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) +-install(FILES ${PROJECT_NAME}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) ++install(TARGETS sensord-server DESTINATION ${LIBDIR}) ++install(TARGETS sensord-share DESTINATION ${LIBDIR}) ++install(FILES sensord-server.pc DESTINATION ${LIBDIR}/pkgconfig) ++install(FILES ${PROJECT_NAME}.pc DESTINATION ${LIBDIR}/pkgconfig) + install(FILES + crw_lock.h + worker_thread.h +diff --git a/src/temperature/CMakeLists.txt b/src/temperature/CMakeLists.txt +index 87dab53..26e03c9 100755 +--- a/src/temperature/CMakeLists.txt ++++ b/src/temperature/CMakeLists.txt +@@ -29,5 +29,5 @@ add_library(${SENSOR_HAL_NAME} SHARED + target_link_libraries(${SENSOR_NAME} ${temp_pkgs_LDFLAGS} "-lm") + target_link_libraries(${SENSOR_HAL_NAME} ${temp_pkgs_LDFLAGS}) + +-install(TARGETS ${SENSOR_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) +-install(TARGETS ${SENSOR_HAL_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensord) ++install(TARGETS ${SENSOR_NAME} DESTINATION ${LIBDIR}/sensord) ++install(TARGETS ${SENSOR_HAL_NAME} DESTINATION ${LIBDIR}/sensord) +-- +1.9.1 + diff --git a/meta-application-manager/recipes-others/sensord/files/0003-remove_checking_libsystemd-daemon.patch b/meta-application-manager/recipes-others/sensord/files/0003-remove_checking_libsystemd-daemon.patch new file mode 100644 index 0000000..4039f3d --- /dev/null +++ b/meta-application-manager/recipes-others/sensord/files/0003-remove_checking_libsystemd-daemon.patch @@ -0,0 +1,13 @@ +diff --git a/src/server/CMakeLists.txt b/src/server/CMakeLists.txt +index a404c76..941f56b 100755 +--- a/src/server/CMakeLists.txt ++++ b/src/server/CMakeLists.txt +@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.6) + project(sensord CXX) + + INCLUDE(FindPkgConfig) +-PKG_CHECK_MODULES(server_pkgs REQUIRED vconf glib-2.0 gio-2.0 dlog libsystemd-daemon) ++PKG_CHECK_MODULES(server_pkgs REQUIRED vconf glib-2.0 gio-2.0 dlog libsystemd) + + FOREACH(flag ${server_pkgs_LDFLAGS}) + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}") diff --git a/meta-application-manager/recipes-others/sensord/files/0004-Removing-redundant-auto_rotation-events.patch b/meta-application-manager/recipes-others/sensord/files/0004-Removing-redundant-auto_rotation-events.patch new file mode 100644 index 0000000..16c64b0 --- /dev/null +++ b/meta-application-manager/recipes-others/sensord/files/0004-Removing-redundant-auto_rotation-events.patch @@ -0,0 +1,117 @@ +From a6689f5545620ae9c050db2de30f432838fb9354 Mon Sep 17 00:00:00 2001 +From: Ankur +Date: Thu, 26 Feb 2015 17:30:27 +0530 +Subject: [PATCH] Removing redundant auto_rotation events + +AUTO_ROTATION_BASE_DATA_SET and AUTO_ROTATION_EVENT_CHANGE_STATE were the same +AUTO_ROTATION_BASE_DATA_SET has been removed. + +AUTO_ROTATION_BASE_DATA_SET was used for polling events and AUTO_ROTATION__EVENT_CHANGE_STATE was used for event driven +Since both these represent the same auto_rotation sensor event, DATA_SET type has been removed. + +And AUTO_ROTATION_EVENT_CHANGE_STATE has been renamed to AUTO_ROTATION_CHANGE_STATE_EVENT to make it simpler. + +Change-Id: I8523af6c00dd2919bb6b9f0606c48d5df37ff0c9 +--- + src/auto_rotation/auto_rotation_sensor.cpp | 6 +++--- + src/libsensord/client_common.cpp | 5 ++--- + src/libsensord/sensor_auto_rotation.h | 6 +----- + src/libsensord/sensor_deprecated.h | 3 +++ + 4 files changed, 9 insertions(+), 11 deletions(-) + +diff --git a/src/auto_rotation/auto_rotation_sensor.cpp b/src/auto_rotation/auto_rotation_sensor.cpp +index cdf7609..381e861 100755 +--- a/src/auto_rotation/auto_rotation_sensor.cpp ++++ b/src/auto_rotation/auto_rotation_sensor.cpp +@@ -49,7 +49,7 @@ auto_rotation_sensor::auto_rotation_sensor() + { + m_name = string(SENSOR_NAME); + +- register_supported_event(AUTO_ROTATION_EVENT_CHANGE_STATE); ++ register_supported_event(AUTO_ROTATION_CHANGE_STATE_EVENT); + } + + auto_rotation_sensor::~auto_rotation_sensor() +@@ -146,7 +146,7 @@ void auto_rotation_sensor::synthesize(const sensor_event_t& event, vector