Revert "remove unnecessary dependancy from elementary module to keep it same as upstr... 20/211120/2
authorHermet Park <hermetpark@gmail.com>
Tue, 30 Jul 2019 08:03:04 +0000 (17:03 +0900)
committerHermet Park <chuneon.park@samsung.com>
Tue, 30 Jul 2019 08:05:38 +0000 (08:05 +0000)
This reverts commit 55fb93d46bfc8e1c8e672404d2e6c702c7c2a28b.

Change-Id: I020afa40e39b1033588f4ad0eae1bfd70021fcc1

16 files changed:
src/lib/elementary/efl_ui_win.c
src/lib/elementary/elm_module_helper.h
src/lib/elementary/meson.build
src/modules/elementary/access_output/meson.build
src/modules/elementary/access_output/mod.c
src/modules/elementary/clock_input_ctxpopup/clock_input_ctxpopup.c
src/modules/elementary/clock_input_ctxpopup/meson.build
src/modules/elementary/meson.build
src/modules/elementary/prefs/meson.build
src/modules/elementary/prefs/prefs_iface.c
src/modules/elementary/test_entry/meson.build
src/modules/elementary/test_entry/mod.c
src/modules/elementary/test_map/meson.build
src/modules/elementary/test_map/mod.c
src/modules/elementary/web/none/elm_web_none.c
src/modules/elementary/web/none/meson.build

index f41abfd..94b1d94 100644 (file)
@@ -9998,6 +9998,8 @@ elm_win_main_menu_get(Evas_Object *obj)
    _elm_menu_menu_bar_set(sd->main_menu, EINA_TRUE);
 
 #ifdef HAVE_ELEMENTARY_X
+   Eina_Bool use_dbus = EINA_FALSE;
+
    if (!_elm_config->disable_external_menu && sd->x.xwin) use_dbus = EINA_TRUE;
 
    if (use_dbus && _elm_dbus_menu_register(sd->main_menu))
index eba3237..1e085f8 100644 (file)
@@ -5,6 +5,8 @@
 #ifndef ELM_MODULE_HELPER_H
 #define ELM_MODULE_HELPER_H
 
+#include "elm_priv.h"
+
 #ifdef EAPI
 # undef EAPI
 #endif
 
 #define EWAPI EAPI EAPI_WEAK
 
+/*************************************************************
+ * TIZEN_ONLY_FEATURE : Tizen Copy & Paste feature with CBHM *
+ *************************************************************/
+
+typedef void (*cpfunc)(void *data, Evas_Object *obj, void *event_info);
+
+struct _Elm_Entry_Extension_data
+{
+   Evas_Object *popup;
+   Evas_Object *ent;
+   Evas_Object *caller;
+   Eina_Rectangle *viewport_rect;
+   Evas_Coord_Rectangle selection_rect;
+   Eina_List *items;
+   cpfunc select;
+   cpfunc copy;
+   cpfunc cut;
+   cpfunc paste;
+   cpfunc cancel;
+   cpfunc selectall;
+   cpfunc cnpinit;
+   cpfunc keep_selection;
+   cpfunc paste_translation;
+   cpfunc is_selected_all;
+   Elm_Config *_elm_config;
+   Eina_Bool password : 1;
+   Eina_Bool editable : 1;
+   Eina_Bool have_selection: 1;
+   Eina_Bool selmode : 1;
+   Eina_Bool context_menu : 1;
+   Elm_Cnp_Mode cnp_mode : 2;
+   Eina_Bool popup_showing : 1;
+   Eina_Bool mouse_up : 1;
+   Eina_Bool mouse_move : 1;
+   Eina_Bool mouse_down : 1;
+   Eina_Bool entry_move : 1;
+   Eina_Bool popup_clicked : 1;
+   Eina_Bool cursor_handler_shown : 1;
+   Eina_Bool ent_scroll : 1;
+   Evas_Object *ctx_par;
+   Evas_Object *start_handler;
+   Evas_Object *end_handler;
+   Evas_Object *cursor_handler;
+   Ecore_Timer *show_timer;
+   char *source_text;
+   char *target_text;
+#ifdef HAVE_ELEMENTARY_WL2
+   Eldbus_Proxy *cbhm_proxy;
+#endif
+   /* For setting color class parent relation to copypaste popup */
+   Evas_Object *entry_edje;
+
+   /* For checking wearable profile */
+   char profile_wear;
+};
+
+typedef struct _Elm_Entry_Extension_data Elm_Entry_Extension_data;
+
+void elm_entry_extension_module_data_get(Evas_Object *obj,Elm_Entry_Extension_data *ext_mod);
+/*******
+ * END *
+ *******/
+
 #endif
index b47f44f..ab76232 100644 (file)
@@ -1133,20 +1133,18 @@ elementary_config_dir = include_directories('.')
 
 package_pc_variables = ['themes='+join_paths(dir_data, package_name, 'themes')]
 
-if get_option('tizen')
-  elementary_tizen_lib = library('elementary_t',
-      elementary_src_tizen, pub_eo_file_target, priv_eo_file_target, c,
-      dependencies: elementary_pub_deps + elementary_deps,
-      include_directories : config_dir + [include_directories('.')] + [include_directories(join_paths('..', '..', '..'))] + [ecore_evas_wayland_engine_include_dir],
-      install: true,
-      c_args : elm_package_c_args,
-      version : '1.22.100',
-  )
+elementary_tizen_lib = library('elementary_t',
+    elementary_src_tizen, pub_eo_file_target, priv_eo_file_target, c,
+    dependencies: elementary_pub_deps + elementary_deps,
+    include_directories : config_dir + [include_directories('.')] + [include_directories(join_paths('..', '..', '..'))] + [ecore_evas_wayland_engine_include_dir],
+    install: true,
+    c_args : elm_package_c_args,
+    version : '1.22.100',
+)
 
