From: JengHyun Kang Date: Fri, 13 Apr 2018 07:54:59 +0000 (+0900) Subject: disable a keyrotuer module X-Git-Tag: submit/tizen/20180413.052944~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f621bb493bbe1f1364638e40ce244766cc1d9e7e;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-keyrouter.git disable a keyrotuer module - keyrouter functions are moved to enlightenment's core system Change-Id: I0f24339d0e6238cd5e75e7a958772c17e12166cc --- diff --git a/packaging/e-mod-tizen-keyrouter.spec b/packaging/e-mod-tizen-keyrouter.spec index 8f9ce00..7aefeb5 100644 --- a/packaging/e-mod-tizen-keyrouter.spec +++ b/packaging/e-mod-tizen-keyrouter.spec @@ -26,7 +26,7 @@ This package is a the Enlightenment Keyrouter Module for Tizen. %build export GC_SECTIONS_FLAGS="-fdata-sections -ffunction-sections -Wl,--gc-sections" -export CFLAGS+=" -Wall -g -fPIC -rdynamic ${GC_SECTIONS_FLAGS} -DE_LOGGING=1 " +export CFLAGS+=" -Wall -g -fPIC -rdynamic ${GC_SECTIONS_FLAGS} -DE_LOGGING=1 -D_F_ENABLE_KEYROUTER_CORE " export LDFLAGS+=" -Wl,--hash-style=both -Wl,--as-needed -Wl,--rpath=/usr/lib" %autogen diff --git a/src/e_mod_keyrouter_conf.c b/src/e_mod_keyrouter_conf.c index 4247795..469d7a0 100644 --- a/src/e_mod_keyrouter_conf.c +++ b/src/e_mod_keyrouter_conf.c @@ -1,3 +1,5 @@ +#ifndef _F_ENABLE_KEYROUTER_CORE + #define E_COMP_WL #include "e_mod_main_wl.h" @@ -53,3 +55,5 @@ e_keyrouter_conf_deinit(E_Keyrouter_Config_Data *kconfig) E_CONFIG_DD_FREE(kconfig->conf_hwkeys_edd); E_CONFIG_DD_FREE(kconfig->conf_edd); } + +#endif diff --git a/src/e_mod_keyrouter_events.c b/src/e_mod_keyrouter_events.c index cbb3fe6..4afee2e 100644 --- a/src/e_mod_keyrouter_events.c +++ b/src/e_mod_keyrouter_events.c @@ -1,3 +1,5 @@ +#ifndef _F_ENABLE_KEYROUTER_CORE + #define E_COMP_WL #include "e_mod_main_wl.h" @@ -804,3 +806,4 @@ e_keyrouter_util_process_name_get_from_cmd(char *cmd) } return NULL; } +#endif diff --git a/src/e_mod_keyrouter_list.c b/src/e_mod_keyrouter_list.c index 0e97f4d..17741e6 100644 --- a/src/e_mod_keyrouter_list.c +++ b/src/e_mod_keyrouter_list.c @@ -1,3 +1,4 @@ +#ifndef _F_ENABLE_KEYROUTER_CORE #define E_COMP_WL #include "e_mod_main_wl.h" @@ -794,3 +795,4 @@ _e_keyrouter_get_list(int mode, int key) return list; } +#endif diff --git a/src/e_mod_main_wl.c b/src/e_mod_main_wl.c index efa2c0b..a52faeb 100644 --- a/src/e_mod_main_wl.c +++ b/src/e_mod_main_wl.c @@ -1,3 +1,4 @@ +#ifndef _F_ENABLE_KEYROUTER_CORE #define E_COMP_WL #include "e_mod_main_wl.h" #include @@ -1581,3 +1582,4 @@ finish: return res; } #endif +#endif diff --git a/src/e_mod_main_wl.h b/src/e_mod_main_wl.h index 09b535d..2172a7f 100644 --- a/src/e_mod_main_wl.h +++ b/src/e_mod_main_wl.h @@ -1,6 +1,8 @@ #ifndef E_MOD_MAIN_H #define E_MOD_MAIN_H +#ifndef _F_ENABLE_KEYROUTER_CORE + #include "e.h" #include #ifdef ENABLE_CYNARA @@ -166,3 +168,4 @@ void e_keyrouter_conf_deinit(E_Keyrouter_Config_Data *kconfig); int e_keyrouter_cb_picture_off(const int option, void *data); #endif +#endif