summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-11-14 16:19:18 -0800
committerCedric BAIL <cedric@osg.samsung.com>2017-11-14 16:36:17 -0800
commitdf3d3f7334a79f1ab661b31787002f50af59b3f3 (patch)
treee0f1c5982e93837d2e6e1981b512801a5e471364
parent99654b7cd29b418e0308be350c8d26208c0905a8 (diff)
elementary: introduce Efl_Ui.h.
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac1
-rw-r--r--pc/.gitignore1
-rw-r--r--pc/efl-ui.pc.in20
-rw-r--r--src/Makefile_Elementary.am3
-rw-r--r--src/lib/elementary/Efl_Ui.h200
-rw-r--r--src/lib/elementary/elm_general.h4
7 files changed, 227 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index 057c2b6..8fb921c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -159,7 +159,8 @@ pc/emotion.pc \
159pc/ethumb.pc \ 159pc/ethumb.pc \
160pc/ethumb_client.pc \ 160pc/ethumb_client.pc \
161pc/elocation.pc \ 161pc/elocation.pc \
162pc/elementary.pc 162pc/elementary.pc \
163pc/efl-ui.pc
163 164
164if HAVE_CXX11 165if HAVE_CXX11
165pkgconfig_DATA += \ 166pkgconfig_DATA += \
diff --git a/configure.ac b/configure.ac
index ba9b783..003190b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5606,6 +5606,7 @@ pc/efl-cxx.pc
5606pc/efl-wl.pc 5606pc/efl-wl.pc
5607pc/efl-core.pc 5607pc/efl-core.pc
5608pc/efl-net.pc 5608pc/efl-net.pc
5609pc/efl-ui.pc
5609pc/evas-fb.pc 5610pc/evas-fb.pc
5610pc/evas-eglfs.pc 5611pc/evas-eglfs.pc
5611pc/evas-opengl-x11.pc 5612pc/evas-opengl-x11.pc
diff --git a/pc/.gitignore b/pc/.gitignore
index 5e87ab1..5657ab6 100644
--- a/pc/.gitignore
+++ b/pc/.gitignore
@@ -76,3 +76,4 @@
76/efl-wl.pc 76/efl-wl.pc
77/efl-core.pc 77/efl-core.pc
78/efl-net.pc 78/efl-net.pc
79/efl-ui.pc \ No newline at end of file
diff --git a/pc/efl-ui.pc.in b/pc/efl-ui.pc.in
new file mode 100644
index 0000000..04c9dcf
--- /dev/null
+++ b/pc/efl-ui.pc.in
@@ -0,0 +1,20 @@
1prefix=@prefix@
2exec_prefix=@exec_prefix@
3libdir=@libdir@
4includedir=@includedir@
5datarootdir=@datarootdir@
6datadir=@datadir@/elementary
7pkgdatadir=@datadir@/elementary
8vmaj=@VMAJ@
9vmin=@VMIN@
10vmic=@VMIC@
11themes=${pkgdatadir}/themes
12eoincludedir=@datadir@/eolian/include
13eolian_flags=-I${pc_sysrootdir}${eoincludedir}/elementary-@VMAJ@ -I${pc_sysrootdir}${eoincludedir}/emap-@VMAJ@ -I${pc_sysrootdir}${eoincludedir}/elocation-@VMAJ@ -I${pc_sysrootdir}${eoincludedir}/efreet-@VMAJ@ -I${pc_sysrootdir}${eoincludedir}/edje-@VMAJ@ -I${pc_sysrootdir}${eoincludedir}/eio-@VMAJ@ -I${pc_sysrootdir}${eoincludedir}/eldbus-@VMAJ@ -I${pc_sysrootdir}${eoincludedir}/ecore-con-@VMAJ@ -I${pc_sysrootdir}${eoincludedir}/ecore-@VMAJ@ -I${pc_sysrootdir}${eoincludedir}/efl-@VMAJ@ -I${pc_sysrootdir}${eoincludedir}/eo-@VMAJ@ -I${pc_sysrootdir}${eoincludedir}/eet-@VMAJ@ -I${pc_sysrootdir}${eoincludedir}/emile-@VMAJ@ -I${pc_sysrootdir}${eoincludedir}/eina-@VMAJ@
14
15Name: efl_ui
16Description: EFL user interface abstraction library
17Requires.private: @requirements_pc_elementary@
18Version: @VERSION@
19Libs: -L${libdir} -lelementary -lefl -leina -lpthread -leet -levas -lecore -lecore_evas -lecore_file -lecore_input -ledje -leo -lethumb_client -lemotion -lecore_imf -lecore_con -leldbus -lefreet -lefreet_mime -lefreet_trash -leio @requirements_public_libs_elementary@ @requirements_public_libs_eina@ @requirements_libs_eina@ @requirements_libs_elm@
20Cflags: -I${includedir}/elementary-@VMAJ@ -I${includedir}/emap-@VMAJ@ -I${includedir}/elocation-@VMAJ@ -I${includedir}/efreet-@VMAJ@ -I${includedir}/edje-@VMAJ@ -I${includedir}/eio-@VMAJ@ -I${includedir}/eldbus-@VMAJ@ -I${includedir}/ecore-@VMAJ@ -I${includedir}/efl-@VMAJ@ -I${includedir}/eo-@VMAJ@ -I${includedir}/eet-@VMAJ@ -I${includedir}/emile-@VMAJ@ -I${includedir}/eina-@VMAJ@
diff --git a/src/Makefile_Elementary.am b/src/Makefile_Elementary.am
index 4c79dc8..b83354a 100644
--- a/src/Makefile_Elementary.am
+++ b/src/Makefile_Elementary.am
@@ -324,7 +324,8 @@ includesunstable_HEADERS = \
324 lib/elementary/elm_code_indent.h \ 324 lib/elementary/elm_code_indent.h \
325 lib/elementary/elm_code_file.h \ 325 lib/elementary/elm_code_file.h \
326 lib/elementary/elm_code_parse.h \ 326 lib/elementary/elm_code_parse.h \
327 lib/elementary/elm_code_syntax.h 327 lib/elementary/elm_code_syntax.h \
328 lib/elementary/Efl_Ui.h
328includesunstabledir = $(includedir)/elementary-@VMAJ@ 329includesunstabledir = $(includedir)/elementary-@VMAJ@
329 330
330nodist_includesunstable_HEADERS = \ 331nodist_includesunstable_HEADERS = \
diff --git a/src/lib/elementary/Efl_Ui.h b/src/lib/elementary/Efl_Ui.h
new file mode 100644
index 0000000..09b2be9
--- /dev/null
+++ b/src/lib/elementary/Efl_Ui.h
@@ -0,0 +1,200 @@
1#ifndef _EFL_CORE_H
2#define _EFL_CORE_H
3
4#include <Efl_Config.h>
5#include <Elementary_Options.h>
6
7#ifdef _MSC_VER
8# include <Evil.h>
9#endif
10
11/* Standard headers for standard system calls etc. */
12#include <stdio.h>
13#include <stdlib.h>
14#include <unistd.h>
15#include <string.h>
16#include <sys/types.h>
17#include <sys/stat.h>
18#include <sys/time.h>
19#include <sys/param.h>
20#include <math.h>
21#include <fnmatch.h>
22#include <limits.h>
23#include <ctype.h>
24#include <time.h>
25#ifdef ELM_DIRENT_H
26#include <dirent.h>
27#endif
28#include <pwd.h>
29#include <errno.h>
30
31#ifdef ELM_UNIX
32#include <locale.h>
33#ifdef ELM_LIBINTL_H
34#include <libintl.h>
35#endif
36#include <signal.h>
37#include <grp.h>
38#include <glob.h>
39#endif
40
41#ifdef ELM_ALLOCA_H
42#include <alloca.h>
43#endif
44
45#ifdef ELM_WIN32
46#include <malloc.h>
47#ifndef alloca
48#define alloca _alloca
49#endif
50#endif
51
52#include <Eina.h>
53#include <Eo.h>
54#include <Efl.h>
55
56#ifdef EAPI
57# undef EAPI
58#endif
59
60#ifdef _WIN32
61# ifdef EFL_ECORE_BUILD
62# ifdef DLL_EXPORT
63# define EAPI __declspec(dllexport)
64# else
65# define EAPI
66# endif /* ! DLL_EXPORT */
67# else
68# define EAPI __declspec(dllimport)
69# endif /* ! EFL_ECORE_BUILD */
70#else
71# ifdef __GNUC__
72# if __GNUC__ >= 4
73# define EAPI __attribute__ ((visibility("default")))
74# else
75# define EAPI
76# endif
77# else
78# define EAPI
79# endif
80#endif /* ! _WIN32 */
81
82#ifdef _WIN32
83# define WIN32_LEAN_AND_MEAN
84# include <winsock2.h>
85# undef WIN32_LEAN_AND_MEAN
86#elif defined (__FreeBSD__) || defined (__OpenBSD__)
87# include <sys/select.h>
88# include <signal.h>
89#elif defined (__ANDROID__)
90# include <sys/select.h>
91#elif defined (__sun)
92# include <sys/siginfo.h>
93#else
94# include <sys/time.h>
95# if !defined (EXOTIC_NO_SIGNAL)
96# include <signal.h>
97# endif
98#endif
99
100#include <sys/types.h>
101
102#define __EFL_UI_IS_REQUIRED
103
104#include <Efl_Net.h>
105
106#include <Evas.h>
107#include <Evas_GL.h>
108#include <Eio.h>
109#include <Edje.h>
110#include <Eldbus.h>
111#include <Efreet.h>
112#include <Efreet_Mime.h>
113#include <Efreet_Trash.h>
114#include <Ethumb_Client.h>
115
116#ifdef ELM_ELOCATION
117#include <Elocation.h>
118#endif
119
120#ifdef ELM_EMAP
121#include <EMap.h>
122#endif
123
124#ifdef __cplusplus
125extern "C" {
126#endif
127
128extern EAPI double _efl_startup_time;
129
130# include <efl_ui_focus_object.eo.h>
131# include <efl_ui_focus_manager.eo.h>
132# include <efl_ui_focus_manager_calc.eo.h>
133# include <efl_ui_focus_manager_sub.eo.h>
134# include <efl_ui_focus_manager_root_focus.eo.h>
135# include <efl_ui_focus_user.eo.h>
136# include <efl_ui_textpath.eo.h>
137# include <efl_ui_translatable.eo.h>
138# include <efl_ui_focus_composition.eo.h>
139# include <efl_ui_focus_layer.eo.h>
140# include <efl_access.h>
141# include <efl_access_text.h>
142# include <efl_access_window.h>
143
144# include <efl_access_action.eo.h>
145# include <efl_access_component.eo.h>
146# include <efl_access_editable_text.eo.h>
147# include <efl_access_image.eo.h>
148# include <efl_access_selection.eo.h>
149# include <efl_access_value.eo.h>
150
151# include <efl_config_global.eo.h>
152# include <efl_ui_widget_part.eo.h>
153# include <efl_ui_layout_part.eo.h>
154# include <efl_ui_layout_part_box.eo.h>
155# include <efl_ui_layout_part_content.eo.h>
156# include <efl_ui_layout_part_text.eo.h>
157# include <efl_ui_layout_part_table.eo.h>
158# include <efl_ui_win_part.eo.h>
159# include <efl_ui_box.eo.h>
160# include <efl_ui_box_flow.eo.h>
161# include <efl_ui_box_stack.eo.h>
162# include <efl_ui_grid.eo.h>
163# include <efl_ui_grid_static.eo.h>
164# include <efl_ui_image.eo.h>
165# include <efl_ui_win.eo.h>
166# include <efl_ui_win_inlined.eo.h>
167# include <efl_ui_win_socket.eo.h>
168# include <efl_ui_text_interactive.eo.h>
169# include <efl_ui_text.eo.h>
170# include <efl_ui_text_editable.eo.h>
171# include <efl_ui_text_async.eo.h>
172# include <efl_ui_clock.h>
173# include <efl_ui_image_factory.eo.h>
174# include <efl_ui_video.h>
175# include <efl_ui_nstate.h>
176# include <efl_ui_calendar.h>
177# include <efl_ui_button_eo.h>
178# include <efl_ui_multibuttonentry.h>
179# include <efl_ui_slider_eo.h>
180# include <efl_ui_flip_eo.h>
181# include <efl_ui_frame_eo.h>
182# include <efl_ui_check_eo.h>
183# include <efl_ui_image_zoomable_eo.h>
184# include <efl_ui_progressbar_eo.h>
185# include <efl_ui_radio_eo.h>
186# include <efl_ui_bg_eo.h>
187# include <efl_ui_panes_eo.h>
188
189#ifdef __cplusplus
190}
191#endif
192
193#undef EAPI
194#define EAPI
195
196#endif
197
198// We are including efl_general.h again, just in case Efl_Core.h was already included before this
199// and the __EFL_*_IS_REQUIRED changed since then.
200#include <efl_general.h>
diff --git a/src/lib/elementary/elm_general.h b/src/lib/elementary/elm_general.h
index d718594..7564f12 100644
--- a/src/lib/elementary/elm_general.h
+++ b/src/lib/elementary/elm_general.h
@@ -96,9 +96,7 @@ extern EAPI double _elm_startup_time;
96#define ELM_MAIN() int main(int argc, char **argv) { int ret__; _elm_startup_time = ecore_time_unix_get(); ret__ = elm_quicklaunch_fallback(argc, argv); elm_shutdown(); return ret__; } 96#define ELM_MAIN() int main(int argc, char **argv) { int ret__; _elm_startup_time = ecore_time_unix_get(); ret__ = elm_quicklaunch_fallback(argc, argv); elm_shutdown(); return ret__; }
97#endif 97#endif
98 98
99#define __EFL_UI_IS_REQUIRED 99#include "Efl_Ui.h"
100
101#include "Efl_Core.h"
102 100
103/**************************************************************************/ 101/**************************************************************************/
104/* General calls */ 102/* General calls */