-  elementary_tizen = declare_dependency(
-    include_directories: [include_directories('.')],
-    link_with: elementary_tizen_lib,
-    sources : pub_eo_file_target + priv_eo_file_target,
-    dependencies: elementary_pub_deps,
-  )
-endif
+elementary_tizen = declare_dependency(
+  include_directories: [include_directories('.')],
+  link_with: elementary_tizen_lib,
+  sources : pub_eo_file_target + priv_eo_file_target,
+  dependencies: elementary_pub_deps,
+)
index 178ab16..cde9d31 100644 (file)
@@ -4,7 +4,7 @@ src = files([
 
 shared_module(mod,
     src,
-    dependencies: [elementary],
+    dependencies: [elementary, eio],
     install: true,
     install_dir : mod_install_dir
 )
index f51b512..41a518f 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef EFL_BUILD
 # define EFL_BUILD
 #endif
-#undef ELM_MODULE_HELPER_H
 #include "elm_module_helper.h"
 
 /* to enable this module
index 03b5a7f..75d030b 100644 (file)
@@ -12,7 +12,6 @@
 #ifndef EFL_BUILD
 # define EFL_BUILD
 #endif
-#undef ELM_MODULE_HELPER_H
 #include "elm_module_helper.h"
 
 #define CLOCK_FIELD_COUNT       8
index 0443577..9c3265e 100644 (file)
@@ -4,7 +4,7 @@ src = files([
 
 shared_module(mod,
     src,
-    dependencies: [elementary],
+    dependencies: [elementary, eio],
     install: true,
     install_dir : mod_install_dir
 )
index 66804b9..b9261d6 100644 (file)
@@ -7,11 +7,9 @@ mods = [
   join_paths('web', 'none')
 ]
 
-if (get_option('tizen'))
-  mods += [
-    'copypasteUI_ctxpopup',
-  ]
-endif
+mods += [
+  'copypasteUI_ctxpopup',
+]
 
 foreach mod : mods
   mod_install_dir = join_paths(dir_lib, 'elementary', 'modules', mod, version_name)
index 9ec2c9a..3784e37 100644 (file)
@@ -16,9 +16,31 @@ src = files([
   'elm_horizontal_frame.c'
 ])
 
+edc_files = [
+  'elm_prefs_swallow.edc',
+]
+
+foreach edc_file : edc_files
+  custom_target('edje_cc_' + edc_file,
+    input : edc_file,
+    output : '@BASENAME@.edj',
+    command : edje_cc_exe + [ '-beta', '-fastcomp',
+              '-id', meson.current_source_dir(),
+              '-fd', meson.current_source_dir(),
+              '-sd', meson.current_source_dir(),
+              '-vd', meson.current_source_dir(),
+              '-dd', meson.current_source_dir(),
+              '-md', meson.current_source_dir(),
+              '-td', meson.current_source_dir(),
+              '@INPUT@', '@OUTPUT@'],
+    depends : edje_cc,
+    install: true,
+    install_dir : mod_install_dir)
+endforeach
+
 shared_module(mod,
     src,
-    dependencies: [elementary],
+    dependencies: [elementary, eio],
     install: true,
     install_dir : mod_install_dir
 )
index d09658a..14ed9f3 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef EFL_BUILD
 # define EFL_BUILD
 #endif
-#undef ELM_MODULE_HELPER_H
 #include "private.h"
 
 /* including declaration of each prefs item implementation iface struct */
index 178ab16..cde9d31 100644 (file)
@@ -4,7 +4,7 @@ src = files([
 
 shared_module(mod,
     src,
-    dependencies: [elementary],
+    dependencies: [elementary, eio],
     install: true,
     install_dir : mod_install_dir
 )
index b80cb18..f8abbef 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef EFL_BUILD
 # define EFL_BUILD
 #endif
-#undef ELM_MODULE_HELPER_H
 #include "elm_module_helper.h"
 
 // module api funcs needed
index 178ab16..cde9d31 100644 (file)
@@ -4,7 +4,7 @@ src = files([
 
 shared_module(mod,
     src,
-    dependencies: [elementary],
+    dependencies: [elementary, eio],
     install: true,
     install_dir : mod_install_dir
 )
index 15c4ff3..85e6e52 100644 (file)
@@ -9,7 +9,6 @@
 #ifndef EFL_BUILD
 # define EFL_BUILD
 #endif
-#undef ELM_MODULE_HELPER_H
 #include "elm_module_helper.h"
 
 EAPI Eina_Stringshare *
index 8821846..bfbc00c 100644 (file)
@@ -12,7 +12,6 @@
 #ifndef EFL_BUILD
 # define EFL_BUILD
 #endif
-#undef ELM_MODULE_HELPER_H
 #include "elm_module_helper.h"
 #include "elm_web_none_eo.h"
 
index 632bca3..5de174c 100644 (file)
@@ -4,7 +4,7 @@ src = files([
 
 shared_module('none',
     src,
-    dependencies: [elementary, elementary_deps],
+    dependencies: [elementary, elementary_deps, eio],
     install: true,
     install_dir : mod_install_dir
 )