diff options
Diffstat (limited to 'libraries/evas/src/modules/loaders/generic')
3 files changed, 1229 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/loaders/generic/Makefile.am b/libraries/evas/src/modules/loaders/generic/Makefile.am new file mode 100644 index 0000000..a9e522e --- /dev/null +++ b/libraries/evas/src/modules/loaders/generic/Makefile.am | |||
@@ -0,0 +1,38 @@ | |||
1 | |||
2 | MAINTAINERCLEANFILES = Makefile.in | ||
3 | |||
4 | AM_CPPFLAGS = \ | ||
5 | -I. \ | ||
6 | -I$(top_srcdir)/src/lib \ | ||
7 | -I$(top_srcdir)/src/lib/include \ | ||
8 | @FREETYPE_CFLAGS@ \ | ||
9 | @PIXMAN_CFLAGS@ \ | ||
10 | @evas_image_loader_generic_cflags@ \ | ||
11 | @EINA_CFLAGS@ \ | ||
12 | @EVIL_CFLAGS@ \ | ||
13 | @WIN32_CPPFLAGS@ | ||
14 | |||
15 | AM_CFLAGS = @WIN32_CFLAGS@ | ||
16 | |||
17 | |||
18 | if BUILD_LOADER_GENERIC | ||
19 | if !EVAS_STATIC_BUILD_GENERIC | ||
20 | |||
21 | pkgdir = $(libdir)/evas/modules/loaders/generic/$(MODULE_ARCH) | ||
22 | pkg_LTLIBRARIES = module.la | ||
23 | |||
24 | module_la_SOURCES = evas_image_load_generic.c | ||
25 | |||
26 | module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_generic_libs@ @SHM_OPEN_LINK@ $(top_builddir)/src/lib/libevas.la | ||
27 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
28 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
29 | |||
30 | else | ||
31 | |||
32 | noinst_LTLIBRARIES = libevas_loader_generic.la | ||
33 | |||
34 | libevas_loader_generic_la_SOURCES = evas_image_load_generic.c | ||
35 | libevas_loader_generic_la_LIBADD = @evas_image_loader_generic_libs@ @SHM_OPEN_LINK@ | ||
36 | |||
37 | endif | ||
38 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/generic/Makefile.in b/libraries/evas/src/modules/loaders/generic/Makefile.in new file mode 100644 index 0000000..65a0bac --- /dev/null +++ b/libraries/evas/src/modules/loaders/generic/Makefile.in | |||
@@ -0,0 +1,761 @@ | |||
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 | subdir = src/modules/loaders/generic | ||
38 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
39 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
40 | am__aclocal_m4_deps = $(top_srcdir)/m4/efl_attribute.m4 \ | ||
41 | $(top_srcdir)/m4/efl_coverage.m4 \ | ||
42 | $(top_srcdir)/m4/efl_doxygen.m4 \ | ||
43 | $(top_srcdir)/m4/efl_fnmatch.m4 \ | ||
44 | $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \ | ||
45 | $(top_srcdir)/m4/evas_check_engine.m4 \ | ||
46 | $(top_srcdir)/m4/evas_check_loader.m4 \ | ||
47 | $(top_srcdir)/m4/evas_converter.m4 \ | ||
48 | $(top_srcdir)/m4/evas_dither.m4 \ | ||
49 | $(top_srcdir)/m4/evas_scaler.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
50 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | ||
51 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | ||
52 | $(top_srcdir)/configure.ac | ||
53 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
54 | $(ACLOCAL_M4) | ||
55 | mkinstalldirs = $(install_sh) -d | ||
56 | CONFIG_HEADER = $(top_builddir)/config.h | ||
57 | CONFIG_CLEAN_FILES = | ||
58 | CONFIG_CLEAN_VPATH_FILES = | ||
59 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
60 | am__vpath_adj = case $$p in \ | ||
61 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
62 | *) f=$$p;; \ | ||
63 | esac; | ||
64 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
65 | am__install_max = 40 | ||
66 | am__nobase_strip_setup = \ | ||
67 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
68 | am__nobase_strip = \ | ||
69 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
70 | am__nobase_list = $(am__nobase_strip_setup); \ | ||
71 | for p in $$list; do echo "$$p $$p"; done | \ | ||
72 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | ||
73 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | ||
74 | if (++n[$$2] == $(am__install_max)) \ | ||
75 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | ||
76 | END { for (dir in files) print dir, files[dir] }' | ||
77 | am__base_list = \ | ||
78 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
79 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
80 | am__installdirs = "$(DESTDIR)$(pkgdir)" | ||
81 | LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES) | ||
82 | libevas_loader_generic_la_DEPENDENCIES = | ||
83 | am__libevas_loader_generic_la_SOURCES_DIST = \ | ||
84 | evas_image_load_generic.c | ||
85 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_TRUE@am_libevas_loader_generic_la_OBJECTS = evas_image_load_generic.lo | ||
86 | libevas_loader_generic_la_OBJECTS = \ | ||
87 | $(am_libevas_loader_generic_la_OBJECTS) | ||
88 | AM_V_lt = $(am__v_lt_$(V)) | ||
89 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
90 | am__v_lt_0 = --silent | ||
91 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_TRUE@am_libevas_loader_generic_la_rpath = | ||
92 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
93 | am__module_la_SOURCES_DIST = evas_image_load_generic.c | ||
94 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_generic.lo | ||
95 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
96 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
97 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
98 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
99 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@am_module_la_rpath = -rpath \ | ||
100 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@ $(pkgdir) | ||
101 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
102 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
103 | am__depfiles_maybe = depfiles | ||
104 | am__mv = mv -f | ||
105 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
106 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
107 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
108 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
109 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
110 | $(AM_CFLAGS) $(CFLAGS) | ||
111 | AM_V_CC = $(am__v_CC_$(V)) | ||
112 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
113 | am__v_CC_0 = @echo " CC " $@; | ||
114 | AM_V_at = $(am__v_at_$(V)) | ||
115 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
116 | am__v_at_0 = @ | ||
117 | CCLD = $(CC) | ||
118 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
119 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
120 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
121 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
122 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
123 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
124 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
125 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
126 | am__v_GEN_0 = @echo " GEN " $@; | ||
127 | SOURCES = $(libevas_loader_generic_la_SOURCES) $(module_la_SOURCES) | ||
128 | DIST_SOURCES = $(am__libevas_loader_generic_la_SOURCES_DIST) \ | ||
129 | $(am__module_la_SOURCES_DIST) | ||
130 | ETAGS = etags | ||
131 | CTAGS = ctags | ||
132 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
133 | ACLOCAL = @ACLOCAL@ | ||
134 | ALLOCA = @ALLOCA@ | ||
135 | AMTAR = @AMTAR@ | ||
136 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
137 | AR = @AR@ | ||
138 | AS = @AS@ | ||
139 | AUTOCONF = @AUTOCONF@ | ||
140 | AUTOHEADER = @AUTOHEADER@ | ||
141 | AUTOMAKE = @AUTOMAKE@ | ||
142 | AWK = @AWK@ | ||
143 | CC = @CC@ | ||
144 | CCDEPMODE = @CCDEPMODE@ | ||
145 | CFLAGS = @CFLAGS@ | ||
146 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
147 | CHECK_LIBS = @CHECK_LIBS@ | ||
148 | CPP = @CPP@ | ||
149 | CPPFLAGS = @CPPFLAGS@ | ||
150 | CXX = @CXX@ | ||
151 | CXXCPP = @CXXCPP@ | ||
152 | CXXDEPMODE = @CXXDEPMODE@ | ||
153 | CXXFLAGS = @CXXFLAGS@ | ||
154 | CYGPATH_W = @CYGPATH_W@ | ||
155 | DEFS = @DEFS@ | ||
156 | DEPDIR = @DEPDIR@ | ||
157 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
158 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
159 | DLLTOOL = @DLLTOOL@ | ||
160 | DSYMUTIL = @DSYMUTIL@ | ||
161 | DUMPBIN = @DUMPBIN@ | ||
162 | ECHO_C = @ECHO_C@ | ||
163 | ECHO_N = @ECHO_N@ | ||
164 | ECHO_T = @ECHO_T@ | ||
165 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
166 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
167 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
168 | EDB_LIBS = @EDB_LIBS@ | ||
169 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
170 | EDJE_LIBS = @EDJE_LIBS@ | ||
171 | EET_CFLAGS = @EET_CFLAGS@ | ||
172 | EET_LIBS = @EET_LIBS@ | ||
173 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
174 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
175 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
176 | EGREP = @EGREP@ | ||
177 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
178 | EINA_LIBS = @EINA_LIBS@ | ||
179 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
180 | EVAS_LIBS = @EVAS_LIBS@ | ||
181 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
182 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
183 | EVIL_LIBS = @EVIL_LIBS@ | ||
184 | EXEEXT = @EXEEXT@ | ||
185 | FGREP = @FGREP@ | ||
186 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
187 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
188 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
189 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
190 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
191 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
192 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
193 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
194 | GREP = @GREP@ | ||
195 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
196 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
197 | INSTALL = @INSTALL@ | ||
198 | INSTALL_DATA = @INSTALL_DATA@ | ||
199 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
200 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
201 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
202 | LD = @LD@ | ||
203 | LDFLAGS = @LDFLAGS@ | ||
204 | LIBOBJS = @LIBOBJS@ | ||
205 | LIBS = @LIBS@ | ||
206 | LIBTOOL = @LIBTOOL@ | ||
207 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
208 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
209 | LIPO = @LIPO@ | ||
210 | LN_S = @LN_S@ | ||
211 | LTLIBOBJS = @LTLIBOBJS@ | ||
212 | MAKEINFO = @MAKEINFO@ | ||
213 | MKDIR_P = @MKDIR_P@ | ||
214 | MODULE_ARCH = @MODULE_ARCH@ | ||
215 | NM = @NM@ | ||
216 | NMEDIT = @NMEDIT@ | ||
217 | OBJC = @OBJC@ | ||
218 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
219 | OBJCFLAGS = @OBJCFLAGS@ | ||
220 | OBJDUMP = @OBJDUMP@ | ||
221 | OBJEXT = @OBJEXT@ | ||
222 | OTOOL = @OTOOL@ | ||
223 | OTOOL64 = @OTOOL64@ | ||
224 | PACKAGE = @PACKAGE@ | ||
225 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
226 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
227 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
228 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
229 | PACKAGE_URL = @PACKAGE_URL@ | ||
230 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
231 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
232 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
233 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
234 | PKG_CONFIG = @PKG_CONFIG@ | ||
235 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
236 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
237 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
238 | PNG_LIBS = @PNG_LIBS@ | ||
239 | RANLIB = @RANLIB@ | ||
240 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
241 | SDL_LIBS = @SDL_LIBS@ | ||
242 | SED = @SED@ | ||
243 | SET_MAKE = @SET_MAKE@ | ||
244 | SHELL = @SHELL@ | ||
245 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
246 | STRIP = @STRIP@ | ||
247 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
248 | SVG_LIBS = @SVG_LIBS@ | ||
249 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
250 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
251 | VERSION = @VERSION@ | ||
252 | VMAJ = @VMAJ@ | ||
253 | WIN32_CFLAGS = @WIN32_CFLAGS@ | ||
254 | WIN32_CPPFLAGS = @WIN32_CPPFLAGS@ | ||
255 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
256 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
257 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
258 | XCB_LIBS = @XCB_LIBS@ | ||
259 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
260 | XEXT_LIBS = @XEXT_LIBS@ | ||
261 | XMKMF = @XMKMF@ | ||
262 | X_CFLAGS = @X_CFLAGS@ | ||
263 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
264 | X_LIBS = @X_LIBS@ | ||
265 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
266 | abs_builddir = @abs_builddir@ | ||
267 | abs_srcdir = @abs_srcdir@ | ||
268 | abs_top_builddir = @abs_top_builddir@ | ||
269 | abs_top_srcdir = @abs_top_srcdir@ | ||
270 | ac_ct_CC = @ac_ct_CC@ | ||
271 | ac_ct_CXX = @ac_ct_CXX@ | ||
272 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
273 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
274 | altivec_cflags = @altivec_cflags@ | ||
275 | am__include = @am__include@ | ||
276 | am__leading_dot = @am__leading_dot@ | ||
277 | am__quote = @am__quote@ | ||
278 | am__tar = @am__tar@ | ||
279 | am__untar = @am__untar@ | ||
280 | bindir = @bindir@ | ||
281 | build = @build@ | ||
282 | build_alias = @build_alias@ | ||
283 | build_cpu = @build_cpu@ | ||
284 | build_os = @build_os@ | ||
285 | build_vendor = @build_vendor@ | ||
286 | builddir = @builddir@ | ||
287 | datadir = @datadir@ | ||
288 | datarootdir = @datarootdir@ | ||
289 | dlopen_libs = @dlopen_libs@ | ||
290 | docdir = @docdir@ | ||
291 | dvidir = @dvidir@ | ||
292 | edje_cc = @edje_cc@ | ||
293 | efl_doxygen = @efl_doxygen@ | ||
294 | efl_have_doxygen = @efl_have_doxygen@ | ||
295 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
296 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
297 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
298 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
299 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
300 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
301 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
302 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
303 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
304 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
305 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
306 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
307 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
308 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
309 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
310 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
311 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
312 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
313 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
314 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
315 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
316 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
317 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
318 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
319 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
320 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
321 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
322 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
323 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
324 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
325 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
326 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
327 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
328 | evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@ | ||
329 | evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@ | ||
330 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
331 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
332 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
333 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
334 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
335 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
336 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
337 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
338 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
339 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
340 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
341 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
342 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
343 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
344 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
345 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
346 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
347 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
348 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
349 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
350 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
351 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
352 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
353 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
354 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
355 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
356 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
357 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
358 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
359 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
360 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
361 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
362 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
363 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
364 | exec_prefix = @exec_prefix@ | ||
365 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
366 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
367 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
368 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
369 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
370 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
371 | have_lcov = @have_lcov@ | ||
372 | host = @host@ | ||
373 | host_alias = @host_alias@ | ||
374 | host_cpu = @host_cpu@ | ||
375 | host_os = @host_os@ | ||
376 | host_vendor = @host_vendor@ | ||
377 | htmldir = @htmldir@ | ||
378 | includedir = @includedir@ | ||
379 | infodir = @infodir@ | ||
380 | install_sh = @install_sh@ | ||
381 | libdir = @libdir@ | ||
382 | libexecdir = @libexecdir@ | ||
383 | localedir = @localedir@ | ||
384 | localstatedir = @localstatedir@ | ||
385 | lt_ECHO = @lt_ECHO@ | ||
386 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
387 | mandir = @mandir@ | ||
388 | mkdir_p = @mkdir_p@ | ||
389 | oldincludedir = @oldincludedir@ | ||
390 | pdfdir = @pdfdir@ | ||
391 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
392 | prefix = @prefix@ | ||
393 | program_transform_name = @program_transform_name@ | ||
394 | psdir = @psdir@ | ||
395 | pthread_cflags = @pthread_cflags@ | ||
396 | pthread_libs = @pthread_libs@ | ||
397 | release_info = @release_info@ | ||
398 | requirement_evas = @requirement_evas@ | ||
399 | sbindir = @sbindir@ | ||
400 | sharedstatedir = @sharedstatedir@ | ||
401 | srcdir = @srcdir@ | ||
402 | sysconfdir = @sysconfdir@ | ||
403 | target_alias = @target_alias@ | ||
404 | top_build_prefix = @top_build_prefix@ | ||
405 | top_builddir = @top_builddir@ | ||
406 | top_srcdir = @top_srcdir@ | ||
407 | version_info = @version_info@ | ||
408 | MAINTAINERCLEANFILES = Makefile.in | ||
409 | AM_CPPFLAGS = \ | ||
410 | -I. \ | ||
411 | -I$(top_srcdir)/src/lib \ | ||
412 | -I$(top_srcdir)/src/lib/include \ | ||
413 | @FREETYPE_CFLAGS@ \ | ||
414 | @PIXMAN_CFLAGS@ \ | ||
415 | @evas_image_loader_generic_cflags@ \ | ||
416 | @EINA_CFLAGS@ \ | ||
417 | @EVIL_CFLAGS@ \ | ||
418 | @WIN32_CPPFLAGS@ | ||
419 | |||
420 | AM_CFLAGS = @WIN32_CFLAGS@ | ||
421 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@pkgdir = $(libdir)/evas/modules/loaders/generic/$(MODULE_ARCH) | ||
422 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@pkg_LTLIBRARIES = module.la | ||
423 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@module_la_SOURCES = evas_image_load_generic.c | ||
424 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_generic_libs@ @SHM_OPEN_LINK@ $(top_builddir)/src/lib/libevas.la | ||
425 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
426 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
427 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_TRUE@noinst_LTLIBRARIES = libevas_loader_generic.la | ||
428 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_TRUE@libevas_loader_generic_la_SOURCES = evas_image_load_generic.c | ||
429 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_TRUE@libevas_loader_generic_la_LIBADD = @evas_image_loader_generic_libs@ @SHM_OPEN_LINK@ | ||
430 | all: all-am | ||
431 | |||
432 | .SUFFIXES: | ||
433 | .SUFFIXES: .c .lo .o .obj | ||
434 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
435 | @for dep in $?; do \ | ||
436 | case '$(am__configure_deps)' in \ | ||
437 | *$$dep*) \ | ||
438 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
439 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
440 | exit 1;; \ | ||
441 | esac; \ | ||
442 | done; \ | ||
443 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/generic/Makefile'; \ | ||
444 | $(am__cd) $(top_srcdir) && \ | ||
445 | $(AUTOMAKE) --gnu src/modules/loaders/generic/Makefile | ||
446 | .PRECIOUS: Makefile | ||
447 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
448 | @case '$?' in \ | ||
449 | *config.status*) \ | ||
450 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
451 | *) \ | ||
452 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
453 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
454 | esac; | ||
455 | |||
456 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
457 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
458 | |||
459 | $(top_srcdir)/configure: $(am__configure_deps) | ||
460 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
461 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
462 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
463 | $(am__aclocal_m4_deps): | ||
464 | |||
465 | clean-noinstLTLIBRARIES: | ||
466 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) | ||
467 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | ||
468 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
469 | test "$$dir" != "$$p" || dir=.; \ | ||
470 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
471 | rm -f "$${dir}/so_locations"; \ | ||
472 | done | ||
473 | install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) | ||
474 | @$(NORMAL_INSTALL) | ||
475 | test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)" | ||
476 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
477 | list2=; for p in $$list; do \ | ||
478 | if test -f $$p; then \ | ||
479 | list2="$$list2 $$p"; \ | ||
480 | else :; fi; \ | ||
481 | done; \ | ||
482 | test -z "$$list2" || { \ | ||
483 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ | ||
484 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ | ||
485 | } | ||
486 | |||
487 | uninstall-pkgLTLIBRARIES: | ||
488 | @$(NORMAL_UNINSTALL) | ||
489 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
490 | for p in $$list; do \ | ||
491 | $(am__strip_dir) \ | ||
492 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ | ||
493 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ | ||
494 | done | ||
495 | |||
496 | clean-pkgLTLIBRARIES: | ||
497 | -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) | ||
498 | @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \ | ||
499 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
500 | test "$$dir" != "$$p" || dir=.; \ | ||
501 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
502 | rm -f "$${dir}/so_locations"; \ | ||
503 | done | ||
504 | libevas_loader_generic.la: $(libevas_loader_generic_la_OBJECTS) $(libevas_loader_generic_la_DEPENDENCIES) | ||
505 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_generic_la_rpath) $(libevas_loader_generic_la_OBJECTS) $(libevas_loader_generic_la_LIBADD) $(LIBS) | ||
506 | module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES) | ||
507 | $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS) | ||
508 | |||
509 | mostlyclean-compile: | ||
510 | -rm -f *.$(OBJEXT) | ||
511 | |||
512 | distclean-compile: | ||
513 | -rm -f *.tab.c | ||
514 | |||
515 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_generic.Plo@am__quote@ | ||
516 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_generic.Plo@am__quote@ | ||
517 | |||
518 | .c.o: | ||
519 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
520 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
521 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
522 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
523 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
524 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
525 | |||
526 | .c.obj: | ||
527 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
528 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
529 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
530 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
531 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
532 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
533 | |||
534 | .c.lo: | ||
535 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
536 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
537 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
538 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
539 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
540 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
541 | |||
542 | module_la-evas_image_load_generic.lo: evas_image_load_generic.c | ||
543 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT module_la-evas_image_load_generic.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_generic.Tpo -c -o module_la-evas_image_load_generic.lo `test -f 'evas_image_load_generic.c' || echo '$(srcdir)/'`evas_image_load_generic.c | ||
544 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_generic.Tpo $(DEPDIR)/module_la-evas_image_load_generic.Plo | ||
545 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
546 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_generic.c' object='module_la-evas_image_load_generic.lo' libtool=yes @AMDEPBACKSLASH@ | ||
547 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
548 | @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o module_la-evas_image_load_generic.lo `test -f 'evas_image_load_generic.c' || echo '$(srcdir)/'`evas_image_load_generic.c | ||
549 | |||
550 | mostlyclean-libtool: | ||
551 | -rm -f *.lo | ||
552 | |||
553 | clean-libtool: | ||
554 | -rm -rf .libs _libs | ||
555 | |||
556 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
557 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
558 | unique=`for i in $$list; do \ | ||
559 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
560 | done | \ | ||
561 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
562 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
563 | mkid -fID $$unique | ||
564 | tags: TAGS | ||
565 | |||
566 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
567 | $(TAGS_FILES) $(LISP) | ||
568 | set x; \ | ||
569 | here=`pwd`; \ | ||
570 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
571 | unique=`for i in $$list; do \ | ||
572 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
573 | done | \ | ||
574 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
575 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
576 | shift; \ | ||
577 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
578 | test -n "$$unique" || unique=$$empty_fix; \ | ||
579 | if test $$# -gt 0; then \ | ||
580 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
581 | "$$@" $$unique; \ | ||
582 | else \ | ||
583 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
584 | $$unique; \ | ||
585 | fi; \ | ||
586 | fi | ||
587 | ctags: CTAGS | ||
588 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
589 | $(TAGS_FILES) $(LISP) | ||
590 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
591 | unique=`for i in $$list; do \ | ||
592 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
593 | done | \ | ||
594 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
595 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
596 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
597 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
598 | $$unique | ||
599 | |||
600 | GTAGS: | ||
601 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
602 | && $(am__cd) $(top_srcdir) \ | ||
603 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
604 | |||
605 | distclean-tags: | ||
606 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
607 | |||
608 | distdir: $(DISTFILES) | ||
609 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
610 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
611 | list='$(DISTFILES)'; \ | ||
612 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
613 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
614 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
615 | case $$dist_files in \ | ||
616 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
617 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
618 | sort -u` ;; \ | ||
619 | esac; \ | ||
620 | for file in $$dist_files; do \ | ||
621 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
622 | if test -d $$d/$$file; then \ | ||
623 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
624 | if test -d "$(distdir)/$$file"; then \ | ||
625 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
626 | fi; \ | ||
627 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
628 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
629 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
630 | fi; \ | ||
631 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
632 | else \ | ||
633 | test -f "$(distdir)/$$file" \ | ||
634 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
635 | || exit 1; \ | ||
636 | fi; \ | ||
637 | done | ||
638 | check-am: all-am | ||
639 | check: check-am | ||
640 | all-am: Makefile $(LTLIBRARIES) | ||
641 | installdirs: | ||
642 | for dir in "$(DESTDIR)$(pkgdir)"; do \ | ||
643 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
644 | done | ||
645 | install: install-am | ||
646 | install-exec: install-exec-am | ||
647 | install-data: install-data-am | ||
648 | uninstall: uninstall-am | ||
649 | |||
650 | install-am: all-am | ||
651 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
652 | |||
653 | installcheck: installcheck-am | ||
654 | install-strip: | ||
655 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
656 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
657 | `test -z '$(STRIP)' || \ | ||
658 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
659 | mostlyclean-generic: | ||
660 | |||
661 | clean-generic: | ||
662 | |||
663 | distclean-generic: | ||
664 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
665 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
666 | |||
667 | maintainer-clean-generic: | ||
668 | @echo "This command is intended for maintainers to use" | ||
669 | @echo "it deletes files that may require special tools to rebuild." | ||
670 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
671 | clean: clean-am | ||
672 | |||
673 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ | ||
674 | clean-pkgLTLIBRARIES mostlyclean-am | ||
675 | |||
676 | distclean: distclean-am | ||
677 | -rm -rf ./$(DEPDIR) | ||
678 | -rm -f Makefile | ||
679 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
680 | distclean-tags | ||
681 | |||
682 | dvi: dvi-am | ||
683 | |||
684 | dvi-am: | ||
685 | |||
686 | html: html-am | ||
687 | |||
688 | html-am: | ||
689 | |||
690 | info: info-am | ||
691 | |||
692 | info-am: | ||
693 | |||
694 | install-data-am: install-pkgLTLIBRARIES | ||
695 | |||
696 | install-dvi: install-dvi-am | ||
697 | |||
698 | install-dvi-am: | ||
699 | |||
700 | install-exec-am: | ||
701 | |||
702 | install-html: install-html-am | ||
703 | |||
704 | install-html-am: | ||
705 | |||
706 | install-info: install-info-am | ||
707 | |||
708 | install-info-am: | ||
709 | |||
710 | install-man: | ||
711 | |||
712 | install-pdf: install-pdf-am | ||
713 | |||
714 | install-pdf-am: | ||
715 | |||
716 | install-ps: install-ps-am | ||
717 | |||
718 | install-ps-am: | ||
719 | |||
720 | installcheck-am: | ||
721 | |||
722 | maintainer-clean: maintainer-clean-am | ||
723 | -rm -rf ./$(DEPDIR) | ||
724 | -rm -f Makefile | ||
725 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
726 | |||
727 | mostlyclean: mostlyclean-am | ||
728 | |||
729 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
730 | mostlyclean-libtool | ||
731 | |||
732 | pdf: pdf-am | ||
733 | |||
734 | pdf-am: | ||
735 | |||
736 | ps: ps-am | ||
737 | |||
738 | ps-am: | ||
739 | |||
740 | uninstall-am: uninstall-pkgLTLIBRARIES | ||
741 | |||
742 | .MAKE: install-am install-strip | ||
743 | |||
744 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
745 | clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \ | ||
746 | ctags distclean distclean-compile distclean-generic \ | ||
747 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
748 | html-am info info-am install install-am install-data \ | ||
749 | install-data-am install-dvi install-dvi-am install-exec \ | ||
750 | install-exec-am install-html install-html-am install-info \ | ||
751 | install-info-am install-man install-pdf install-pdf-am \ | ||
752 | install-pkgLTLIBRARIES install-ps install-ps-am install-strip \ | ||
753 | installcheck installcheck-am installdirs maintainer-clean \ | ||
754 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
755 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
756 | tags uninstall uninstall-am uninstall-pkgLTLIBRARIES | ||
757 | |||
758 | |||
759 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
760 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
761 | .NOEXPORT: | ||
diff --git a/libraries/evas/src/modules/loaders/generic/evas_image_load_generic.c b/libraries/evas/src/modules/loaders/generic/evas_image_load_generic.c new file mode 100644 index 0000000..88c189d --- /dev/null +++ b/libraries/evas/src/modules/loaders/generic/evas_image_load_generic.c | |||
@@ -0,0 +1,430 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include "config.h" | ||
3 | #endif | ||
4 | |||
5 | #ifdef HAVE_EVIL | ||
6 | # include <Evil.h> | ||
7 | #endif | ||
8 | |||
9 | #include "evas_common.h" | ||
10 | #include "evas_private.h" | ||
11 | |||
12 | #include <stdio.h> | ||
13 | #include <sys/types.h> | ||
14 | #include <sys/mman.h> | ||
15 | #include <sys/stat.h> | ||
16 | #include <fcntl.h> | ||
17 | #include <ctype.h> | ||
18 | |||
19 | static Eina_Bool evas_image_load_file_head_generic(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
20 | static Eina_Bool evas_image_load_file_data_generic(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
21 | |||
22 | Evas_Image_Load_Func evas_image_load_generic_func = | ||
23 | { | ||
24 | EINA_TRUE, | ||
25 | evas_image_load_file_head_generic, | ||
26 | evas_image_load_file_data_generic, | ||
27 | NULL | ||
28 | }; | ||
29 | |||
30 | static Eina_Bool | ||
31 | illegal_char(const char *str) | ||
32 | { | ||
33 | const char *p; | ||
34 | |||
35 | for (p = str; *p; p++) | ||
36 | { | ||
37 | if (*p < '-') return EINA_TRUE; | ||
38 | if (*p == '/') return EINA_TRUE; | ||
39 | if (*p == ';') return EINA_TRUE; | ||
40 | if (*p == ':') return EINA_TRUE; | ||
41 | if (*p == '<') return EINA_TRUE; | ||
42 | if (*p == '>') return EINA_TRUE; | ||
43 | if (*p == '?') return EINA_TRUE; | ||
44 | if (*p == '[') return EINA_TRUE; | ||
45 | if (*p == '\\') return EINA_TRUE; | ||
46 | if (*p == ']') return EINA_TRUE; | ||
47 | if (*p == '`') return EINA_TRUE; | ||
48 | if (*p == '{') return EINA_TRUE; | ||
49 | if (*p == '|') return EINA_TRUE; | ||
50 | if (*p == '}') return EINA_TRUE; | ||
51 | if (*p == '~') return EINA_TRUE; | ||
52 | if (*p == 0x7f) return EINA_TRUE; | ||
53 | } | ||
54 | return EINA_FALSE; | ||
55 | } | ||
56 | |||
57 | static void | ||
58 | escape_copy(const char *src, char *dst) | ||
59 | { | ||
60 | const char *s; | ||
61 | char *d; | ||
62 | |||
63 | for (s = src, d = dst; *s; s++, d++) | ||
64 | { | ||
65 | // FIXME: escape tab, newline linefeed and friends | ||
66 | if ((*s == ' ') || | ||
67 | (*s == '!') || | ||
68 | (*s == '"') || | ||
69 | (*s == '#') || | ||
70 | (*s == '$') || | ||
71 | (*s == '%') || | ||
72 | (*s == '&') || | ||
73 | (*s == '\'') || | ||
74 | (*s == '(') || | ||
75 | (*s == ')') || | ||
76 | (*s == '*') || | ||
77 | (*s == '[') || | ||
78 | (*s == '\\') || | ||
79 | (*s == ']') || | ||
80 | (*s == '`') || | ||
81 | (*s == '{') || | ||
82 | (*s == '|') || | ||
83 | (*s == '}') || | ||
84 | (*s == '~')) | ||
85 | { | ||
86 | *d = '\\'; | ||
87 | d++; | ||
88 | } | ||
89 | *d = *s; | ||
90 | } | ||
91 | *d = 0; | ||
92 | } | ||
93 | |||
94 | static void | ||
95 | dotcat(char *dest, const char *src) | ||
96 | { | ||
97 | int len = strlen(dest); | ||
98 | const char *s; | ||
99 | char *d; | ||
100 | |||
101 | for (d = dest + len, s = src; *s; d++, s++) *d = tolower(*s); | ||
102 | *d = 0; | ||
103 | } | ||
104 | |||
105 | static Eina_Bool | ||
106 | _load(Image_Entry *ie, const char *file, const char *key, int *error, Eina_Bool get_data) | ||
107 | { | ||
108 | Eina_Bool res = EINA_FALSE; | ||
109 | int w = 0, h = 0, alpha = 0; | ||
110 | const char *dot1 = NULL, *dot2 = NULL, *end, *p; | ||
111 | char *cmd = NULL, decoders[3][128], buf[4096]; | ||
112 | char *loader = "/evas/utils/evas_image_loader"; | ||
113 | char *img_loader = NULL; | ||
114 | const char *libdir; | ||
115 | // eg $libdir/evas/generic_loaders | ||
116 | int cmd_len, len, decoders_num = 0, try_count = 0; | ||
117 | int read_data = 0; | ||
118 | char *tmpfname = NULL, *shmfname = NULL; | ||
119 | DATA32 *body; | ||
120 | FILE *f; | ||
121 | |||
122 | libdir = _evas_module_libdir_get(); | ||
123 | cmd_len = strlen(libdir); | ||
124 | cmd_len += strlen(loader); | ||
125 | img_loader = alloca(cmd_len + 1); | ||
126 | strcpy(img_loader, libdir); | ||
127 | strcat(img_loader, loader); | ||
128 | // params excluding file, key and loadopts | ||
129 | cmd_len += 1024; | ||
130 | cmd_len += strlen(file) * 2; | ||
131 | if (key) cmd_len += strlen(key) * 2; | ||
132 | cmd = alloca(cmd_len + 1); | ||
133 | |||
134 | len = strlen(file); | ||
135 | if (len < 1) | ||
136 | { | ||
137 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
138 | return EINA_FALSE; | ||
139 | } | ||
140 | end = file + len; | ||
141 | for (p = end - 1; p >= file; p--) | ||
142 | { | ||
143 | if ((!dot1) && (*p == '.')) dot1 = p; | ||
144 | else if ((!dot2) && (*p == '.')) dot2 = p; | ||
145 | else if ((dot1) && (dot2)) break; | ||
146 | } | ||
147 | if (dot2) | ||
148 | { | ||
149 | // double extn not too long | ||
150 | if (((end - dot2) <= 10) && (!illegal_char(dot2))) | ||
151 | { | ||
152 | strcpy(&(decoders[decoders_num][0]), img_loader); | ||
153 | dotcat(&(decoders[decoders_num][0]), dot2); | ||
154 | decoders_num++; | ||
155 | } | ||
156 | // single extn not too long | ||
157 | if (((end - dot1) <= 5) && (!illegal_char(dot1))) | ||
158 | { | ||
159 | strcpy(&(decoders[decoders_num][0]), img_loader); | ||
160 | dotcat(&(decoders[decoders_num][0]), dot1); | ||
161 | decoders_num++; | ||
162 | } | ||
163 | strcpy(decoders[decoders_num], img_loader); | ||
164 | decoders_num++; | ||
165 | } | ||
166 | else if (dot1) | ||
167 | { | ||
168 | // single extn not too long | ||
169 | if (((end - dot1) <= 5) && (!illegal_char(dot1))) | ||
170 | { | ||
171 | strcpy(&(decoders[decoders_num][0]), img_loader); | ||
172 | dotcat(&(decoders[decoders_num][0]), dot1); | ||
173 | decoders_num++; | ||
174 | } | ||
175 | strcpy(decoders[decoders_num], img_loader); | ||
176 | decoders_num++; | ||
177 | } | ||
178 | else | ||
179 | { | ||
180 | strcpy(decoders[decoders_num], img_loader); | ||
181 | decoders_num++; | ||
182 | } | ||
183 | |||
184 | for (try_count = 0; try_count < decoders_num; try_count++) | ||
185 | { | ||
186 | // FIXME: strcats could be more efficient, not that it matters much | ||
187 | // here as we are about to build a cmd to exec via a shell that | ||
188 | // will interpret shell stuff and path hunt that will then exec the | ||
189 | // program itself that will dynamically link that will again | ||
190 | // parse the arguments and finally do something... | ||
191 | strcpy(cmd, decoders[try_count]); | ||
192 | strcat(cmd, " "); | ||
193 | // filename first arg | ||
194 | len = strlen(cmd); | ||
195 | escape_copy(file, cmd + len); | ||
196 | if (!get_data) | ||
197 | { | ||
198 | strcat(cmd, " -head "); | ||
199 | } | ||
200 | if (key) | ||
201 | { | ||
202 | strcat(cmd, " -key "); | ||
203 | len = strlen(cmd); | ||
204 | escape_copy(key, cmd + len); | ||
205 | } | ||
206 | if (ie->load_opts.scale_down_by > 1) | ||
207 | { | ||
208 | strcat(cmd, " -opt-scale-down-by "); | ||
209 | snprintf(buf, sizeof(buf), "%i", ie->load_opts.scale_down_by); | ||
210 | strcat(cmd, buf); | ||
211 | } | ||
212 | if (ie->load_opts.dpi > 0.0) | ||
213 | { | ||
214 | strcat(cmd, " -opt-dpi "); | ||
215 | snprintf(buf, sizeof(buf), "%i", (int)(ie->load_opts.dpi * 1000.0)); | ||
216 | strcat(cmd, buf); | ||
217 | } | ||
218 | if ((ie->load_opts.w > 0) && | ||
219 | (ie->load_opts.h > 0)) | ||
220 | { | ||
221 | strcat(cmd, " -opt-size "); | ||
222 | snprintf(buf, sizeof(buf), "%i %i", ie->load_opts.w, ie->load_opts.h); | ||
223 | strcat(cmd, buf); | ||
224 | } | ||
225 | f = popen(cmd, "r"); | ||
226 | if (f) break; | ||
227 | } | ||
228 | if (!f) | ||
229 | { | ||
230 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
231 | return EINA_FALSE; | ||
232 | } | ||
233 | while (fgets(buf, sizeof(buf), f)) | ||
234 | { | ||
235 | len = strlen(buf); | ||
236 | if (len > 0) | ||
237 | { | ||
238 | if (buf[len - 1] == '\n') buf[len - 1] = 0; | ||
239 | if (!strncmp(buf, "size ", 5)) | ||
240 | { | ||
241 | int tw = 0, th = 0; | ||
242 | |||
243 | len = sscanf(buf, "%*s %i %i", &tw, &th); | ||
244 | if (len == 2) | ||
245 | { | ||
246 | if ((tw > 0) && (th > 0)) | ||
247 | { | ||
248 | w = tw; | ||
249 | h = th; | ||
250 | } | ||
251 | } | ||
252 | } | ||
253 | else if (!strncmp(buf, "alpha ", 6)) | ||
254 | { | ||
255 | int ta; | ||
256 | |||
257 | len = sscanf(buf, "%*s %i", &ta); | ||
258 | if (len == 1) | ||
259 | { | ||
260 | alpha = ta; | ||
261 | } | ||
262 | } | ||
263 | else if (!strncmp(buf, "tmpfile ", 8)) | ||
264 | { | ||
265 | tmpfname = buf + 8; | ||
266 | goto getdata; | ||
267 | } | ||
268 | #ifdef HAVE_SHM_OPEN | ||
269 | else if (!strncmp(buf, "shmfile ", 8)) | ||
270 | { | ||
271 | shmfname = buf + 8; | ||
272 | goto getdata; | ||
273 | } | ||
274 | #endif | ||
275 | else if (!strncmp(buf, "data", 4)) | ||
276 | { | ||
277 | read_data = 1; | ||
278 | goto getdata; | ||
279 | } | ||
280 | else if (!strncmp(buf, "done", 4)) | ||
281 | { | ||
282 | read_data = 2; | ||
283 | goto getdata; | ||
284 | } | ||
285 | } | ||
286 | } | ||
287 | getdata: | ||
288 | if ((!read_data) && (!tmpfname) && (!shmfname)) | ||
289 | { | ||
290 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
291 | goto on_error; | ||
292 | } | ||
293 | if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) || | ||
294 | IMG_TOO_BIG(w, h)) | ||
295 | { | ||
296 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
297 | goto on_error; | ||
298 | } | ||
299 | body = evas_cache_image_pixels(ie); | ||
300 | if (body) | ||
301 | { | ||
302 | if ((w != (int)ie->w) || (h != (int)ie->h)) | ||
303 | { | ||
304 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
305 | goto on_error; | ||
306 | } | ||
307 | } | ||
308 | if (alpha) ie->flags.alpha = 1; | ||
309 | ie->w = w; | ||
310 | ie->h = h; | ||
311 | |||
312 | if (get_data) | ||
313 | { | ||
314 | if (!body) evas_cache_image_surface_alloc(ie, ie->w, ie->h); | ||
315 | body = evas_cache_image_pixels(ie); | ||
316 | if (!body) | ||
317 | { | ||
318 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
319 | goto on_error; | ||
320 | } | ||
321 | |||
322 | if ((tmpfname) || (shmfname)) | ||
323 | { | ||
324 | int fd = -1; | ||
325 | |||
326 | // open | ||
327 | if (tmpfname) | ||
328 | fd = open(tmpfname, O_RDONLY, S_IRUSR); | ||
329 | #ifdef HAVE_SHM_OPEN | ||
330 | else if (shmfname) | ||
331 | fd = shm_open(shmfname, O_RDONLY, S_IRUSR); | ||
332 | #endif | ||
333 | if (fd >= 0) | ||
334 | { | ||
335 | void *addr; | ||
336 | |||
337 | eina_mmap_safety_enabled_set(EINA_TRUE); | ||
338 | |||
339 | // mmap | ||
340 | addr = mmap(NULL, w * h * sizeof(DATA32), | ||
341 | PROT_READ, MAP_SHARED, fd, 0); | ||
342 | if (addr != MAP_FAILED) | ||
343 | { | ||
344 | memcpy(body, addr, w * h * sizeof(DATA32)); | ||
345 | munmap(addr, w * h * sizeof(DATA32)); | ||
346 | } | ||
347 | // close | ||
348 | if (tmpfname) | ||
349 | { | ||
350 | close(fd); | ||
351 | unlink(tmpfname); | ||
352 | } | ||
353 | #ifdef HAVE_SHM_OPEN | ||
354 | else if (shmfname) | ||
355 | { | ||
356 | close(fd); | ||
357 | shm_unlink(shmfname); | ||
358 | } | ||
359 | #endif | ||
360 | } | ||
361 | else | ||
362 | { | ||
363 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
364 | goto on_error; | ||
365 | } | ||
366 | } | ||
367 | else if (read_data) | ||
368 | { | ||
369 | if (fread(body, w * h * sizeof(DATA32), 1, f) != 1) | ||
370 | { | ||
371 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
372 | goto on_error; | ||
373 | } | ||
374 | } | ||
375 | } | ||
376 | |||
377 | res = EINA_TRUE; | ||
378 | *error = EVAS_LOAD_ERROR_NONE; | ||
379 | |||
380 | on_error: | ||
381 | if (f) pclose(f); | ||
382 | return res; | ||
383 | } | ||
384 | |||
385 | static Eina_Bool | ||
386 | evas_image_load_file_head_generic(Image_Entry *ie, const char *file, const char *key, int *error) | ||
387 | { | ||
388 | return _load(ie, file, key, error, EINA_FALSE); | ||
389 | } | ||
390 | |||
391 | static Eina_Bool | ||
392 | evas_image_load_file_data_generic(Image_Entry *ie, const char *file, const char *key, int *error) | ||
393 | { | ||
394 | DATA32 *body; | ||
395 | |||
396 | body = evas_cache_image_pixels(ie); | ||
397 | if (!body) return _load(ie, file, key, error, EINA_TRUE); | ||
398 | *error = EVAS_LOAD_ERROR_NONE; | ||
399 | return EINA_TRUE; | ||
400 | } | ||
401 | |||
402 | static int | ||
403 | module_open(Evas_Module *em) | ||
404 | { | ||
405 | if (!em) return 0; | ||
406 | em->functions = (void *)(&evas_image_load_generic_func); | ||
407 | return 1; | ||
408 | } | ||
409 | |||
410 | static void | ||
411 | module_close(Evas_Module *em __UNUSED__) | ||
412 | { | ||
413 | } | ||
414 | |||
415 | static Evas_Module_Api evas_modapi = | ||
416 | { | ||
417 | EVAS_MODULE_API_VERSION, | ||
418 | "generic", | ||
419 | "none", | ||
420 | { | ||
421 | module_open, | ||
422 | module_close | ||
423 | } | ||
424 | }; | ||
425 | |||
426 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, generic); | ||
427 | |||
428 | #ifndef EVAS_STATIC_BUILD_GENERIC | ||
429 | EVAS_EINA_MODULE_DEFINE(image_loader, generic); | ||
430 | #endif | ||