diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/ecore/src/bin | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/ecore/src/bin')
-rw-r--r-- | libraries/ecore/src/bin/Makefile.am | 51 | ||||
-rw-r--r-- | libraries/ecore/src/bin/Makefile.in | 808 | ||||
-rw-r--r-- | libraries/ecore/src/bin/ecore_config.c | 324 | ||||
-rw-r--r-- | libraries/ecore/src/bin/ecore_test.c | 109 |
4 files changed, 1292 insertions, 0 deletions
diff --git a/libraries/ecore/src/bin/Makefile.am b/libraries/ecore/src/bin/Makefile.am new file mode 100644 index 0000000..79110e4 --- /dev/null +++ b/libraries/ecore/src/bin/Makefile.am | |||
@@ -0,0 +1,51 @@ | |||
1 | MAINTAINERCLEANFILES = Makefile.in | ||
2 | |||
3 | if BUILD_ECORE_CONFIG | ||
4 | ECORE_CONFIG_PROG = ecore_config | ||
5 | ECORE_CONFIG_LIB = $(top_builddir)/src/lib/ecore_config/libecore_config.la | ||
6 | else | ||
7 | ECORE_CONFIG_PROG = | ||
8 | ECORE_CONFIG_LIB = | ||
9 | endif | ||
10 | |||
11 | if EFL_ENABLE_TESTS | ||
12 | ECORE_TEST_PROG = ecore_test | ||
13 | endif | ||
14 | |||
15 | AM_CPPFLAGS = \ | ||
16 | -I$(top_srcdir)/src/lib/ecore \ | ||
17 | -I$(top_srcdir)/src/lib/ecore_config \ | ||
18 | -I$(top_builddir)/src/lib/ecore \ | ||
19 | -I$(top_builddir)/src/lib/ecore_config \ | ||
20 | -DPACKAGE_BIN_DIR=\"$(bindir)\" \ | ||
21 | -DPACKAGE_LIB_DIR=\"$(libdir)\" \ | ||
22 | -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \ | ||
23 | @EINA_CFLAGS@ @EVAS_CFLAGS@ | ||
24 | |||
25 | bin_PROGRAMS = $(ECORE_CONFIG_PROG) $(ECORE_TEST_PROG) | ||
26 | |||
27 | ecore_config_SOURCES = \ | ||
28 | ecore_config.c | ||
29 | |||
30 | ecore_config_LDADD = \ | ||
31 | $(ECORE_CONFIG_LIB) \ | ||
32 | $(top_builddir)/src/lib/ecore_ipc/libecore_ipc.la \ | ||
33 | $(top_builddir)/src/lib/ecore_con/libecore_con.la \ | ||
34 | $(top_builddir)/src/lib/ecore/libecore.la \ | ||
35 | @EINA_LIBS@ @EVAS_LIBS@ | ||
36 | |||
37 | ecore_config_DEPENDENCIES = \ | ||
38 | $(top_builddir)/src/lib/ecore_ipc/libecore_ipc.la \ | ||
39 | $(top_builddir)/src/lib/ecore_con/libecore_con.la \ | ||
40 | $(top_builddir)/src/lib/ecore/libecore.la \ | ||
41 | $(ECORE_CONFIG_LIB) | ||
42 | |||
43 | ecore_test_SOURCES = \ | ||
44 | ecore_test.c | ||
45 | |||
46 | ecore_test_LDADD = \ | ||
47 | $(top_builddir)/src/lib/ecore/libecore.la \ | ||
48 | @EINA_LIBS@ @EVAS_LIBS@ | ||
49 | |||
50 | ecore_test_DEPENDENCIES = \ | ||
51 | $(top_builddir)/src/lib/ecore/libecore.la | ||
diff --git a/libraries/ecore/src/bin/Makefile.in b/libraries/ecore/src/bin/Makefile.in new file mode 100644 index 0000000..387db21 --- /dev/null +++ b/libraries/ecore/src/bin/Makefile.in | |||
@@ -0,0 +1,808 @@ | |||
1 | # Makefile.in generated by automake 1.11.1 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | ||
6 | # Inc. | ||
7 | # This Makefile.in is free software; the Free Software Foundation | ||
8 | # gives unlimited permission to copy and/or distribute it, | ||
9 | # with or without modifications, as long as this notice is preserved. | ||
10 | |||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
13 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
14 | # PARTICULAR PURPOSE. | ||
15 | |||
16 | @SET_MAKE@ | ||
17 | |||
18 | VPATH = @srcdir@ | ||
19 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
20 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
21 | pkglibdir = $(libdir)/@PACKAGE@ | ||
22 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
23 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
24 | install_sh_DATA = $(install_sh) -c -m 644 | ||
25 | install_sh_PROGRAM = $(install_sh) -c | ||
26 | install_sh_SCRIPT = $(install_sh) -c | ||
27 | INSTALL_HEADER = $(INSTALL_DATA) | ||
28 | transform = $(program_transform_name) | ||
29 | NORMAL_INSTALL = : | ||
30 | PRE_INSTALL = : | ||
31 | POST_INSTALL = : | ||
32 | NORMAL_UNINSTALL = : | ||
33 | PRE_UNINSTALL = : | ||
34 | POST_UNINSTALL = : | ||
35 | build_triplet = @build@ | ||
36 | host_triplet = @host@ | ||
37 | bin_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) | ||
38 | subdir = src/bin | ||
39 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
40 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
41 | am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \ | ||
42 | $(top_srcdir)/m4/ac_path_generic.m4 \ | ||
43 | $(top_srcdir)/m4/check_x_extension.m4 \ | ||
44 | $(top_srcdir)/m4/ecore_check_module.m4 \ | ||
45 | $(top_srcdir)/m4/ecore_check_options.m4 \ | ||
46 | $(top_srcdir)/m4/efl_compiler_flag.m4 \ | ||
47 | $(top_srcdir)/m4/efl_doxygen.m4 \ | ||
48 | $(top_srcdir)/m4/efl_examples.m4 \ | ||
49 | $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \ | ||
50 | $(top_srcdir)/m4/efl_threads.m4 $(top_srcdir)/m4/gettext.m4 \ | ||
51 | $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ | ||
52 | $(top_srcdir)/m4/isc-posix.m4 $(top_srcdir)/m4/lib-ld.m4 \ | ||
53 | $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ | ||
54 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ | ||
55 | $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ | ||
56 | $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ | ||
57 | $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ | ||
58 | $(top_srcdir)/configure.ac | ||
59 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
60 | $(ACLOCAL_M4) | ||
61 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
62 | CONFIG_HEADER = $(top_builddir)/config.h | ||
63 | CONFIG_CLEAN_FILES = | ||
64 | CONFIG_CLEAN_VPATH_FILES = | ||
65 | @BUILD_ECORE_CONFIG_TRUE@am__EXEEXT_1 = ecore_config$(EXEEXT) | ||
66 | @EFL_ENABLE_TESTS_TRUE@am__EXEEXT_2 = ecore_test$(EXEEXT) | ||
67 | am__installdirs = "$(DESTDIR)$(bindir)" | ||
68 | PROGRAMS = $(bin_PROGRAMS) | ||
69 | am_ecore_config_OBJECTS = ecore_config.$(OBJEXT) | ||
70 | ecore_config_OBJECTS = $(am_ecore_config_OBJECTS) | ||
71 | @BUILD_ECORE_CONFIG_TRUE@am__DEPENDENCIES_1 = $(top_builddir)/src/lib/ecore_config/libecore_config.la | ||
72 | AM_V_lt = $(am__v_lt_$(V)) | ||
73 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
74 | am__v_lt_0 = --silent | ||
75 | am_ecore_test_OBJECTS = ecore_test.$(OBJEXT) | ||
76 | ecore_test_OBJECTS = $(am_ecore_test_OBJECTS) | ||
77 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
78 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
79 | am__depfiles_maybe = depfiles | ||
80 | am__mv = mv -f | ||
81 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
82 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
83 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
84 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
85 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
86 | $(AM_CFLAGS) $(CFLAGS) | ||
87 | AM_V_CC = $(am__v_CC_$(V)) | ||
88 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
89 | am__v_CC_0 = @echo " CC " $@; | ||
90 | AM_V_at = $(am__v_at_$(V)) | ||
91 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
92 | am__v_at_0 = @ | ||
93 | CCLD = $(CC) | ||
94 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
95 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
96 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
98 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
99 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
100 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
101 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
102 | am__v_GEN_0 = @echo " GEN " $@; | ||
103 | SOURCES = $(ecore_config_SOURCES) $(ecore_test_SOURCES) | ||
104 | DIST_SOURCES = $(ecore_config_SOURCES) $(ecore_test_SOURCES) | ||
105 | ETAGS = etags | ||
106 | CTAGS = ctags | ||
107 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
108 | ACLOCAL = @ACLOCAL@ | ||
109 | ALLOCA = @ALLOCA@ | ||
110 | AMTAR = @AMTAR@ | ||
111 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
112 | AR = @AR@ | ||
113 | AS = @AS@ | ||
114 | AUTOCONF = @AUTOCONF@ | ||
115 | AUTOHEADER = @AUTOHEADER@ | ||
116 | AUTOMAKE = @AUTOMAKE@ | ||
117 | AWK = @AWK@ | ||
118 | CARES_CFLAGS = @CARES_CFLAGS@ | ||
119 | CARES_LIBS = @CARES_LIBS@ | ||
120 | CC = @CC@ | ||
121 | CCDEPMODE = @CCDEPMODE@ | ||
122 | CFLAGS = @CFLAGS@ | ||
123 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
124 | CHECK_LIBS = @CHECK_LIBS@ | ||
125 | CPP = @CPP@ | ||
126 | CPPFLAGS = @CPPFLAGS@ | ||
127 | CURL_CFLAGS = @CURL_CFLAGS@ | ||
128 | CURL_LIBS = @CURL_LIBS@ | ||
129 | CXX = @CXX@ | ||
130 | CXXCPP = @CXXCPP@ | ||
131 | CXXDEPMODE = @CXXDEPMODE@ | ||
132 | CXXFLAGS = @CXXFLAGS@ | ||
133 | CYGPATH_W = @CYGPATH_W@ | ||
134 | DEFS = @DEFS@ | ||
135 | DEPDIR = @DEPDIR@ | ||
136 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
137 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
138 | DLLTOOL = @DLLTOOL@ | ||
139 | DSYMUTIL = @DSYMUTIL@ | ||
140 | DUMPBIN = @DUMPBIN@ | ||
141 | ECHO_C = @ECHO_C@ | ||
142 | ECHO_N = @ECHO_N@ | ||
143 | ECHO_T = @ECHO_T@ | ||
144 | ECORE_XCB_CFLAGS = @ECORE_XCB_CFLAGS@ | ||
145 | ECORE_XCB_LIBS = @ECORE_XCB_LIBS@ | ||
146 | EFL_ECORE_BUILD = @EFL_ECORE_BUILD@ | ||
147 | EFL_ECORE_CON_BUILD = @EFL_ECORE_CON_BUILD@ | ||
148 | EFL_ECORE_EVAS_BUILD = @EFL_ECORE_EVAS_BUILD@ | ||
149 | EFL_ECORE_FILE_BUILD = @EFL_ECORE_FILE_BUILD@ | ||
150 | EFL_ECORE_IMF_BUILD = @EFL_ECORE_IMF_BUILD@ | ||
151 | EFL_ECORE_IMF_EVAS_BUILD = @EFL_ECORE_IMF_EVAS_BUILD@ | ||
152 | EFL_ECORE_INPUT_BUILD = @EFL_ECORE_INPUT_BUILD@ | ||
153 | EFL_ECORE_INPUT_EVAS_BUILD = @EFL_ECORE_INPUT_EVAS_BUILD@ | ||
154 | EFL_ECORE_IPC_BUILD = @EFL_ECORE_IPC_BUILD@ | ||
155 | EFL_ECORE_PSL1GHT_BUILD = @EFL_ECORE_PSL1GHT_BUILD@ | ||
156 | EFL_ECORE_SDL_BUILD = @EFL_ECORE_SDL_BUILD@ | ||
157 | EFL_ECORE_WIN32_BUILD = @EFL_ECORE_WIN32_BUILD@ | ||
158 | EFL_ECORE_WINCE_BUILD = @EFL_ECORE_WINCE_BUILD@ | ||
159 | EFL_PTHREAD_CFLAGS = @EFL_PTHREAD_CFLAGS@ | ||
160 | EFL_PTHREAD_LIBS = @EFL_PTHREAD_LIBS@ | ||
161 | EGREP = @EGREP@ | ||
162 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
163 | EINA_LIBS = @EINA_LIBS@ | ||
164 | ESCAPE_CFLAGS = @ESCAPE_CFLAGS@ | ||
165 | ESCAPE_LIBS = @ESCAPE_LIBS@ | ||
166 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
167 | EVAS_LIBS = @EVAS_LIBS@ | ||
168 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
169 | EVIL_LIBS = @EVIL_LIBS@ | ||
170 | EXEEXT = @EXEEXT@ | ||
171 | FGREP = @FGREP@ | ||
172 | GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ | ||
173 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
174 | GLIB_LIBS = @GLIB_LIBS@ | ||
175 | GMSGFMT = @GMSGFMT@ | ||
176 | GMSGFMT_015 = @GMSGFMT_015@ | ||
177 | GREP = @GREP@ | ||
178 | INSTALL = @INSTALL@ | ||
179 | INSTALL_DATA = @INSTALL_DATA@ | ||
180 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
181 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
182 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
183 | INTLLIBS = @INTLLIBS@ | ||
184 | INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ | ||
185 | KEYSYMDEFS = @KEYSYMDEFS@ | ||
186 | LD = @LD@ | ||
187 | LDFLAGS = @LDFLAGS@ | ||
188 | LIBGCRYPT_CFLAGS = @LIBGCRYPT_CFLAGS@ | ||
189 | LIBGCRYPT_CONFIG = @LIBGCRYPT_CONFIG@ | ||
190 | LIBGCRYPT_LIBS = @LIBGCRYPT_LIBS@ | ||
191 | LIBICONV = @LIBICONV@ | ||
192 | LIBINTL = @LIBINTL@ | ||
193 | LIBOBJS = @LIBOBJS@ | ||
194 | LIBS = @LIBS@ | ||
195 | LIBTOOL = @LIBTOOL@ | ||
196 | LIPO = @LIPO@ | ||
197 | LN_S = @LN_S@ | ||
198 | LTLIBICONV = @LTLIBICONV@ | ||
199 | LTLIBINTL = @LTLIBINTL@ | ||
200 | LTLIBOBJS = @LTLIBOBJS@ | ||
201 | MAKEINFO = @MAKEINFO@ | ||
202 | MKDIR_P = @MKDIR_P@ | ||
203 | MSGFMT = @MSGFMT@ | ||
204 | MSGFMT_015 = @MSGFMT_015@ | ||
205 | MSGMERGE = @MSGMERGE@ | ||
206 | NM = @NM@ | ||
207 | NMEDIT = @NMEDIT@ | ||
208 | OBJC = @OBJC@ | ||
209 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
210 | OBJCFLAGS = @OBJCFLAGS@ | ||
211 | OBJDUMP = @OBJDUMP@ | ||
212 | OBJEXT = @OBJEXT@ | ||
213 | OTOOL = @OTOOL@ | ||
214 | OTOOL64 = @OTOOL64@ | ||
215 | PACKAGE = @PACKAGE@ | ||
216 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
217 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
218 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
219 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
220 | PACKAGE_URL = @PACKAGE_URL@ | ||
221 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
222 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
223 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
224 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
225 | PKG_CONFIG = @PKG_CONFIG@ | ||
226 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
227 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
228 | POSUB = @POSUB@ | ||
229 | RANLIB = @RANLIB@ | ||
230 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
231 | SDL_CONFIG = @SDL_CONFIG@ | ||
232 | SDL_LIBS = @SDL_LIBS@ | ||
233 | SED = @SED@ | ||
234 | SET_MAKE = @SET_MAKE@ | ||
235 | SHELL = @SHELL@ | ||
236 | SSL_CFLAGS = @SSL_CFLAGS@ | ||
237 | SSL_LIBS = @SSL_LIBS@ | ||
238 | STRIP = @STRIP@ | ||
239 | TLS2_CFLAGS = @TLS2_CFLAGS@ | ||
240 | TLS2_LIBS = @TLS2_LIBS@ | ||
241 | TLS_CFLAGS = @TLS_CFLAGS@ | ||
242 | TLS_LIBS = @TLS_LIBS@ | ||
243 | TSLIB_CFLAGS = @TSLIB_CFLAGS@ | ||
244 | TSLIB_LIBS = @TSLIB_LIBS@ | ||
245 | USE_NLS = @USE_NLS@ | ||
246 | VERSION = @VERSION@ | ||
247 | VMAJ = @VMAJ@ | ||
248 | WIN32_CFLAGS = @WIN32_CFLAGS@ | ||
249 | WIN32_CPPFLAGS = @WIN32_CPPFLAGS@ | ||
250 | WIN32_LIBS = @WIN32_LIBS@ | ||
251 | XCB_COMPOSITE_CFLAGS = @XCB_COMPOSITE_CFLAGS@ | ||
252 | XCB_COMPOSITE_LIBS = @XCB_COMPOSITE_LIBS@ | ||
253 | XCB_CURSOR_CFLAGS = @XCB_CURSOR_CFLAGS@ | ||
254 | XCB_CURSOR_LIBS = @XCB_CURSOR_LIBS@ | ||
255 | XCB_DAMAGE_CFLAGS = @XCB_DAMAGE_CFLAGS@ | ||
256 | XCB_DAMAGE_LIBS = @XCB_DAMAGE_LIBS@ | ||
257 | XCB_DPMS_CFLAGS = @XCB_DPMS_CFLAGS@ | ||
258 | XCB_DPMS_LIBS = @XCB_DPMS_LIBS@ | ||
259 | XCB_RANDR_CFLAGS = @XCB_RANDR_CFLAGS@ | ||
260 | XCB_RANDR_LIBS = @XCB_RANDR_LIBS@ | ||
261 | XCB_RENDER_CFLAGS = @XCB_RENDER_CFLAGS@ | ||
262 | XCB_RENDER_LIBS = @XCB_RENDER_LIBS@ | ||
263 | XCB_SCREENSAVER_CFLAGS = @XCB_SCREENSAVER_CFLAGS@ | ||
264 | XCB_SCREENSAVER_LIBS = @XCB_SCREENSAVER_LIBS@ | ||
265 | XCB_SHAPE_CFLAGS = @XCB_SHAPE_CFLAGS@ | ||
266 | XCB_SHAPE_LIBS = @XCB_SHAPE_LIBS@ | ||
267 | XCB_SYNC_CFLAGS = @XCB_SYNC_CFLAGS@ | ||
268 | XCB_SYNC_LIBS = @XCB_SYNC_LIBS@ | ||
269 | XCB_X11_CFLAGS = @XCB_X11_CFLAGS@ | ||
270 | XCB_X11_LIBS = @XCB_X11_LIBS@ | ||
271 | XCB_XFIXES_CFLAGS = @XCB_XFIXES_CFLAGS@ | ||
272 | XCB_XFIXES_LIBS = @XCB_XFIXES_LIBS@ | ||
273 | XCB_XGESTURE_CFLAGS = @XCB_XGESTURE_CFLAGS@ | ||
274 | XCB_XGESTURE_LIBS = @XCB_XGESTURE_LIBS@ | ||
275 | XCB_XINERAMA_CFLAGS = @XCB_XINERAMA_CFLAGS@ | ||
276 | XCB_XINERAMA_LIBS = @XCB_XINERAMA_LIBS@ | ||
277 | XCB_XINPUT_CFLAGS = @XCB_XINPUT_CFLAGS@ | ||
278 | XCB_XINPUT_LIBS = @XCB_XINPUT_LIBS@ | ||
279 | XCB_XPRINT_CFLAGS = @XCB_XPRINT_CFLAGS@ | ||
280 | XCB_XPRINT_LIBS = @XCB_XPRINT_LIBS@ | ||
281 | XCB_XTEST_CFLAGS = @XCB_XTEST_CFLAGS@ | ||
282 | XCB_XTEST_LIBS = @XCB_XTEST_LIBS@ | ||
283 | XCOMPOSITE_CFLAGS = @XCOMPOSITE_CFLAGS@ | ||
284 | XCOMPOSITE_LIBS = @XCOMPOSITE_LIBS@ | ||
285 | XDAMAGE_CFLAGS = @XDAMAGE_CFLAGS@ | ||
286 | XDAMAGE_LIBS = @XDAMAGE_LIBS@ | ||
287 | XDPMS_CFLAGS = @XDPMS_CFLAGS@ | ||
288 | XDPMS_LIBS = @XDPMS_LIBS@ | ||
289 | XFIXES_CFLAGS = @XFIXES_CFLAGS@ | ||
290 | XFIXES_LIBS = @XFIXES_LIBS@ | ||
291 | XGESTURE_CFLAGS = @XGESTURE_CFLAGS@ | ||
292 | XGESTURE_LIBS = @XGESTURE_LIBS@ | ||
293 | XGETTEXT = @XGETTEXT@ | ||
294 | XGETTEXT_015 = @XGETTEXT_015@ | ||
295 | XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ | ||
296 | XI2_CFLAGS = @XI2_CFLAGS@ | ||
297 | XI2_LIBS = @XI2_LIBS@ | ||
298 | XINERAMA_CFLAGS = @XINERAMA_CFLAGS@ | ||
299 | XINERAMA_LIBS = @XINERAMA_LIBS@ | ||
300 | XKB_CFLAGS = @XKB_CFLAGS@ | ||
301 | XKB_LIBS = @XKB_LIBS@ | ||
302 | XMKMF = @XMKMF@ | ||
303 | XPRINT_CFLAGS = @XPRINT_CFLAGS@ | ||
304 | XPRINT_LIBS = @XPRINT_LIBS@ | ||
305 | XRANDR_CFLAGS = @XRANDR_CFLAGS@ | ||
306 | XRANDR_LIBS = @XRANDR_LIBS@ | ||
307 | XRENDER_CFLAGS = @XRENDER_CFLAGS@ | ||
308 | XRENDER_LIBS = @XRENDER_LIBS@ | ||
309 | XSS_CFLAGS = @XSS_CFLAGS@ | ||
310 | XSS_LIBS = @XSS_LIBS@ | ||
311 | XTEST_CFLAGS = @XTEST_CFLAGS@ | ||
312 | XTEST_LIBS = @XTEST_LIBS@ | ||
313 | X_CFLAGS = @X_CFLAGS@ | ||
314 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
315 | X_LIBS = @X_LIBS@ | ||
316 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
317 | Xcursor_cflags = @Xcursor_cflags@ | ||
318 | Xcursor_libs = @Xcursor_libs@ | ||
319 | abs_builddir = @abs_builddir@ | ||
320 | abs_srcdir = @abs_srcdir@ | ||
321 | abs_top_builddir = @abs_top_builddir@ | ||
322 | abs_top_srcdir = @abs_top_srcdir@ | ||
323 | ac_ct_CC = @ac_ct_CC@ | ||
324 | ac_ct_CXX = @ac_ct_CXX@ | ||
325 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
326 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
327 | am__include = @am__include@ | ||
328 | am__leading_dot = @am__leading_dot@ | ||
329 | am__quote = @am__quote@ | ||
330 | am__tar = @am__tar@ | ||
331 | am__untar = @am__untar@ | ||
332 | bindir = @bindir@ | ||
333 | build = @build@ | ||
334 | build_alias = @build_alias@ | ||
335 | build_cpu = @build_cpu@ | ||
336 | build_os = @build_os@ | ||
337 | build_vendor = @build_vendor@ | ||
338 | builddir = @builddir@ | ||
339 | cocoa_ldflags = @cocoa_ldflags@ | ||
340 | datadir = @datadir@ | ||
341 | datarootdir = @datarootdir@ | ||
342 | dlopen_libs = @dlopen_libs@ | ||
343 | docdir = @docdir@ | ||
344 | dvidir = @dvidir@ | ||
345 | ecore_cocoa_cflags = @ecore_cocoa_cflags@ | ||
346 | ecore_cocoa_libs = @ecore_cocoa_libs@ | ||
347 | ecore_con_cflags = @ecore_con_cflags@ | ||
348 | ecore_con_libs = @ecore_con_libs@ | ||
349 | ecore_directfb_cflags = @ecore_directfb_cflags@ | ||
350 | ecore_directfb_libs = @ecore_directfb_libs@ | ||
351 | ecore_evas_cflags = @ecore_evas_cflags@ | ||
352 | ecore_evas_libs = @ecore_evas_libs@ | ||
353 | ecore_fb_cflags = @ecore_fb_cflags@ | ||
354 | ecore_fb_libs = @ecore_fb_libs@ | ||
355 | ecore_file_cflags = @ecore_file_cflags@ | ||
356 | ecore_file_libs = @ecore_file_libs@ | ||
357 | ecore_imf_cflags = @ecore_imf_cflags@ | ||
358 | ecore_imf_evas_cflags = @ecore_imf_evas_cflags@ | ||
359 | ecore_imf_evas_libs = @ecore_imf_evas_libs@ | ||
360 | ecore_imf_libs = @ecore_imf_libs@ | ||
361 | ecore_imf_xim_cflags = @ecore_imf_xim_cflags@ | ||
362 | ecore_imf_xim_libs = @ecore_imf_xim_libs@ | ||
363 | ecore_input_cflags = @ecore_input_cflags@ | ||
364 | ecore_input_evas_cflags = @ecore_input_evas_cflags@ | ||
365 | ecore_input_evas_libs = @ecore_input_evas_libs@ | ||
366 | ecore_input_libs = @ecore_input_libs@ | ||
367 | ecore_ipc_cflags = @ecore_ipc_cflags@ | ||
368 | ecore_ipc_libs = @ecore_ipc_libs@ | ||
369 | ecore_psl1ght_cflags = @ecore_psl1ght_cflags@ | ||
370 | ecore_psl1ght_libs = @ecore_psl1ght_libs@ | ||
371 | ecore_sdl_cflags = @ecore_sdl_cflags@ | ||
372 | ecore_sdl_libs = @ecore_sdl_libs@ | ||
373 | ecore_win32_cflags = @ecore_win32_cflags@ | ||
374 | ecore_win32_libs = @ecore_win32_libs@ | ||
375 | ecore_wince_cflags = @ecore_wince_cflags@ | ||
376 | ecore_wince_libs = @ecore_wince_libs@ | ||
377 | ecore_x_cflags = @ecore_x_cflags@ | ||
378 | ecore_x_libs = @ecore_x_libs@ | ||
379 | ecore_x_libs_private = @ecore_x_libs_private@ | ||
380 | efl_doxygen = @efl_doxygen@ | ||
381 | efl_have_doxygen = @efl_have_doxygen@ | ||
382 | exec_prefix = @exec_prefix@ | ||
383 | have_ecore_x_xcb_define = @have_ecore_x_xcb_define@ | ||
384 | host = @host@ | ||
385 | host_alias = @host_alias@ | ||
386 | host_cpu = @host_cpu@ | ||
387 | host_os = @host_os@ | ||
388 | host_vendor = @host_vendor@ | ||
389 | htmldir = @htmldir@ | ||
390 | includedir = @includedir@ | ||
391 | infodir = @infodir@ | ||
392 | install_sh = @install_sh@ | ||
393 | libdir = @libdir@ | ||
394 | libexecdir = @libexecdir@ | ||
395 | localedir = @localedir@ | ||
396 | localstatedir = @localstatedir@ | ||
397 | lt_ECHO = @lt_ECHO@ | ||
398 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
399 | mandir = @mandir@ | ||
400 | mkdir_p = @mkdir_p@ | ||
401 | oldincludedir = @oldincludedir@ | ||
402 | pdfdir = @pdfdir@ | ||
403 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
404 | prefix = @prefix@ | ||
405 | program_transform_name = @program_transform_name@ | ||
406 | psdir = @psdir@ | ||
407 | release_info = @release_info@ | ||
408 | requirements_ecore = @requirements_ecore@ | ||
409 | requirements_ecore_cocoa = @requirements_ecore_cocoa@ | ||
410 | requirements_ecore_con = @requirements_ecore_con@ | ||
411 | requirements_ecore_directfb = @requirements_ecore_directfb@ | ||
412 | requirements_ecore_evas = @requirements_ecore_evas@ | ||
413 | requirements_ecore_fb = @requirements_ecore_fb@ | ||
414 | requirements_ecore_file = @requirements_ecore_file@ | ||
415 | requirements_ecore_imf = @requirements_ecore_imf@ | ||
416 | requirements_ecore_imf_evas = @requirements_ecore_imf_evas@ | ||
417 | requirements_ecore_imf_xim = @requirements_ecore_imf_xim@ | ||
418 | requirements_ecore_input = @requirements_ecore_input@ | ||
419 | requirements_ecore_input_evas = @requirements_ecore_input_evas@ | ||
420 | requirements_ecore_ipc = @requirements_ecore_ipc@ | ||
421 | requirements_ecore_psl1ght = @requirements_ecore_psl1ght@ | ||
422 | requirements_ecore_sdl = @requirements_ecore_sdl@ | ||
423 | requirements_ecore_win32 = @requirements_ecore_win32@ | ||
424 | requirements_ecore_wince = @requirements_ecore_wince@ | ||
425 | requirements_ecore_x = @requirements_ecore_x@ | ||
426 | rt_libs = @rt_libs@ | ||
427 | sbindir = @sbindir@ | ||
428 | sharedstatedir = @sharedstatedir@ | ||
429 | srcdir = @srcdir@ | ||
430 | sysconfdir = @sysconfdir@ | ||
431 | target_alias = @target_alias@ | ||
432 | top_build_prefix = @top_build_prefix@ | ||
433 | top_builddir = @top_builddir@ | ||
434 | top_srcdir = @top_srcdir@ | ||
435 | version_info = @version_info@ | ||
436 | x_cflags = @x_cflags@ | ||
437 | x_includes = @x_includes@ | ||
438 | x_libs = @x_libs@ | ||
439 | MAINTAINERCLEANFILES = Makefile.in | ||
440 | @BUILD_ECORE_CONFIG_FALSE@ECORE_CONFIG_PROG = | ||
441 | @BUILD_ECORE_CONFIG_TRUE@ECORE_CONFIG_PROG = ecore_config | ||
442 | @BUILD_ECORE_CONFIG_FALSE@ECORE_CONFIG_LIB = | ||
443 | @BUILD_ECORE_CONFIG_TRUE@ECORE_CONFIG_LIB = $(top_builddir)/src/lib/ecore_config/libecore_config.la | ||
444 | @EFL_ENABLE_TESTS_TRUE@ECORE_TEST_PROG = ecore_test | ||
445 | AM_CPPFLAGS = \ | ||
446 | -I$(top_srcdir)/src/lib/ecore \ | ||
447 | -I$(top_srcdir)/src/lib/ecore_config \ | ||
448 | -I$(top_builddir)/src/lib/ecore \ | ||
449 | -I$(top_builddir)/src/lib/ecore_config \ | ||
450 | -DPACKAGE_BIN_DIR=\"$(bindir)\" \ | ||
451 | -DPACKAGE_LIB_DIR=\"$(libdir)\" \ | ||
452 | -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \ | ||
453 | @EINA_CFLAGS@ @EVAS_CFLAGS@ | ||
454 | |||
455 | ecore_config_SOURCES = \ | ||
456 | ecore_config.c | ||
457 | |||
458 | ecore_config_LDADD = \ | ||
459 | $(ECORE_CONFIG_LIB) \ | ||
460 | $(top_builddir)/src/lib/ecore_ipc/libecore_ipc.la \ | ||
461 | $(top_builddir)/src/lib/ecore_con/libecore_con.la \ | ||
462 | $(top_builddir)/src/lib/ecore/libecore.la \ | ||
463 | @EINA_LIBS@ @EVAS_LIBS@ | ||
464 | |||
465 | ecore_config_DEPENDENCIES = \ | ||
466 | $(top_builddir)/src/lib/ecore_ipc/libecore_ipc.la \ | ||
467 | $(top_builddir)/src/lib/ecore_con/libecore_con.la \ | ||
468 | $(top_builddir)/src/lib/ecore/libecore.la \ | ||
469 | $(ECORE_CONFIG_LIB) | ||
470 | |||
471 | ecore_test_SOURCES = \ | ||
472 | ecore_test.c | ||
473 | |||
474 | ecore_test_LDADD = \ | ||
475 | $(top_builddir)/src/lib/ecore/libecore.la \ | ||
476 | @EINA_LIBS@ @EVAS_LIBS@ | ||
477 | |||
478 | ecore_test_DEPENDENCIES = \ | ||
479 | $(top_builddir)/src/lib/ecore/libecore.la | ||
480 | |||
481 | all: all-am | ||
482 | |||
483 | .SUFFIXES: | ||
484 | .SUFFIXES: .c .lo .o .obj | ||
485 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
486 | @for dep in $?; do \ | ||
487 | case '$(am__configure_deps)' in \ | ||
488 | *$$dep*) \ | ||
489 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
490 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
491 | exit 1;; \ | ||
492 | esac; \ | ||
493 | done; \ | ||
494 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/bin/Makefile'; \ | ||
495 | $(am__cd) $(top_srcdir) && \ | ||
496 | $(AUTOMAKE) --gnu src/bin/Makefile | ||
497 | .PRECIOUS: Makefile | ||
498 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
499 | @case '$?' in \ | ||
500 | *config.status*) \ | ||
501 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
502 | *) \ | ||
503 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
504 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
505 | esac; | ||
506 | |||
507 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
508 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
509 | |||
510 | $(top_srcdir)/configure: $(am__configure_deps) | ||
511 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
512 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
513 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
514 | $(am__aclocal_m4_deps): | ||
515 | install-binPROGRAMS: $(bin_PROGRAMS) | ||
516 | @$(NORMAL_INSTALL) | ||
517 | test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" | ||
518 | @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ | ||
519 | for p in $$list; do echo "$$p $$p"; done | \ | ||
520 | sed 's/$(EXEEXT)$$//' | \ | ||
521 | while read p p1; do if test -f $$p || test -f $$p1; \ | ||
522 | then echo "$$p"; echo "$$p"; else :; fi; \ | ||
523 | done | \ | ||
524 | sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ | ||
525 | -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ | ||
526 | sed 'N;N;N;s,\n, ,g' | \ | ||
527 | $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ | ||
528 | { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ | ||
529 | if ($$2 == $$4) files[d] = files[d] " " $$1; \ | ||
530 | else { print "f", $$3 "/" $$4, $$1; } } \ | ||
531 | END { for (d in files) print "f", d, files[d] }' | \ | ||
532 | while read type dir files; do \ | ||
533 | if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ | ||
534 | test -z "$$files" || { \ | ||
535 | echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ | ||
536 | $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ | ||
537 | } \ | ||
538 | ; done | ||
539 | |||
540 | uninstall-binPROGRAMS: | ||
541 | @$(NORMAL_UNINSTALL) | ||
542 | @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ | ||
543 | files=`for p in $$list; do echo "$$p"; done | \ | ||
544 | sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ | ||
545 | -e 's/$$/$(EXEEXT)/' `; \ | ||
546 | test -n "$$list" || exit 0; \ | ||
547 | echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ | ||
548 | cd "$(DESTDIR)$(bindir)" && rm -f $$files | ||
549 | |||
550 | clean-binPROGRAMS: | ||
551 | @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ | ||
552 | echo " rm -f" $$list; \ | ||
553 | rm -f $$list || exit $$?; \ | ||
554 | test -n "$(EXEEXT)" || exit 0; \ | ||
555 | list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ | ||
556 | echo " rm -f" $$list; \ | ||
557 | rm -f $$list | ||
558 | ecore_config$(EXEEXT): $(ecore_config_OBJECTS) $(ecore_config_DEPENDENCIES) | ||
559 | @rm -f ecore_config$(EXEEXT) | ||
560 | $(AM_V_CCLD)$(LINK) $(ecore_config_OBJECTS) $(ecore_config_LDADD) $(LIBS) | ||
561 | ecore_test$(EXEEXT): $(ecore_test_OBJECTS) $(ecore_test_DEPENDENCIES) | ||
562 | @rm -f ecore_test$(EXEEXT) | ||
563 | $(AM_V_CCLD)$(LINK) $(ecore_test_OBJECTS) $(ecore_test_LDADD) $(LIBS) | ||
564 | |||
565 | mostlyclean-compile: | ||
566 | -rm -f *.$(OBJEXT) | ||
567 | |||
568 | distclean-compile: | ||
569 | -rm -f *.tab.c | ||
570 | |||
571 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecore_config.Po@am__quote@ | ||
572 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ecore_test.Po@am__quote@ | ||
573 | |||
574 | .c.o: | ||
575 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
576 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
577 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
578 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
579 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
580 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
581 | |||
582 | .c.obj: | ||
583 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
584 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
585 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
586 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
587 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
588 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
589 | |||
590 | .c.lo: | ||
591 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
592 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
593 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
594 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
595 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
596 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
597 | |||
598 | mostlyclean-libtool: | ||
599 | -rm -f *.lo | ||
600 | |||
601 | clean-libtool: | ||
602 | -rm -rf .libs _libs | ||
603 | |||
604 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
605 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
606 | unique=`for i in $$list; do \ | ||
607 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
608 | done | \ | ||
609 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
610 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
611 | mkid -fID $$unique | ||
612 | tags: TAGS | ||
613 | |||
614 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
615 | $(TAGS_FILES) $(LISP) | ||
616 | set x; \ | ||
617 | here=`pwd`; \ | ||
618 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
619 | unique=`for i in $$list; do \ | ||
620 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
621 | done | \ | ||
622 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
623 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
624 | shift; \ | ||
625 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
626 | test -n "$$unique" || unique=$$empty_fix; \ | ||
627 | if test $$# -gt 0; then \ | ||
628 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
629 | "$$@" $$unique; \ | ||
630 | else \ | ||
631 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
632 | $$unique; \ | ||
633 | fi; \ | ||
634 | fi | ||
635 | ctags: CTAGS | ||
636 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
637 | $(TAGS_FILES) $(LISP) | ||
638 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
639 | unique=`for i in $$list; do \ | ||
640 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
641 | done | \ | ||
642 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
643 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
644 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
645 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
646 | $$unique | ||
647 | |||
648 | GTAGS: | ||
649 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
650 | && $(am__cd) $(top_srcdir) \ | ||
651 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
652 | |||
653 | distclean-tags: | ||
654 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
655 | |||
656 | distdir: $(DISTFILES) | ||
657 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
658 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
659 | list='$(DISTFILES)'; \ | ||
660 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
661 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
662 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
663 | case $$dist_files in \ | ||
664 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
665 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
666 | sort -u` ;; \ | ||
667 | esac; \ | ||
668 | for file in $$dist_files; do \ | ||
669 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
670 | if test -d $$d/$$file; then \ | ||
671 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
672 | if test -d "$(distdir)/$$file"; then \ | ||
673 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
674 | fi; \ | ||
675 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
676 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
677 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
678 | fi; \ | ||
679 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
680 | else \ | ||
681 | test -f "$(distdir)/$$file" \ | ||
682 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
683 | || exit 1; \ | ||
684 | fi; \ | ||
685 | done | ||
686 | check-am: all-am | ||
687 | check: check-am | ||
688 | all-am: Makefile $(PROGRAMS) | ||
689 | installdirs: | ||
690 | for dir in "$(DESTDIR)$(bindir)"; do \ | ||
691 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
692 | done | ||
693 | install: install-am | ||
694 | install-exec: install-exec-am | ||
695 | install-data: install-data-am | ||
696 | uninstall: uninstall-am | ||
697 | |||
698 | install-am: all-am | ||
699 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
700 | |||
701 | installcheck: installcheck-am | ||
702 | install-strip: | ||
703 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
704 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
705 | `test -z '$(STRIP)' || \ | ||
706 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
707 | mostlyclean-generic: | ||
708 | |||
709 | clean-generic: | ||
710 | |||
711 | distclean-generic: | ||
712 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
713 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
714 | |||
715 | maintainer-clean-generic: | ||
716 | @echo "This command is intended for maintainers to use" | ||
717 | @echo "it deletes files that may require special tools to rebuild." | ||
718 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
719 | clean: clean-am | ||
720 | |||
721 | clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am | ||
722 | |||
723 | distclean: distclean-am | ||
724 | -rm -rf ./$(DEPDIR) | ||
725 | -rm -f Makefile | ||
726 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
727 | distclean-tags | ||
728 | |||
729 | dvi: dvi-am | ||
730 | |||
731 | dvi-am: | ||
732 | |||
733 | html: html-am | ||
734 | |||
735 | html-am: | ||
736 | |||
737 | info: info-am | ||
738 | |||
739 | info-am: | ||
740 | |||
741 | install-data-am: | ||
742 | |||
743 | install-dvi: install-dvi-am | ||
744 | |||
745 | install-dvi-am: | ||
746 | |||
747 | install-exec-am: install-binPROGRAMS | ||
748 | |||
749 | install-html: install-html-am | ||
750 | |||
751 | install-html-am: | ||
752 | |||
753 | install-info: install-info-am | ||
754 | |||
755 | install-info-am: | ||
756 | |||
757 | install-man: | ||
758 | |||
759 | install-pdf: install-pdf-am | ||
760 | |||
761 | install-pdf-am: | ||
762 | |||
763 | install-ps: install-ps-am | ||
764 | |||
765 | install-ps-am: | ||
766 | |||
767 | installcheck-am: | ||
768 | |||
769 | maintainer-clean: maintainer-clean-am | ||
770 | -rm -rf ./$(DEPDIR) | ||
771 | -rm -f Makefile | ||
772 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
773 | |||
774 | mostlyclean: mostlyclean-am | ||
775 | |||
776 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
777 | mostlyclean-libtool | ||
778 | |||
779 | pdf: pdf-am | ||
780 | |||
781 | pdf-am: | ||
782 | |||
783 | ps: ps-am | ||
784 | |||
785 | ps-am: | ||
786 | |||
787 | uninstall-am: uninstall-binPROGRAMS | ||
788 | |||
789 | .MAKE: install-am install-strip | ||
790 | |||
791 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ | ||
792 | clean-generic clean-libtool ctags distclean distclean-compile \ | ||
793 | distclean-generic distclean-libtool distclean-tags distdir dvi \ | ||
794 | dvi-am html html-am info info-am install install-am \ | ||
795 | install-binPROGRAMS install-data install-data-am install-dvi \ | ||
796 | install-dvi-am install-exec install-exec-am install-html \ | ||
797 | install-html-am install-info install-info-am install-man \ | ||
798 | install-pdf install-pdf-am install-ps install-ps-am \ | ||
799 | install-strip installcheck installcheck-am installdirs \ | ||
800 | maintainer-clean maintainer-clean-generic mostlyclean \ | ||
801 | mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ | ||
802 | pdf pdf-am ps ps-am tags uninstall uninstall-am \ | ||
803 | uninstall-binPROGRAMS | ||
804 | |||
805 | |||
806 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
807 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
808 | .NOEXPORT: | ||
diff --git a/libraries/ecore/src/bin/ecore_config.c b/libraries/ecore/src/bin/ecore_config.c new file mode 100644 index 0000000..b4973d9 --- /dev/null +++ b/libraries/ecore/src/bin/ecore_config.c | |||
@@ -0,0 +1,324 @@ | |||
1 | #include "config.h" | ||
2 | #include "Ecore.h" | ||
3 | |||
4 | #include <stdio.h> | ||
5 | #include <string.h> | ||
6 | #include <stdlib.h> | ||
7 | |||
8 | #ifdef BUILD_ECORE_CONFIG | ||
9 | #include <unistd.h> | ||
10 | #include <getopt.h> | ||
11 | #include <Eet.h> | ||
12 | #include "Ecore_Config.h" | ||
13 | #include "ecore_config_private.h" | ||
14 | |||
15 | // strcmp for paths - for sorting folders before files | ||
16 | static int | ||
17 | pathcmp(const char *s1, const char *s2) | ||
18 | { | ||
19 | char *s1d, *s2d; | ||
20 | |||
21 | // strip common part of paths | ||
22 | while(*s1 && *s2 && *s1 == *s2) | ||
23 | { | ||
24 | s1++; | ||
25 | s2++; | ||
26 | } | ||
27 | |||
28 | // handle /foo/bar/baz <> /foo/bar_baz properly | ||
29 | if (*s1 == '/' && *s2 != '/') return -1; | ||
30 | if (*s1 != '/' && *s2 == '/') return 1; | ||
31 | |||
32 | // skip leading / | ||
33 | if (*s1 == '/') s1++; | ||
34 | if (*s2 == '/') s2++; | ||
35 | |||
36 | // order folders before files | ||
37 | s1d = strchr(s1, '/'); | ||
38 | s2d = strchr(s2, '/'); | ||
39 | if (s1d && !s2d) return -1; | ||
40 | if (!s1d && s2d) return 1; | ||
41 | |||
42 | return strcmp(s1, s2); | ||
43 | } | ||
44 | |||
45 | static int | ||
46 | del(const char *key) | ||
47 | { | ||
48 | Ecore_Config_Prop *e; | ||
49 | e = ecore_config_get(key); | ||
50 | if(!e) return -1; | ||
51 | |||
52 | ecore_config_dst(e); | ||
53 | return 0; | ||
54 | } | ||
55 | |||
56 | static int | ||
57 | get(const char *key) | ||
58 | { | ||
59 | Ecore_Config_Prop *e; | ||
60 | char *temp = NULL; | ||
61 | |||
62 | if (!(e = ecore_config_get(key))) | ||
63 | { | ||
64 | EINA_LOG_ERR("No such property"); | ||
65 | return -1; | ||
66 | } | ||
67 | |||
68 | printf("%-10s", ecore_config_type_get(e)); | ||
69 | |||
70 | switch (e->type) | ||
71 | { | ||
72 | case ECORE_CONFIG_NIL: | ||
73 | printf("\n"); | ||
74 | break; | ||
75 | case ECORE_CONFIG_INT: | ||
76 | printf("%ld\n", ecore_config_int_get(key)); | ||
77 | break; | ||
78 | case ECORE_CONFIG_BLN: | ||
79 | printf("%d\n", ecore_config_boolean_get(key)); | ||
80 | break; | ||
81 | case ECORE_CONFIG_FLT: | ||
82 | printf("%lf\n", ecore_config_float_get(key)); | ||
83 | break; | ||
84 | case ECORE_CONFIG_STR: | ||
85 | temp = ecore_config_string_get(key); | ||
86 | break; | ||
87 | case ECORE_CONFIG_RGB: | ||
88 | temp = ecore_config_argbstr_get(key); | ||
89 | break; | ||
90 | case ECORE_CONFIG_THM: | ||
91 | temp = ecore_config_theme_get(key); | ||
92 | break; | ||
93 | default: | ||
94 | EINA_LOG_ERR("Property has unrecognized type"); | ||
95 | return -1; | ||
96 | } | ||
97 | if(temp) | ||
98 | { | ||
99 | printf("\"%s\"\n", temp); | ||
100 | free(temp); | ||
101 | } | ||
102 | return 0; | ||
103 | } | ||
104 | |||
105 | static int | ||
106 | list(const char *file) | ||
107 | { | ||
108 | Ecore_Config_Prop *e; | ||
109 | Eina_List *keys = NULL; | ||
110 | char *key; | ||
111 | |||
112 | e = __ecore_config_bundle_local->data; | ||
113 | |||
114 | do | ||
115 | { | ||
116 | // don't show system settings | ||
117 | if( !(e->flags & ECORE_CONFIG_FLAG_SYSTEM) ) | ||
118 | keys = eina_list_append(keys, e->key); | ||
119 | } | ||
120 | while((e = e->next)); | ||
121 | keys = eina_list_sort(keys, -1, EINA_COMPARE_CB(pathcmp)); | ||
122 | |||
123 | EINA_LIST_FREE(keys, key) | ||
124 | { | ||
125 | printf("%-28s\t", key); | ||
126 | get(key); | ||
127 | } | ||
128 | |||
129 | return 0; | ||
130 | } | ||
131 | |||
132 | static void | ||
133 | usage_and_exit(const char *prog, int ret, const char *msg) | ||
134 | { | ||
135 | if (msg) fprintf(stderr, "%s\n\n", msg); | ||
136 | fprintf(stderr, "Usage: %s <options> <command>\n", prog); | ||
137 | fprintf(stderr, "Modify ecore_config files\n\n"); | ||
138 | fprintf(stderr, "Options:\n"); | ||
139 | fprintf(stderr, " -c, --file=FILE config file\n"); | ||
140 | fprintf(stderr, " -k, --key=KEY must be given for all commands except -a\n\n"); | ||
141 | fprintf(stderr, "Commands:\n"); | ||
142 | fprintf(stderr, " -a, --list get all keys\n"); | ||
143 | fprintf(stderr, " -g, --get get key\n"); | ||
144 | fprintf(stderr, " -d, --del delete key\n"); | ||
145 | fprintf(stderr, " -b, --bool=VALUE set boolean\n"); | ||
146 | fprintf(stderr, " -f, --float=VALUE set float\n"); | ||
147 | fprintf(stderr, " -i, --int=VALUE set integer\n"); | ||
148 | fprintf(stderr, " -r, --rgb=VALUE set RGBA\n"); | ||
149 | fprintf(stderr, " -s, --string=VALUE set string\n"); | ||
150 | fprintf(stderr, " -t, --theme=VALUE set theme\n\n"); | ||
151 | exit(ret); | ||
152 | } | ||
153 | |||
154 | int | ||
155 | main(int argc, char * const argv[]) | ||
156 | { | ||
157 | char *prog, *file, *key; | ||
158 | void *value = (void *)NULL; | ||
159 | char cmd = 's'; | ||
160 | int type = -1; | ||
161 | int ret = 0; | ||
162 | long i; | ||
163 | float f; | ||
164 | |||
165 | file = key = prog = NULL; | ||
166 | eina_init(); | ||
167 | prog = strdup(argv[0]); | ||
168 | |||
169 | if(argc < 4) | ||
170 | usage_and_exit(prog, 2, NULL); | ||
171 | |||
172 | while(1) | ||
173 | { | ||
174 | static struct option long_options[] = { | ||
175 | {"file", 1, 0, 'c'}, | ||
176 | {"list", 0, 0, 'a'}, | ||
177 | {"get", 0, 0, 'g'}, | ||
178 | {"del", 0, 0, 'd'}, | ||
179 | {"bool", 1, 0, 'b'}, | ||
180 | {"float", 1, 0, 'f'}, | ||
181 | {"int", 1, 0, 'i'}, | ||
182 | {"rgb", 1, 0, 'r'}, | ||
183 | {"string", 1, 0, 's'}, | ||
184 | {"theme", 1, 0, 't'}, | ||
185 | {"key", 1, 0, 'k'}, | ||
186 | {0, 0, 0, 0} | ||
187 | }; | ||
188 | |||
189 | ret = getopt_long(argc, argv, "c:agdb:f:i:r:s:t:k:", long_options, NULL); | ||
190 | if(ret == -1) | ||
191 | break; | ||
192 | |||
193 | switch(ret) | ||
194 | { | ||
195 | case 'k': | ||
196 | key = strdup(optarg); | ||
197 | break; | ||
198 | case 'n': | ||
199 | if(value) | ||
200 | usage_and_exit(prog, 2, "too many commands"); | ||
201 | type = ECORE_CONFIG_NIL; | ||
202 | value = NULL; | ||
203 | break; | ||
204 | case 'b': | ||
205 | if(value) | ||
206 | usage_and_exit(prog, 2, "too many commands"); | ||
207 | type = ECORE_CONFIG_BLN; | ||
208 | i = atoi(optarg); | ||
209 | value = &i; | ||
210 | break; | ||
211 | case 'i': | ||
212 | if(value) | ||
213 | usage_and_exit(prog, 2, "too many commands"); | ||
214 | type = ECORE_CONFIG_INT; | ||
215 | i = atoi(optarg); | ||
216 | value = &i; | ||
217 | break; | ||
218 | case 'f': | ||
219 | if(value) | ||
220 | usage_and_exit(prog, 2, "too many commands"); | ||
221 | type = ECORE_CONFIG_FLT; | ||
222 | f = atof(optarg); | ||
223 | value = &f; | ||
224 | break; | ||
225 | case 'r': | ||
226 | if(value) | ||
227 | usage_and_exit(prog, 2, "too many commands"); | ||
228 | type = ECORE_CONFIG_RGB; | ||
229 | i = (long) strtoul( (*optarg == '#') ? (optarg + 1) : optarg, NULL, 16 ); | ||
230 | value = &i; | ||
231 | break; | ||
232 | case 's': | ||
233 | if(value) | ||
234 | usage_and_exit(prog, 2, "too many commands"); | ||
235 | type = ECORE_CONFIG_STR; | ||
236 | value = strdup(optarg); | ||
237 | break; | ||
238 | case 't': | ||
239 | if(value) | ||
240 | usage_and_exit(prog, 2, "too many commands"); | ||
241 | type = ECORE_CONFIG_THM; | ||
242 | value = strdup(optarg); | ||
243 | break; | ||
244 | case 'c': | ||
245 | if(file) | ||
246 | free(file); | ||
247 | file = strdup(optarg); | ||
248 | break; | ||
249 | case '?': | ||
250 | case ':': | ||
251 | return 1; | ||
252 | default: | ||
253 | cmd = ret; | ||
254 | break; | ||
255 | } | ||
256 | } | ||
257 | |||
258 | if(cmd == 's' && type == -1) | ||
259 | usage_and_exit(prog, 2, "You need to specify a command!"); | ||
260 | |||
261 | if(cmd != 'a' && !key) | ||
262 | usage_and_exit(prog, 2, "You need to specify key!"); | ||
263 | |||
264 | if(ecore_config_init("econfig") != ECORE_CONFIG_ERR_SUCC) | ||
265 | { | ||
266 | EINA_LOG_ERR("Couldn't init ecore_config!"); | ||
267 | return 1; | ||
268 | } | ||
269 | |||
270 | // Load configuration from file | ||
271 | ecore_config_file_load(file); | ||
272 | |||
273 | ret = 0; | ||
274 | |||
275 | // Execute command | ||
276 | switch (cmd) | ||
277 | { | ||
278 | case 's': | ||
279 | if (ecore_config_typed_set(key, value, type) != ECORE_CONFIG_ERR_SUCC) | ||
280 | { | ||
281 | fprintf(stderr, "Set failed for %s", key); | ||
282 | ret = 1; | ||
283 | } else { | ||
284 | ecore_config_file_save(file); | ||
285 | } | ||
286 | get(key); // display value after setting it | ||
287 | break; | ||
288 | case 'd': | ||
289 | if(del(key)) | ||
290 | { | ||
291 | fprintf(stderr, "Delete failed for %s", key); | ||
292 | ret = 1; | ||
293 | } else { | ||
294 | ecore_config_file_save(file); | ||
295 | } | ||
296 | break; | ||
297 | case 'g': | ||
298 | if (get(key)) ret = 1; | ||
299 | break; | ||
300 | case 'a': | ||
301 | if (list(file)) ret = 1; | ||
302 | break; | ||
303 | default: | ||
304 | EINA_LOG_ERR("Unhandled command '%c'", cmd); | ||
305 | } | ||
306 | |||
307 | ecore_config_shutdown(); | ||
308 | |||
309 | if(type == ECORE_CONFIG_STR || type == ECORE_CONFIG_THM) | ||
310 | free(value); | ||
311 | |||
312 | if(file) | ||
313 | free(file); | ||
314 | eina_shutdown(); | ||
315 | return ret; | ||
316 | } | ||
317 | #else | ||
318 | int | ||
319 | main(int argc, const char **argv) | ||
320 | { | ||
321 | printf("Ecore_config module not compiled. This program is empty.\n"); | ||
322 | return -1; | ||
323 | } | ||
324 | #endif | ||
diff --git a/libraries/ecore/src/bin/ecore_test.c b/libraries/ecore/src/bin/ecore_test.c new file mode 100644 index 0000000..851b2dd --- /dev/null +++ b/libraries/ecore/src/bin/ecore_test.c | |||
@@ -0,0 +1,109 @@ | |||
1 | #include "config.h" | ||
2 | |||
3 | #include <Ecore.h> | ||
4 | #include <assert.h> | ||
5 | #include <unistd.h> | ||
6 | |||
7 | const char *called = NULL; | ||
8 | |||
9 | static const char *idler_str = "idler"; | ||
10 | static const char *idle_enterer_str = "idler_enterer"; | ||
11 | static const char *idle_exiter_str = "idler_exiter"; | ||
12 | static const char *timer1_str = "timer 1"; | ||
13 | static const char *timer2_str = "timer 2"; | ||
14 | static const char *pipe_read_str = "pipe read"; | ||
15 | |||
16 | int count; | ||
17 | Ecore_Pipe *the_pipe; | ||
18 | |||
19 | Eina_Bool timer_one(void *data __UNUSED__) | ||
20 | { | ||
21 | fprintf(stderr, "timer 1\n"); | ||
22 | assert(called == pipe_read_str); | ||
23 | called = timer1_str; | ||
24 | ecore_pipe_write(the_pipe, "b", 1); | ||
25 | |||
26 | count++; | ||
27 | if (count == 10) | ||
28 | { | ||
29 | ecore_main_loop_quit(); | ||
30 | return EINA_FALSE; | ||
31 | } | ||
32 | |||
33 | return EINA_TRUE; | ||
34 | } | ||
35 | |||
36 | Eina_Bool timer_two(void *data __UNUSED__) | ||
37 | { | ||
38 | fprintf(stderr, "timer 2\n"); | ||
39 | assert(called == timer1_str); | ||
40 | called = timer2_str; | ||
41 | |||
42 | return EINA_TRUE; | ||
43 | } | ||
44 | |||
45 | Eina_Bool idle_enterer_one(void *data __UNUSED__) | ||
46 | { | ||
47 | fprintf(stderr, "idle enterer!\n"); | ||
48 | switch (count) | ||
49 | { | ||
50 | default: | ||
51 | assert(called == timer2_str); | ||
52 | break; | ||
53 | case 1: | ||
54 | assert(called == timer1_str); | ||
55 | break; | ||
56 | case 0: | ||
57 | assert(called == NULL); | ||
58 | } | ||
59 | called = idle_enterer_str; | ||
60 | return EINA_TRUE; | ||
61 | } | ||
62 | |||
63 | Eina_Bool idler_one(void *data __UNUSED__) | ||
64 | { | ||
65 | fprintf(stderr, "idler!\n"); | ||
66 | assert(called == idle_enterer_str); | ||
67 | called = idler_str; | ||
68 | if (count == 0) | ||
69 | ecore_timer_add(0.0, timer_two, NULL); | ||
70 | return EINA_TRUE; | ||
71 | } | ||
72 | |||
73 | Eina_Bool idle_exiter_one(void *data __UNUSED__) | ||
74 | { | ||
75 | fprintf(stderr, "idle exiter!\n"); | ||
76 | assert(called == idler_str); | ||
77 | called = idle_exiter_str; | ||
78 | return EINA_TRUE; | ||
79 | } | ||
80 | |||
81 | void pipe_read(void *data __UNUSED__, void *buffer __UNUSED__, unsigned int nbyte __UNUSED__) | ||
82 | { | ||
83 | fprintf(stderr, "pipe read\n"); | ||
84 | assert(called == idle_exiter_str); | ||
85 | called = pipe_read_str; | ||
86 | } | ||
87 | |||
88 | int main(int argc __UNUSED__, char **argv __UNUSED__) | ||
89 | { | ||
90 | assert(1 == ecore_init()); | ||
91 | |||
92 | the_pipe = ecore_pipe_add(&pipe_read, NULL); | ||
93 | assert(the_pipe != NULL); | ||
94 | assert(EINA_TRUE == ecore_pipe_write(the_pipe, "a", 1)); | ||
95 | |||
96 | assert(NULL != ecore_timer_add(0.0, timer_one, NULL)); | ||
97 | |||
98 | assert(NULL != ecore_idle_enterer_add(&idle_enterer_one, NULL)); | ||
99 | assert(NULL != ecore_idler_add(&idler_one, NULL)); | ||
100 | assert(NULL != ecore_idle_exiter_add(&idle_exiter_one, NULL)); | ||
101 | |||
102 | ecore_main_loop_begin(); | ||
103 | |||
104 | /* glib main loop exits on an idle enterer */ | ||
105 | assert(called == idle_enterer_str); | ||
106 | |||
107 | assert(0 == ecore_shutdown()); | ||
108 | return 0; | ||
109 | } | ||