diff options
Diffstat (limited to 'libraries/evas/src/modules/loaders')
48 files changed, 0 insertions, 22283 deletions
diff --git a/libraries/evas/src/modules/loaders/Makefile.am b/libraries/evas/src/modules/loaders/Makefile.am deleted file mode 100644 index b7ed9a5..0000000 --- a/libraries/evas/src/modules/loaders/Makefile.am +++ /dev/null | |||
@@ -1,93 +0,0 @@ | |||
1 | MAINTAINERCLEANFILES = Makefile.in | ||
2 | |||
3 | SUBDIRS = | ||
4 | |||
5 | if BUILD_LOADER_BMP | ||
6 | if !EVAS_STATIC_BUILD_BMP | ||
7 | SUBDIRS += bmp | ||
8 | endif | ||
9 | endif | ||
10 | |||
11 | if BUILD_LOADER_EDB | ||
12 | if !EVAS_STATIC_BUILD_EDB | ||
13 | SUBDIRS += edb | ||
14 | endif | ||
15 | endif | ||
16 | |||
17 | if BUILD_LOADER_EET | ||
18 | if !EVAS_STATIC_BUILD_EET | ||
19 | SUBDIRS += eet | ||
20 | endif | ||
21 | endif | ||
22 | |||
23 | if BUILD_LOADER_GENERIC | ||
24 | if !EVAS_STATIC_BUILD_GENERIC | ||
25 | SUBDIRS += generic | ||
26 | endif | ||
27 | endif | ||
28 | |||
29 | if BUILD_LOADER_GIF | ||
30 | if !EVAS_STATIC_BUILD_GIF | ||
31 | SUBDIRS += gif | ||
32 | endif | ||
33 | endif | ||
34 | |||
35 | if BUILD_LOADER_ICO | ||
36 | if !EVAS_STATIC_BUILD_ICO | ||
37 | SUBDIRS += ico | ||
38 | endif | ||
39 | endif | ||
40 | |||
41 | if BUILD_LOADER_JPEG | ||
42 | if !EVAS_STATIC_BUILD_JPEG | ||
43 | SUBDIRS += jpeg | ||
44 | endif | ||
45 | endif | ||
46 | |||
47 | if BUILD_LOADER_PMAPS | ||
48 | if !EVAS_STATIC_BUILD_PMAPS | ||
49 | SUBDIRS += pmaps | ||
50 | endif | ||
51 | endif | ||
52 | |||
53 | if BUILD_LOADER_PNG | ||
54 | if !EVAS_STATIC_BUILD_PNG | ||
55 | SUBDIRS += png | ||
56 | endif | ||
57 | endif | ||
58 | |||
59 | if BUILD_LOADER_PSD | ||
60 | if !EVAS_STATIC_BUILD_PSD | ||
61 | SUBDIRS += psd | ||
62 | endif | ||
63 | endif | ||
64 | |||
65 | if BUILD_LOADER_SVG | ||
66 | if !EVAS_STATIC_BUILD_SVG | ||
67 | SUBDIRS += svg | ||
68 | endif | ||
69 | endif | ||
70 | |||
71 | if BUILD_LOADER_TGA | ||
72 | if !EVAS_STATIC_BUILD_TGA | ||
73 | SUBDIRS += tga | ||
74 | endif | ||
75 | endif | ||
76 | |||
77 | if BUILD_LOADER_TIFF | ||
78 | if !EVAS_STATIC_BUILD_TIFF | ||
79 | SUBDIRS += tiff | ||
80 | endif | ||
81 | endif | ||
82 | |||
83 | if BUILD_LOADER_WBMP | ||
84 | if !EVAS_STATIC_BUILD_WBMP | ||
85 | SUBDIRS += wbmp | ||
86 | endif | ||
87 | endif | ||
88 | |||
89 | if BUILD_LOADER_XPM | ||
90 | if !EVAS_STATIC_BUILD_XPM | ||
91 | SUBDIRS += xpm | ||
92 | endif | ||
93 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/Makefile.in b/libraries/evas/src/modules/loaders/Makefile.in deleted file mode 100644 index f37032a..0000000 --- a/libraries/evas/src/modules/loaders/Makefile.in +++ /dev/null | |||
@@ -1,758 +0,0 @@ | |||
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 | VPATH = @srcdir@ | ||
18 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
19 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
20 | pkglibdir = $(libdir)/@PACKAGE@ | ||
21 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
22 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
23 | install_sh_DATA = $(install_sh) -c -m 644 | ||
24 | install_sh_PROGRAM = $(install_sh) -c | ||
25 | install_sh_SCRIPT = $(install_sh) -c | ||
26 | INSTALL_HEADER = $(INSTALL_DATA) | ||
27 | transform = $(program_transform_name) | ||
28 | NORMAL_INSTALL = : | ||
29 | PRE_INSTALL = : | ||
30 | POST_INSTALL = : | ||
31 | NORMAL_UNINSTALL = : | ||
32 | PRE_UNINSTALL = : | ||
33 | POST_UNINSTALL = : | ||
34 | build_triplet = @build@ | ||
35 | host_triplet = @host@ | ||
36 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@am__append_1 = bmp | ||
37 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@am__append_2 = edb | ||
38 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@am__append_3 = eet | ||
39 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@am__append_4 = generic | ||
40 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@am__append_5 = gif | ||
41 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@am__append_6 = ico | ||
42 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@am__append_7 = jpeg | ||
43 | @BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@am__append_8 = pmaps | ||
44 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@am__append_9 = png | ||
45 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@am__append_10 = psd | ||
46 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@am__append_11 = svg | ||
47 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@am__append_12 = tga | ||
48 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@am__append_13 = tiff | ||
49 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@am__append_14 = wbmp | ||
50 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@am__append_15 = xpm | ||
51 | subdir = src/modules/loaders | ||
52 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in TODO | ||
53 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
54 | am__aclocal_m4_deps = $(top_srcdir)/m4/efl_attribute.m4 \ | ||
55 | $(top_srcdir)/m4/efl_coverage.m4 \ | ||
56 | $(top_srcdir)/m4/efl_doxygen.m4 \ | ||
57 | $(top_srcdir)/m4/efl_fnmatch.m4 \ | ||
58 | $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \ | ||
59 | $(top_srcdir)/m4/evas_check_engine.m4 \ | ||
60 | $(top_srcdir)/m4/evas_check_loader.m4 \ | ||
61 | $(top_srcdir)/m4/evas_converter.m4 \ | ||
62 | $(top_srcdir)/m4/evas_dither.m4 \ | ||
63 | $(top_srcdir)/m4/evas_scaler.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
64 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | ||
65 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | ||
66 | $(top_srcdir)/configure.ac | ||
67 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
68 | $(ACLOCAL_M4) | ||
69 | mkinstalldirs = $(install_sh) -d | ||
70 | CONFIG_HEADER = $(top_builddir)/config.h | ||
71 | CONFIG_CLEAN_FILES = | ||
72 | CONFIG_CLEAN_VPATH_FILES = | ||
73 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
74 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
75 | am__v_GEN_0 = @echo " GEN " $@; | ||
76 | AM_V_at = $(am__v_at_$(V)) | ||
77 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
78 | am__v_at_0 = @ | ||
79 | SOURCES = | ||
80 | DIST_SOURCES = | ||
81 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | ||
82 | html-recursive info-recursive install-data-recursive \ | ||
83 | install-dvi-recursive install-exec-recursive \ | ||
84 | install-html-recursive install-info-recursive \ | ||
85 | install-pdf-recursive install-ps-recursive install-recursive \ | ||
86 | installcheck-recursive installdirs-recursive pdf-recursive \ | ||
87 | ps-recursive uninstall-recursive | ||
88 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ | ||
89 | distclean-recursive maintainer-clean-recursive | ||
90 | AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ | ||
91 | $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ | ||
92 | distdir | ||
93 | ETAGS = etags | ||
94 | CTAGS = ctags | ||
95 | DIST_SUBDIRS = bmp edb eet generic gif ico jpeg pmaps png psd svg tga \ | ||
96 | tiff wbmp xpm | ||
97 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
98 | am__relativize = \ | ||
99 | dir0=`pwd`; \ | ||
100 | sed_first='s,^\([^/]*\)/.*$$,\1,'; \ | ||
101 | sed_rest='s,^[^/]*/*,,'; \ | ||
102 | sed_last='s,^.*/\([^/]*\)$$,\1,'; \ | ||
103 | sed_butlast='s,/*[^/]*$$,,'; \ | ||
104 | while test -n "$$dir1"; do \ | ||
105 | first=`echo "$$dir1" | sed -e "$$sed_first"`; \ | ||
106 | if test "$$first" != "."; then \ | ||
107 | if test "$$first" = ".."; then \ | ||
108 | dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ | ||
109 | dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ | ||
110 | else \ | ||
111 | first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ | ||
112 | if test "$$first2" = "$$first"; then \ | ||
113 | dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ | ||
114 | else \ | ||
115 | dir2="../$$dir2"; \ | ||
116 | fi; \ | ||
117 | dir0="$$dir0"/"$$first"; \ | ||
118 | fi; \ | ||
119 | fi; \ | ||
120 | dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ | ||
121 | done; \ | ||
122 | reldir="$$dir2" | ||
123 | ACLOCAL = @ACLOCAL@ | ||
124 | ALLOCA = @ALLOCA@ | ||
125 | AMTAR = @AMTAR@ | ||
126 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
127 | AR = @AR@ | ||
128 | AS = @AS@ | ||
129 | AUTOCONF = @AUTOCONF@ | ||
130 | AUTOHEADER = @AUTOHEADER@ | ||
131 | AUTOMAKE = @AUTOMAKE@ | ||
132 | AWK = @AWK@ | ||
133 | CC = @CC@ | ||
134 | CCDEPMODE = @CCDEPMODE@ | ||
135 | CFLAGS = @CFLAGS@ | ||
136 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
137 | CHECK_LIBS = @CHECK_LIBS@ | ||
138 | CPP = @CPP@ | ||
139 | CPPFLAGS = @CPPFLAGS@ | ||
140 | CXX = @CXX@ | ||
141 | CXXCPP = @CXXCPP@ | ||
142 | CXXDEPMODE = @CXXDEPMODE@ | ||
143 | CXXFLAGS = @CXXFLAGS@ | ||
144 | CYGPATH_W = @CYGPATH_W@ | ||
145 | DEFS = @DEFS@ | ||
146 | DEPDIR = @DEPDIR@ | ||
147 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
148 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
149 | DLLTOOL = @DLLTOOL@ | ||
150 | DSYMUTIL = @DSYMUTIL@ | ||
151 | DUMPBIN = @DUMPBIN@ | ||
152 | ECHO_C = @ECHO_C@ | ||
153 | ECHO_N = @ECHO_N@ | ||
154 | ECHO_T = @ECHO_T@ | ||
155 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
156 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
157 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
158 | EDB_LIBS = @EDB_LIBS@ | ||
159 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
160 | EDJE_LIBS = @EDJE_LIBS@ | ||
161 | EET_CFLAGS = @EET_CFLAGS@ | ||
162 | EET_LIBS = @EET_LIBS@ | ||
163 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
164 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
165 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
166 | EGREP = @EGREP@ | ||
167 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
168 | EINA_LIBS = @EINA_LIBS@ | ||
169 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
170 | EVAS_LIBS = @EVAS_LIBS@ | ||
171 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
172 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
173 | EVIL_LIBS = @EVIL_LIBS@ | ||
174 | EXEEXT = @EXEEXT@ | ||
175 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
176 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
177 | FGREP = @FGREP@ | ||
178 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
179 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
180 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
181 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
182 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
183 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
184 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
185 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
186 | GREP = @GREP@ | ||
187 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
188 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
189 | INSTALL = @INSTALL@ | ||
190 | INSTALL_DATA = @INSTALL_DATA@ | ||
191 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
192 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
193 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
194 | LD = @LD@ | ||
195 | LDFLAGS = @LDFLAGS@ | ||
196 | LIBOBJS = @LIBOBJS@ | ||
197 | LIBS = @LIBS@ | ||
198 | LIBTOOL = @LIBTOOL@ | ||
199 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
200 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
201 | LIPO = @LIPO@ | ||
202 | LN_S = @LN_S@ | ||
203 | LTLIBOBJS = @LTLIBOBJS@ | ||
204 | MAKEINFO = @MAKEINFO@ | ||
205 | MKDIR_P = @MKDIR_P@ | ||
206 | MODULE_ARCH = @MODULE_ARCH@ | ||
207 | NM = @NM@ | ||
208 | NMEDIT = @NMEDIT@ | ||
209 | OBJC = @OBJC@ | ||
210 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
211 | OBJCFLAGS = @OBJCFLAGS@ | ||
212 | OBJDUMP = @OBJDUMP@ | ||
213 | OBJEXT = @OBJEXT@ | ||
214 | OTOOL = @OTOOL@ | ||
215 | OTOOL64 = @OTOOL64@ | ||
216 | PACKAGE = @PACKAGE@ | ||
217 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
218 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
219 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
220 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
221 | PACKAGE_URL = @PACKAGE_URL@ | ||
222 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
223 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
224 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
225 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
226 | PKG_CONFIG = @PKG_CONFIG@ | ||
227 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
228 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
229 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
230 | PNG_LIBS = @PNG_LIBS@ | ||
231 | RANLIB = @RANLIB@ | ||
232 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
233 | SDL_LIBS = @SDL_LIBS@ | ||
234 | SED = @SED@ | ||
235 | SET_MAKE = @SET_MAKE@ | ||
236 | SHELL = @SHELL@ | ||
237 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
238 | STRIP = @STRIP@ | ||
239 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
240 | SVG_LIBS = @SVG_LIBS@ | ||
241 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
242 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
243 | VERSION = @VERSION@ | ||
244 | VMAJ = @VMAJ@ | ||
245 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
246 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
247 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
248 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
249 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
250 | XCB_LIBS = @XCB_LIBS@ | ||
251 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
252 | XEXT_LIBS = @XEXT_LIBS@ | ||
253 | XMKMF = @XMKMF@ | ||
254 | X_CFLAGS = @X_CFLAGS@ | ||
255 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
256 | X_LIBS = @X_LIBS@ | ||
257 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
258 | abs_builddir = @abs_builddir@ | ||
259 | abs_srcdir = @abs_srcdir@ | ||
260 | abs_top_builddir = @abs_top_builddir@ | ||
261 | abs_top_srcdir = @abs_top_srcdir@ | ||
262 | ac_ct_CC = @ac_ct_CC@ | ||
263 | ac_ct_CXX = @ac_ct_CXX@ | ||
264 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
265 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
266 | altivec_cflags = @altivec_cflags@ | ||
267 | am__include = @am__include@ | ||
268 | am__leading_dot = @am__leading_dot@ | ||
269 | am__quote = @am__quote@ | ||
270 | am__tar = @am__tar@ | ||
271 | am__untar = @am__untar@ | ||
272 | bindir = @bindir@ | ||
273 | build = @build@ | ||
274 | build_alias = @build_alias@ | ||
275 | build_cpu = @build_cpu@ | ||
276 | build_os = @build_os@ | ||
277 | build_vendor = @build_vendor@ | ||
278 | builddir = @builddir@ | ||
279 | datadir = @datadir@ | ||
280 | datarootdir = @datarootdir@ | ||
281 | dlopen_libs = @dlopen_libs@ | ||
282 | docdir = @docdir@ | ||
283 | dvidir = @dvidir@ | ||
284 | edje_cc = @edje_cc@ | ||
285 | efl_doxygen = @efl_doxygen@ | ||
286 | efl_have_doxygen = @efl_have_doxygen@ | ||
287 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
288 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
289 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
290 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
291 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
292 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
293 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
294 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
295 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
296 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
297 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
298 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
299 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
300 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
301 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
302 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
303 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
304 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
305 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
306 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
307 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
308 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
309 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
310 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
311 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
312 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
313 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
314 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
315 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
316 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
317 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
318 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
319 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
320 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
321 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
322 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
323 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
324 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
325 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
326 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
327 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
328 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
329 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
330 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
331 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
332 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
333 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
334 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
335 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
336 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
337 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
338 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
339 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
340 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
341 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
342 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
343 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
344 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
345 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
346 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
347 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
348 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
349 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
350 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
351 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
352 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
353 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
354 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
355 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
356 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
357 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
358 | exec_prefix = @exec_prefix@ | ||
359 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
360 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
361 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
362 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
363 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
364 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
365 | have_lcov = @have_lcov@ | ||
366 | host = @host@ | ||
367 | host_alias = @host_alias@ | ||
368 | host_cpu = @host_cpu@ | ||
369 | host_os = @host_os@ | ||
370 | host_vendor = @host_vendor@ | ||
371 | htmldir = @htmldir@ | ||
372 | includedir = @includedir@ | ||
373 | infodir = @infodir@ | ||
374 | install_sh = @install_sh@ | ||
375 | libdir = @libdir@ | ||
376 | libexecdir = @libexecdir@ | ||
377 | localedir = @localedir@ | ||
378 | localstatedir = @localstatedir@ | ||
379 | lt_ECHO = @lt_ECHO@ | ||
380 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
381 | mandir = @mandir@ | ||
382 | mkdir_p = @mkdir_p@ | ||
383 | oldincludedir = @oldincludedir@ | ||
384 | pdfdir = @pdfdir@ | ||
385 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
386 | prefix = @prefix@ | ||
387 | program_transform_name = @program_transform_name@ | ||
388 | psdir = @psdir@ | ||
389 | pthread_cflags = @pthread_cflags@ | ||
390 | pthread_libs = @pthread_libs@ | ||
391 | release_info = @release_info@ | ||
392 | requirement_evas = @requirement_evas@ | ||
393 | sbindir = @sbindir@ | ||
394 | sharedstatedir = @sharedstatedir@ | ||
395 | srcdir = @srcdir@ | ||
396 | sysconfdir = @sysconfdir@ | ||
397 | target_alias = @target_alias@ | ||
398 | top_build_prefix = @top_build_prefix@ | ||
399 | top_builddir = @top_builddir@ | ||
400 | top_srcdir = @top_srcdir@ | ||
401 | version_info = @version_info@ | ||
402 | MAINTAINERCLEANFILES = Makefile.in | ||
403 | SUBDIRS = $(am__append_1) $(am__append_2) $(am__append_3) \ | ||
404 | $(am__append_4) $(am__append_5) $(am__append_6) \ | ||
405 | $(am__append_7) $(am__append_8) $(am__append_9) \ | ||
406 | $(am__append_10) $(am__append_11) $(am__append_12) \ | ||
407 | $(am__append_13) $(am__append_14) $(am__append_15) | ||
408 | all: all-recursive | ||
409 | |||
410 | .SUFFIXES: | ||
411 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
412 | @for dep in $?; do \ | ||
413 | case '$(am__configure_deps)' in \ | ||
414 | *$$dep*) \ | ||
415 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
416 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
417 | exit 1;; \ | ||
418 | esac; \ | ||
419 | done; \ | ||
420 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/Makefile'; \ | ||
421 | $(am__cd) $(top_srcdir) && \ | ||
422 | $(AUTOMAKE) --gnu src/modules/loaders/Makefile | ||
423 | .PRECIOUS: Makefile | ||
424 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
425 | @case '$?' in \ | ||
426 | *config.status*) \ | ||
427 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
428 | *) \ | ||
429 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
430 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
431 | esac; | ||
432 | |||
433 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
434 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
435 | |||
436 | $(top_srcdir)/configure: $(am__configure_deps) | ||
437 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
438 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
439 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
440 | $(am__aclocal_m4_deps): | ||
441 | |||
442 | mostlyclean-libtool: | ||
443 | -rm -f *.lo | ||
444 | |||
445 | clean-libtool: | ||
446 | -rm -rf .libs _libs | ||
447 | |||
448 | # This directory's subdirectories are mostly independent; you can cd | ||
449 | # into them and run `make' without going through this Makefile. | ||
450 | # To change the values of `make' variables: instead of editing Makefiles, | ||
451 | # (1) if the variable is set in `config.status', edit `config.status' | ||
452 | # (which will cause the Makefiles to be regenerated when you run `make'); | ||
453 | # (2) otherwise, pass the desired values on the `make' command line. | ||
454 | $(RECURSIVE_TARGETS): | ||
455 | @fail= failcom='exit 1'; \ | ||
456 | for f in x $$MAKEFLAGS; do \ | ||
457 | case $$f in \ | ||
458 | *=* | --[!k]*);; \ | ||
459 | *k*) failcom='fail=yes';; \ | ||
460 | esac; \ | ||
461 | done; \ | ||
462 | dot_seen=no; \ | ||
463 | target=`echo $@ | sed s/-recursive//`; \ | ||
464 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
465 | echo "Making $$target in $$subdir"; \ | ||
466 | if test "$$subdir" = "."; then \ | ||
467 | dot_seen=yes; \ | ||
468 | local_target="$$target-am"; \ | ||
469 | else \ | ||
470 | local_target="$$target"; \ | ||
471 | fi; \ | ||
472 | ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | ||
473 | || eval $$failcom; \ | ||
474 | done; \ | ||
475 | if test "$$dot_seen" = "no"; then \ | ||
476 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | ||
477 | fi; test -z "$$fail" | ||
478 | |||
479 | $(RECURSIVE_CLEAN_TARGETS): | ||
480 | @fail= failcom='exit 1'; \ | ||
481 | for f in x $$MAKEFLAGS; do \ | ||
482 | case $$f in \ | ||
483 | *=* | --[!k]*);; \ | ||
484 | *k*) failcom='fail=yes';; \ | ||
485 | esac; \ | ||
486 | done; \ | ||
487 | dot_seen=no; \ | ||
488 | case "$@" in \ | ||
489 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | ||
490 | *) list='$(SUBDIRS)' ;; \ | ||
491 | esac; \ | ||
492 | rev=''; for subdir in $$list; do \ | ||
493 | if test "$$subdir" = "."; then :; else \ | ||
494 | rev="$$subdir $$rev"; \ | ||
495 | fi; \ | ||
496 | done; \ | ||
497 | rev="$$rev ."; \ | ||
498 | target=`echo $@ | sed s/-recursive//`; \ | ||
499 | for subdir in $$rev; do \ | ||
500 | echo "Making $$target in $$subdir"; \ | ||
501 | if test "$$subdir" = "."; then \ | ||
502 | local_target="$$target-am"; \ | ||
503 | else \ | ||
504 | local_target="$$target"; \ | ||
505 | fi; \ | ||
506 | ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | ||
507 | || eval $$failcom; \ | ||
508 | done && test -z "$$fail" | ||
509 | tags-recursive: | ||
510 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
511 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | ||
512 | done | ||
513 | ctags-recursive: | ||
514 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
515 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | ||
516 | done | ||
517 | |||
518 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
519 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
520 | unique=`for i in $$list; do \ | ||
521 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
522 | done | \ | ||
523 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
524 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
525 | mkid -fID $$unique | ||
526 | tags: TAGS | ||
527 | |||
528 | TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
529 | $(TAGS_FILES) $(LISP) | ||
530 | set x; \ | ||
531 | here=`pwd`; \ | ||
532 | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ | ||
533 | include_option=--etags-include; \ | ||
534 | empty_fix=.; \ | ||
535 | else \ | ||
536 | include_option=--include; \ | ||
537 | empty_fix=; \ | ||
538 | fi; \ | ||
539 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
540 | if test "$$subdir" = .; then :; else \ | ||
541 | test ! -f $$subdir/TAGS || \ | ||
542 | set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ | ||
543 | fi; \ | ||
544 | done; \ | ||
545 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
546 | unique=`for i in $$list; do \ | ||
547 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
548 | done | \ | ||
549 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
550 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
551 | shift; \ | ||
552 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
553 | test -n "$$unique" || unique=$$empty_fix; \ | ||
554 | if test $$# -gt 0; then \ | ||
555 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
556 | "$$@" $$unique; \ | ||
557 | else \ | ||
558 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
559 | $$unique; \ | ||
560 | fi; \ | ||
561 | fi | ||
562 | ctags: CTAGS | ||
563 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
564 | $(TAGS_FILES) $(LISP) | ||
565 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
566 | unique=`for i in $$list; do \ | ||
567 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
568 | done | \ | ||
569 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
570 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
571 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
572 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
573 | $$unique | ||
574 | |||
575 | GTAGS: | ||
576 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
577 | && $(am__cd) $(top_srcdir) \ | ||
578 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
579 | |||
580 | distclean-tags: | ||
581 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
582 | |||
583 | distdir: $(DISTFILES) | ||
584 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
585 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
586 | list='$(DISTFILES)'; \ | ||
587 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
588 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
589 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
590 | case $$dist_files in \ | ||
591 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
592 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
593 | sort -u` ;; \ | ||
594 | esac; \ | ||
595 | for file in $$dist_files; do \ | ||
596 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
597 | if test -d $$d/$$file; then \ | ||
598 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
599 | if test -d "$(distdir)/$$file"; then \ | ||
600 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
601 | fi; \ | ||
602 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
603 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
604 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
605 | fi; \ | ||
606 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
607 | else \ | ||
608 | test -f "$(distdir)/$$file" \ | ||
609 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
610 | || exit 1; \ | ||
611 | fi; \ | ||
612 | done | ||
613 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | ||
614 | if test "$$subdir" = .; then :; else \ | ||
615 | test -d "$(distdir)/$$subdir" \ | ||
616 | || $(MKDIR_P) "$(distdir)/$$subdir" \ | ||
617 | || exit 1; \ | ||
618 | fi; \ | ||
619 | done | ||
620 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | ||
621 | if test "$$subdir" = .; then :; else \ | ||
622 | dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ | ||
623 | $(am__relativize); \ | ||
624 | new_distdir=$$reldir; \ | ||
625 | dir1=$$subdir; dir2="$(top_distdir)"; \ | ||
626 | $(am__relativize); \ | ||
627 | new_top_distdir=$$reldir; \ | ||
628 | echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ | ||
629 | echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ | ||
630 | ($(am__cd) $$subdir && \ | ||
631 | $(MAKE) $(AM_MAKEFLAGS) \ | ||
632 | top_distdir="$$new_top_distdir" \ | ||
633 | distdir="$$new_distdir" \ | ||
634 | am__remove_distdir=: \ | ||
635 | am__skip_length_check=: \ | ||
636 | am__skip_mode_fix=: \ | ||
637 | distdir) \ | ||
638 | || exit 1; \ | ||
639 | fi; \ | ||
640 | done | ||
641 | check-am: all-am | ||
642 | check: check-recursive | ||
643 | all-am: Makefile | ||
644 | installdirs: installdirs-recursive | ||
645 | installdirs-am: | ||
646 | install: install-recursive | ||
647 | install-exec: install-exec-recursive | ||
648 | install-data: install-data-recursive | ||
649 | uninstall: uninstall-recursive | ||
650 | |||
651 | install-am: all-am | ||
652 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
653 | |||
654 | installcheck: installcheck-recursive | ||
655 | install-strip: | ||
656 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
657 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
658 | `test -z '$(STRIP)' || \ | ||
659 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
660 | mostlyclean-generic: | ||
661 | |||
662 | clean-generic: | ||
663 | |||
664 | distclean-generic: | ||
665 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
666 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
667 | |||
668 | maintainer-clean-generic: | ||
669 | @echo "This command is intended for maintainers to use" | ||
670 | @echo "it deletes files that may require special tools to rebuild." | ||
671 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
672 | clean: clean-recursive | ||
673 | |||
674 | clean-am: clean-generic clean-libtool mostlyclean-am | ||
675 | |||
676 | distclean: distclean-recursive | ||
677 | -rm -f Makefile | ||
678 | distclean-am: clean-am distclean-generic distclean-tags | ||
679 | |||
680 | dvi: dvi-recursive | ||
681 | |||
682 | dvi-am: | ||
683 | |||
684 | html: html-recursive | ||
685 | |||
686 | html-am: | ||
687 | |||
688 | info: info-recursive | ||
689 | |||
690 | info-am: | ||
691 | |||
692 | install-data-am: | ||
693 | |||
694 | install-dvi: install-dvi-recursive | ||
695 | |||
696 | install-dvi-am: | ||
697 | |||
698 | install-exec-am: | ||
699 | |||
700 | install-html: install-html-recursive | ||
701 | |||
702 | install-html-am: | ||
703 | |||
704 | install-info: install-info-recursive | ||
705 | |||
706 | install-info-am: | ||
707 | |||
708 | install-man: | ||
709 | |||
710 | install-pdf: install-pdf-recursive | ||
711 | |||
712 | install-pdf-am: | ||
713 | |||
714 | install-ps: install-ps-recursive | ||
715 | |||
716 | install-ps-am: | ||
717 | |||
718 | installcheck-am: | ||
719 | |||
720 | maintainer-clean: maintainer-clean-recursive | ||
721 | -rm -f Makefile | ||
722 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
723 | |||
724 | mostlyclean: mostlyclean-recursive | ||
725 | |||
726 | mostlyclean-am: mostlyclean-generic mostlyclean-libtool | ||
727 | |||
728 | pdf: pdf-recursive | ||
729 | |||
730 | pdf-am: | ||
731 | |||
732 | ps: ps-recursive | ||
733 | |||
734 | ps-am: | ||
735 | |||
736 | uninstall-am: | ||
737 | |||
738 | .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ | ||
739 | install-am install-strip tags-recursive | ||
740 | |||
741 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ | ||
742 | all all-am check check-am clean clean-generic clean-libtool \ | ||
743 | ctags ctags-recursive distclean distclean-generic \ | ||
744 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
745 | html-am info info-am install install-am install-data \ | ||
746 | install-data-am install-dvi install-dvi-am install-exec \ | ||
747 | install-exec-am install-html install-html-am install-info \ | ||
748 | install-info-am install-man install-pdf install-pdf-am \ | ||
749 | install-ps install-ps-am install-strip installcheck \ | ||
750 | installcheck-am installdirs installdirs-am maintainer-clean \ | ||
751 | maintainer-clean-generic mostlyclean mostlyclean-generic \ | ||
752 | mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ | ||
753 | uninstall uninstall-am | ||
754 | |||
755 | |||
756 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
757 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
758 | .NOEXPORT: | ||
diff --git a/libraries/evas/src/modules/loaders/TODO b/libraries/evas/src/modules/loaders/TODO deleted file mode 100644 index 3b82543..0000000 --- a/libraries/evas/src/modules/loaders/TODO +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | DONE -> bmp tga ico | ||
2 | id3 gz bz2 <- extraction loaders | ||
3 | lbm <- aaah amiga days | ||
4 | ani <- why> | ||
5 | |||
diff --git a/libraries/evas/src/modules/loaders/bmp/Makefile.am b/libraries/evas/src/modules/loaders/bmp/Makefile.am deleted file mode 100644 index 0a04790..0000000 --- a/libraries/evas/src/modules/loaders/bmp/Makefile.am +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
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 | @EINA_CFLAGS@ \ | ||
11 | @EVIL_CFLAGS@ | ||
12 | |||
13 | if BUILD_LOADER_BMP | ||
14 | if !EVAS_STATIC_BUILD_BMP | ||
15 | |||
16 | pkgdir = $(libdir)/evas/modules/loaders/bmp/$(MODULE_ARCH) | ||
17 | pkg_LTLIBRARIES = module.la | ||
18 | |||
19 | module_la_SOURCES = evas_image_load_bmp.c | ||
20 | |||
21 | module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ -lm $(top_builddir)/src/lib/libevas.la | ||
22 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
23 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
24 | |||
25 | else | ||
26 | |||
27 | noinst_LTLIBRARIES = libevas_loader_bmp.la | ||
28 | libevas_loader_bmp_la_SOURCES = evas_image_load_bmp.c | ||
29 | libevas_loader_bmp_la_LIBADD = | ||
30 | |||
31 | endif | ||
32 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/bmp/Makefile.in b/libraries/evas/src/modules/loaders/bmp/Makefile.in deleted file mode 100644 index 40600cc..0000000 --- a/libraries/evas/src/modules/loaders/bmp/Makefile.in +++ /dev/null | |||
@@ -1,761 +0,0 @@ | |||
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/bmp | ||
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_bmp_la_DEPENDENCIES = | ||
83 | am__libevas_loader_bmp_la_SOURCES_DIST = evas_image_load_bmp.c | ||
84 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_TRUE@am_libevas_loader_bmp_la_OBJECTS = evas_image_load_bmp.lo | ||
85 | libevas_loader_bmp_la_OBJECTS = $(am_libevas_loader_bmp_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_TRUE@am_libevas_loader_bmp_la_rpath = | ||
90 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
91 | am__module_la_SOURCES_DIST = evas_image_load_bmp.c | ||
92 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_bmp.lo | ||
93 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
94 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
95 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
96 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@am_module_la_rpath = \ | ||
98 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@ -rpath \ | ||
99 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@ $(pkgdir) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_bmp_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_bmp_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
185 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
186 | FGREP = @FGREP@ | ||
187 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
188 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
189 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
190 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
191 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
192 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
193 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
194 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
195 | GREP = @GREP@ | ||
196 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
197 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
198 | INSTALL = @INSTALL@ | ||
199 | INSTALL_DATA = @INSTALL_DATA@ | ||
200 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
201 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
202 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
203 | LD = @LD@ | ||
204 | LDFLAGS = @LDFLAGS@ | ||
205 | LIBOBJS = @LIBOBJS@ | ||
206 | LIBS = @LIBS@ | ||
207 | LIBTOOL = @LIBTOOL@ | ||
208 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
209 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
210 | LIPO = @LIPO@ | ||
211 | LN_S = @LN_S@ | ||
212 | LTLIBOBJS = @LTLIBOBJS@ | ||
213 | MAKEINFO = @MAKEINFO@ | ||
214 | MKDIR_P = @MKDIR_P@ | ||
215 | MODULE_ARCH = @MODULE_ARCH@ | ||
216 | NM = @NM@ | ||
217 | NMEDIT = @NMEDIT@ | ||
218 | OBJC = @OBJC@ | ||
219 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
220 | OBJCFLAGS = @OBJCFLAGS@ | ||
221 | OBJDUMP = @OBJDUMP@ | ||
222 | OBJEXT = @OBJEXT@ | ||
223 | OTOOL = @OTOOL@ | ||
224 | OTOOL64 = @OTOOL64@ | ||
225 | PACKAGE = @PACKAGE@ | ||
226 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
227 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
228 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
229 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
230 | PACKAGE_URL = @PACKAGE_URL@ | ||
231 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
232 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
233 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
234 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
235 | PKG_CONFIG = @PKG_CONFIG@ | ||
236 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
237 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
238 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
239 | PNG_LIBS = @PNG_LIBS@ | ||
240 | RANLIB = @RANLIB@ | ||
241 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
242 | SDL_LIBS = @SDL_LIBS@ | ||
243 | SED = @SED@ | ||
244 | SET_MAKE = @SET_MAKE@ | ||
245 | SHELL = @SHELL@ | ||
246 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
247 | STRIP = @STRIP@ | ||
248 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
249 | SVG_LIBS = @SVG_LIBS@ | ||
250 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
251 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
252 | VERSION = @VERSION@ | ||
253 | VMAJ = @VMAJ@ | ||
254 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
255 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
256 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
257 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
258 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
259 | XCB_LIBS = @XCB_LIBS@ | ||
260 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
261 | XEXT_LIBS = @XEXT_LIBS@ | ||
262 | XMKMF = @XMKMF@ | ||
263 | X_CFLAGS = @X_CFLAGS@ | ||
264 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
265 | X_LIBS = @X_LIBS@ | ||
266 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
267 | abs_builddir = @abs_builddir@ | ||
268 | abs_srcdir = @abs_srcdir@ | ||
269 | abs_top_builddir = @abs_top_builddir@ | ||
270 | abs_top_srcdir = @abs_top_srcdir@ | ||
271 | ac_ct_CC = @ac_ct_CC@ | ||
272 | ac_ct_CXX = @ac_ct_CXX@ | ||
273 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
274 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
275 | altivec_cflags = @altivec_cflags@ | ||
276 | am__include = @am__include@ | ||
277 | am__leading_dot = @am__leading_dot@ | ||
278 | am__quote = @am__quote@ | ||
279 | am__tar = @am__tar@ | ||
280 | am__untar = @am__untar@ | ||
281 | bindir = @bindir@ | ||
282 | build = @build@ | ||
283 | build_alias = @build_alias@ | ||
284 | build_cpu = @build_cpu@ | ||
285 | build_os = @build_os@ | ||
286 | build_vendor = @build_vendor@ | ||
287 | builddir = @builddir@ | ||
288 | datadir = @datadir@ | ||
289 | datarootdir = @datarootdir@ | ||
290 | dlopen_libs = @dlopen_libs@ | ||
291 | docdir = @docdir@ | ||
292 | dvidir = @dvidir@ | ||
293 | edje_cc = @edje_cc@ | ||
294 | efl_doxygen = @efl_doxygen@ | ||
295 | efl_have_doxygen = @efl_have_doxygen@ | ||
296 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
297 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
298 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
299 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
300 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
301 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
302 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
303 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
304 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
305 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
306 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
307 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
308 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
309 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
310 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
311 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
312 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
313 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
314 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
315 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
316 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
317 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
318 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
319 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
320 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
321 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
322 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
323 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
324 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
325 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
326 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
327 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
328 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
329 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
330 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
331 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
332 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
333 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
334 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
335 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
336 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
337 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
338 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
339 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
340 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
341 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
342 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
343 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
344 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
345 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
346 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
347 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
348 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
349 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
350 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
351 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
352 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
353 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
354 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
355 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
356 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
357 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
358 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
359 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
360 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
361 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
362 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
363 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
364 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
365 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
366 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
367 | exec_prefix = @exec_prefix@ | ||
368 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
369 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
370 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
371 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
372 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
373 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
374 | have_lcov = @have_lcov@ | ||
375 | host = @host@ | ||
376 | host_alias = @host_alias@ | ||
377 | host_cpu = @host_cpu@ | ||
378 | host_os = @host_os@ | ||
379 | host_vendor = @host_vendor@ | ||
380 | htmldir = @htmldir@ | ||
381 | includedir = @includedir@ | ||
382 | infodir = @infodir@ | ||
383 | install_sh = @install_sh@ | ||
384 | libdir = @libdir@ | ||
385 | libexecdir = @libexecdir@ | ||
386 | localedir = @localedir@ | ||
387 | localstatedir = @localstatedir@ | ||
388 | lt_ECHO = @lt_ECHO@ | ||
389 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
390 | mandir = @mandir@ | ||
391 | mkdir_p = @mkdir_p@ | ||
392 | oldincludedir = @oldincludedir@ | ||
393 | pdfdir = @pdfdir@ | ||
394 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
395 | prefix = @prefix@ | ||
396 | program_transform_name = @program_transform_name@ | ||
397 | psdir = @psdir@ | ||
398 | pthread_cflags = @pthread_cflags@ | ||
399 | pthread_libs = @pthread_libs@ | ||
400 | release_info = @release_info@ | ||
401 | requirement_evas = @requirement_evas@ | ||
402 | sbindir = @sbindir@ | ||
403 | sharedstatedir = @sharedstatedir@ | ||
404 | srcdir = @srcdir@ | ||
405 | sysconfdir = @sysconfdir@ | ||
406 | target_alias = @target_alias@ | ||
407 | top_build_prefix = @top_build_prefix@ | ||
408 | top_builddir = @top_builddir@ | ||
409 | top_srcdir = @top_srcdir@ | ||
410 | version_info = @version_info@ | ||
411 | MAINTAINERCLEANFILES = Makefile.in | ||
412 | AM_CPPFLAGS = \ | ||
413 | -I. \ | ||
414 | -I$(top_srcdir)/src/lib \ | ||
415 | -I$(top_srcdir)/src/lib/include \ | ||
416 | @FREETYPE_CFLAGS@ \ | ||
417 | @PIXMAN_CFLAGS@ \ | ||
418 | @EINA_CFLAGS@ \ | ||
419 | @EVIL_CFLAGS@ | ||
420 | |||
421 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@pkgdir = $(libdir)/evas/modules/loaders/bmp/$(MODULE_ARCH) | ||
422 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@pkg_LTLIBRARIES = module.la | ||
423 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@module_la_SOURCES = evas_image_load_bmp.c | ||
424 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ -lm $(top_builddir)/src/lib/libevas.la | ||
425 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
426 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
427 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_TRUE@noinst_LTLIBRARIES = libevas_loader_bmp.la | ||
428 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_TRUE@libevas_loader_bmp_la_SOURCES = evas_image_load_bmp.c | ||
429 | @BUILD_LOADER_BMP_TRUE@@EVAS_STATIC_BUILD_BMP_TRUE@libevas_loader_bmp_la_LIBADD = | ||
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/bmp/Makefile'; \ | ||
444 | $(am__cd) $(top_srcdir) && \ | ||
445 | $(AUTOMAKE) --gnu src/modules/loaders/bmp/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_bmp.la: $(libevas_loader_bmp_la_OBJECTS) $(libevas_loader_bmp_la_DEPENDENCIES) | ||
505 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_bmp_la_rpath) $(libevas_loader_bmp_la_OBJECTS) $(libevas_loader_bmp_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_bmp.Plo@am__quote@ | ||
516 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_bmp.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_bmp.lo: evas_image_load_bmp.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_bmp.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_bmp.Tpo -c -o module_la-evas_image_load_bmp.lo `test -f 'evas_image_load_bmp.c' || echo '$(srcdir)/'`evas_image_load_bmp.c | ||
544 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_bmp.Tpo $(DEPDIR)/module_la-evas_image_load_bmp.Plo | ||
545 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
546 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_bmp.c' object='module_la-evas_image_load_bmp.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_bmp.lo `test -f 'evas_image_load_bmp.c' || echo '$(srcdir)/'`evas_image_load_bmp.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/bmp/evas_image_load_bmp.c b/libraries/evas/src/modules/loaders/bmp/evas_image_load_bmp.c deleted file mode 100644 index 9453ceb..0000000 --- a/libraries/evas/src/modules/loaders/bmp/evas_image_load_bmp.c +++ /dev/null | |||
@@ -1,1498 +0,0 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
5 | #include <stdio.h> | ||
6 | |||
7 | #ifdef HAVE_EVIL | ||
8 | # include <Evil.h> | ||
9 | #endif | ||
10 | |||
11 | #include <math.h> | ||
12 | |||
13 | #include "evas_common.h" | ||
14 | #include "evas_private.h" | ||
15 | |||
16 | static Eina_Bool evas_image_load_file_head_bmp(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
17 | static Eina_Bool evas_image_load_file_data_bmp(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
18 | |||
19 | static Evas_Image_Load_Func evas_image_load_bmp_func = | ||
20 | { | ||
21 | EINA_TRUE, | ||
22 | evas_image_load_file_head_bmp, | ||
23 | evas_image_load_file_data_bmp, | ||
24 | NULL, | ||
25 | EINA_FALSE | ||
26 | }; | ||
27 | |||
28 | static Eina_Bool | ||
29 | read_short(unsigned char *map, size_t length, size_t *position, short *ret) | ||
30 | { | ||
31 | unsigned char b[2]; | ||
32 | |||
33 | if (*position + 2 > length) return EINA_FALSE; | ||
34 | b[0] = map[(*position)++]; | ||
35 | b[1] = map[(*position)++]; | ||
36 | *ret = (b[1] << 8) | b[0]; | ||
37 | return EINA_TRUE; | ||
38 | } | ||
39 | |||
40 | static Eina_Bool | ||
41 | read_ushort(unsigned char *map, size_t length, size_t *position, unsigned short *ret) | ||
42 | { | ||
43 | unsigned char b[2]; | ||
44 | |||
45 | if (*position + 2 > length) return EINA_FALSE; | ||
46 | b[0] = map[(*position)++]; | ||
47 | b[1] = map[(*position)++]; | ||
48 | *ret = (b[1] << 8) | b[0]; | ||
49 | return EINA_TRUE; | ||
50 | } | ||
51 | |||
52 | static Eina_Bool | ||
53 | read_int(unsigned char *map, size_t length, size_t *position, int *ret) | ||
54 | { | ||
55 | unsigned char b[4]; | ||
56 | int i; | ||
57 | |||
58 | if (*position + 4 > length) return EINA_FALSE; | ||
59 | for (i = 0; i < 4; i++) | ||
60 | b[i] = map[(*position)++]; | ||
61 | *ret = ARGB_JOIN(b[3], b[2], b[1], b[0]); | ||
62 | return EINA_TRUE; | ||
63 | } | ||
64 | |||
65 | static Eina_Bool | ||
66 | read_uint(unsigned char *map, size_t length, size_t *position, unsigned int *ret) | ||
67 | { | ||
68 | unsigned char b[4]; | ||
69 | int i; | ||
70 | |||
71 | if (*position + 4 > length) return EINA_FALSE; | ||
72 | for (i = 0; i < 4; i++) | ||
73 | b[i] = map[(*position)++]; | ||
74 | *ret = ARGB_JOIN(b[3], b[2], b[1], b[0]); | ||
75 | return EINA_TRUE; | ||
76 | } | ||
77 | |||
78 | static Eina_Bool | ||
79 | read_uchar(unsigned char *map, size_t length, size_t *position, unsigned char *ret) | ||
80 | { | ||
81 | if (*position + 1 > length) return EINA_FALSE; | ||
82 | *ret = map[(*position)++]; | ||
83 | return EINA_TRUE; | ||
84 | } | ||
85 | |||
86 | static Eina_Bool | ||
87 | read_skip(size_t length, size_t *position, int skip) | ||
88 | { | ||
89 | if (*position + skip > length) return EINA_FALSE; | ||
90 | *position += skip; | ||
91 | return EINA_TRUE; | ||
92 | } | ||
93 | |||
94 | static Eina_Bool | ||
95 | read_mem(unsigned char *map, size_t length, size_t *position, void *buffer, int size) | ||
96 | { | ||
97 | if (*position + size > length) return EINA_FALSE; | ||
98 | memcpy(buffer, map + *position, size); | ||
99 | *position += size; | ||
100 | return EINA_TRUE; | ||
101 | } | ||
102 | |||
103 | static Eina_Bool | ||
104 | evas_image_load_file_head_bmp(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error) | ||
105 | { | ||
106 | Eina_File *f; | ||
107 | void *map = NULL; | ||
108 | size_t position = 0; | ||
109 | char hasa = 0; | ||
110 | int w = 0, h = 0, bit_count = 0, image_size = 0, comp = 0; | ||
111 | unsigned int offset, head_size, amask = 0; | ||
112 | int fsize = 0; | ||
113 | unsigned int bmpsize; | ||
114 | unsigned short res1, res2; | ||
115 | |||
116 | f = eina_file_open(file, 0); | ||
117 | if (!f) | ||
118 | { | ||
119 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
120 | return EINA_FALSE; | ||
121 | } | ||
122 | |||
123 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
124 | fsize = eina_file_size_get(f); | ||
125 | if (fsize < 2) goto close_file; | ||
126 | |||
127 | map = eina_file_map_all(f, EINA_FILE_SEQUENTIAL); | ||
128 | if (!map) goto close_file; | ||
129 | |||
130 | if (strncmp(map, "BM", 2)) goto close_file; // magic number | ||
131 | position += 2; | ||
132 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
133 | if (!read_uint(map, fsize, &position, &bmpsize)) goto close_file; | ||
134 | if (!read_ushort(map, fsize, &position, &res1)) goto close_file; | ||
135 | if (!read_ushort(map, fsize, &position, &res2)) goto close_file; | ||
136 | if (!read_uint(map, fsize, &position, &offset)) goto close_file; | ||
137 | if (!read_uint(map, fsize, &position, &head_size)) goto close_file; | ||
138 | if (head_size == 12) // OS/2 V1 + Windows 3.0 | ||
139 | { | ||
140 | short tmp; | ||
141 | |||
142 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
143 | w = tmp; // width | ||
144 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
145 | h = tmp; // height | ||
146 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
147 | //planes = tmp; // must be 1 | ||
148 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
149 | bit_count = tmp; // bits per pixel: 1, 4, 8 & 24 | ||
150 | } | ||
151 | else if (head_size == 64) // OS/2 V2 | ||
152 | { | ||
153 | short tmp; | ||
154 | int tmp2; | ||
155 | |||
156 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
157 | w = tmp2; // width | ||
158 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
159 | h = tmp2; // height | ||
160 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
161 | //planes = tmp; // must be 1 | ||
162 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
163 | bit_count = tmp; // bits per pixel: 1, 4, 8, 16, 24 & 32 | ||
164 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
165 | comp = tmp2; // compression method | ||
166 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
167 | image_size = tmp2; // bitmap data size | ||
168 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
169 | //hdpi = (tmp2 * 254) / 10000; // horizontal pixels/meter | ||
170 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
171 | //vdpi = (tmp2 * 254) / 10000; // vertical pixles/meter | ||
172 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
173 | //palette_size = tmp2; // number of palette colors power (2^n - so 0 - 8) | ||
174 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
175 | //important_colors = tmp2; // number of important colors - 0 if all | ||
176 | if (!read_skip(fsize, &position, 24)) goto close_file; // skip unused header | ||
177 | if (image_size == 0) image_size = fsize - offset; | ||
178 | } | ||
179 | else if (head_size == 40) // Windows 3.0 + (v3) | ||
180 | { | ||
181 | short tmp; | ||
182 | int tmp2; | ||
183 | |||
184 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
185 | w = tmp2; // width | ||
186 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
187 | h = tmp2; // height | ||
188 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
189 | //planes = tmp; // must be 1 | ||
190 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
191 | bit_count = tmp; // bits per pixel: 1, 4, 8, 16, 24 & 32 | ||
192 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
193 | comp = tmp2; // compression method | ||
194 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
195 | image_size = tmp2; // bitmap data size | ||
196 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
197 | //hdpi = (tmp2 * 254) / 10000; // horizontal pixels/meter | ||
198 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
199 | //vdpi = (tmp2 * 254) / 10000; // vertical pixles/meter | ||
200 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
201 | //palette_size = tmp2; // number of palette colors power (2^n - so 0 - 8) | ||
202 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
203 | //important_colors = tmp2; // number of important colors - 0 if all | ||
204 | if (image_size == 0) image_size = fsize - offset; | ||
205 | if ((comp == 0) && (bit_count == 32)) hasa = 1; // GIMP seems to store it this way | ||
206 | } | ||
207 | else if (head_size == 108) // Windows 95/NT4 + (v4) | ||
208 | { | ||
209 | short tmp; | ||
210 | int tmp2; | ||
211 | |||
212 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
213 | w = tmp2; // width | ||
214 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
215 | h = tmp2; // height | ||
216 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
217 | //planes = tmp; // must be 1 | ||
218 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
219 | bit_count = tmp; // bits per pixel: 1, 4, 8, 16, 24 & 32 | ||
220 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
221 | comp = tmp2; // compression method | ||
222 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
223 | image_size = tmp2; // bitmap data size | ||
224 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
225 | //hdpi = (tmp2 * 254) / 10000; // horizontal pixels/meter | ||
226 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
227 | //vdpi = (tmp2 * 254) / 10000; // vertical pixles/meter | ||
228 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
229 | //palette_size = tmp2; // number of palette colors power (2^n - so 0 - 8) | ||
230 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
231 | //important_colors = tmp2; // number of important colors - 0 if all | ||
232 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
233 | //rmask = tmp2; // red mask | ||
234 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
235 | //gmask = tmp2; // green mask | ||
236 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
237 | //bmask = tmp2; // blue mask | ||
238 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
239 | amask = tmp2; // alpha mask | ||
240 | if (!read_skip(fsize, &position, 36)) goto close_file; // skip unused cie | ||
241 | if (!read_skip(fsize, &position, 12)) goto close_file; // skip unused gamma | ||
242 | if (image_size == 0) image_size = fsize - offset; | ||
243 | if ((amask) && (bit_count == 32)) hasa = 1; | ||
244 | } | ||
245 | else if (head_size == 124) // Windows 98/2000 + (v5) | ||
246 | { | ||
247 | short tmp; | ||
248 | int tmp2; | ||
249 | |||
250 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
251 | w = tmp2; // width | ||
252 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
253 | h = tmp2; // height | ||
254 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
255 | //planes = tmp; // must be 1 | ||
256 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
257 | bit_count = tmp; // bits per pixel: 1, 4, 8, 16, 24 & 32 | ||
258 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
259 | comp = tmp2; // compression method | ||
260 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
261 | //image_size = tmp2; // bitmap data size | ||
262 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
263 | //hdpi = (tmp2 * 254) / 10000; // horizontal pixels/meter | ||
264 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
265 | //vdpi = (tmp2 * 254) / 10000; // vertical pixles/meter | ||
266 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
267 | //palette_size = tmp2; // number of palette colors power (2^n - so 0 - 8) | ||
268 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
269 | //important_colors = tmp2; // number of important colors - 0 if all | ||
270 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
271 | //rmask = tmp2; // red mask | ||
272 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
273 | //gmask = tmp2; // green mask | ||
274 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
275 | //bmask = tmp2; // blue mask | ||
276 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
277 | amask = tmp2; // alpha mask | ||
278 | if (!read_skip(fsize, &position, 36)) goto close_file; // skip unused cie | ||
279 | if (!read_skip(fsize, &position, 12)) goto close_file; // skip unused gamma | ||
280 | if (!read_skip(fsize, &position, 16)) goto close_file; // skip others | ||
281 | if (image_size == 0) image_size = fsize - offset; | ||
282 | if ((amask) && (bit_count == 32)) hasa = 1; | ||
283 | } | ||
284 | else | ||
285 | goto close_file; | ||
286 | |||
287 | if (h < 0) | ||
288 | { | ||
289 | h = -h; | ||
290 | //right_way_up = 1; | ||
291 | } | ||
292 | |||
293 | if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) || | ||
294 | IMG_TOO_BIG(w, h)) | ||
295 | { | ||
296 | if (IMG_TOO_BIG(w, h)) | ||
297 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
298 | else | ||
299 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
300 | goto close_file; | ||
301 | } | ||
302 | /* It is not bad idea that bmp loader support scale down decoding | ||
303 | * because of memory issue in mobile world.*/ | ||
304 | if (ie->load_opts.scale_down_by > 1) | ||
305 | { | ||
306 | w /= ie->load_opts.scale_down_by; | ||
307 | h /= ie->load_opts.scale_down_by; | ||
308 | } | ||
309 | |||
310 | if (bit_count < 16) | ||
311 | { | ||
312 | //if ((palette_size < 0) || (palette_size > 256)) pal_num = 256; | ||
313 | //else pal_num = palette_size; | ||
314 | if (bit_count == 1) | ||
315 | { | ||
316 | if (comp == 0) // no compression | ||
317 | { | ||
318 | } | ||
319 | else | ||
320 | goto close_file; | ||
321 | } | ||
322 | else if (bit_count == 4) | ||
323 | { | ||
324 | if (comp == 0) // no compression | ||
325 | { | ||
326 | } | ||
327 | else if (comp == 2) // rle 4bit/pixel | ||
328 | { | ||
329 | } | ||
330 | else | ||
331 | goto close_file; | ||
332 | } | ||
333 | else if (bit_count == 8) | ||
334 | { | ||
335 | if (comp == 0) // no compression | ||
336 | { | ||
337 | } | ||
338 | else if (comp == 1) // rle 8bit/pixel | ||
339 | { | ||
340 | } | ||
341 | else | ||
342 | goto close_file; | ||
343 | } | ||
344 | } | ||
345 | else if ((bit_count == 16) || (bit_count == 24) || (bit_count == 32)) | ||
346 | { | ||
347 | if (comp == 0) // no compression | ||
348 | { | ||
349 | // handled | ||
350 | } | ||
351 | else if (comp == 3) // bit field | ||
352 | { | ||
353 | // handled | ||
354 | } | ||
355 | else if (comp == 4) // jpeg - only printer drivers | ||
356 | goto close_file; | ||
357 | else if (comp == 3) // png - only printer drivers | ||
358 | goto close_file; | ||
359 | else | ||
360 | goto close_file; | ||
361 | } | ||
362 | else | ||
363 | goto close_file; | ||
364 | |||
365 | ie->w = w; | ||
366 | ie->h = h; | ||
367 | if (hasa) ie->flags.alpha = 1; | ||
368 | |||
369 | eina_file_map_free(f, map); | ||
370 | eina_file_close(f); | ||
371 | *error = EVAS_LOAD_ERROR_NONE; | ||
372 | return EINA_TRUE; | ||
373 | |||
374 | close_file: | ||
375 | if (map) eina_file_map_free(f, map); | ||
376 | eina_file_close(f); | ||
377 | return EINA_FALSE; | ||
378 | } | ||
379 | |||
380 | static Eina_Bool | ||
381 | evas_image_load_file_data_bmp(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error) | ||
382 | { | ||
383 | Eina_File *f; | ||
384 | void *map = NULL; | ||
385 | size_t position = 0; | ||
386 | unsigned char *buffer = NULL, *buffer_end = NULL, *p; | ||
387 | char hasa = 0; | ||
388 | int x = 0, y = 0, w = 0, h = 0, bit_count = 0, image_size = 0, | ||
389 | comp = 0, palette_size = -1; | ||
390 | unsigned int offset = 0, head_size = 0; | ||
391 | unsigned int *pal = NULL, pal_num = 0, *pix = NULL, *surface = NULL, fix, | ||
392 | rmask = 0, gmask = 0, bmask = 0, amask = 0; | ||
393 | int right_way_up = 0; | ||
394 | unsigned char r, g, b, a; | ||
395 | int fsize = 0; | ||
396 | unsigned int bmpsize; | ||
397 | unsigned short res1, res2; | ||
398 | |||
399 | /* for scale decoding */ | ||
400 | unsigned int *scale_surface = NULL, *scale_pix = NULL; | ||
401 | int scale_ratio = 1, image_w = 0, image_h = 0; | ||
402 | int row_size = 0; /* Row size is rounded up to a multiple of 4bytes */ | ||
403 | int read_line = 0; /* total read line */ | ||
404 | |||
405 | f = eina_file_open(file, 0); | ||
406 | if (!f) | ||
407 | { | ||
408 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
409 | return EINA_FALSE; | ||
410 | } | ||
411 | |||
412 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
413 | fsize = eina_file_size_get(f); | ||
414 | if (fsize < 2) goto close_file; | ||
415 | |||
416 | map = eina_file_map_all(f, EINA_FILE_SEQUENTIAL); | ||
417 | if (!map) goto close_file; | ||
418 | |||
419 | if (strncmp(map, "BM", 2)) goto close_file; // magic number | ||
420 | position += 2; | ||
421 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
422 | if (!read_uint(map, fsize, &position, &bmpsize)) goto close_file; | ||
423 | if (!read_ushort(map, fsize, &position, &res1)) goto close_file; | ||
424 | if (!read_ushort(map, fsize, &position, &res2)) goto close_file; | ||
425 | if (!read_uint(map, fsize, &position, &offset)) goto close_file; | ||
426 | if (!read_uint(map, fsize, &position, &head_size)) goto close_file; | ||
427 | image_size = fsize - offset; | ||
428 | if (image_size < 1) goto close_file; | ||
429 | |||
430 | if (head_size == 12) // OS/2 V1 + Windows 3.0 | ||
431 | { | ||
432 | short tmp; | ||
433 | |||
434 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
435 | w = tmp; // width | ||
436 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
437 | h = tmp; // height | ||
438 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
439 | //planes = tmp; // must be 1 | ||
440 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
441 | bit_count = tmp; // bits per pixel: 1, 4, 8 & 24 | ||
442 | } | ||
443 | else if (head_size == 64) // OS/2 V2 | ||
444 | { | ||
445 | short tmp; | ||
446 | int tmp2; | ||
447 | |||
448 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
449 | w = tmp2; // width | ||
450 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
451 | h = tmp2; // height | ||
452 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
453 | //planes = tmp; // must be 1 | ||
454 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
455 | bit_count = tmp; // bits per pixel: 1, 4, 8, 16, 24 & 32 | ||
456 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
457 | comp = tmp2; // compression method | ||
458 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
459 | image_size = tmp2; // bitmap data size | ||
460 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
461 | //hdpi = (tmp2 * 254) / 10000; // horizontal pixels/meter | ||
462 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
463 | //vdpi = (tmp2 * 254) / 10000; // vertical pixles/meter | ||
464 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
465 | palette_size = tmp2; // number of palette colors power (2^n - so 0 - 8) | ||
466 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
467 | //important_colors = tmp2; // number of important colors - 0 if all | ||
468 | if (!read_skip(fsize, &position, 24)) goto close_file; // skip unused header | ||
469 | if (image_size == 0) image_size = fsize - offset; | ||
470 | } | ||
471 | else if (head_size == 40) // Windows 3.0 + (v3) | ||
472 | { | ||
473 | short tmp; | ||
474 | int tmp2; | ||
475 | |||
476 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
477 | w = tmp2; // width | ||
478 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
479 | h = tmp2; // height | ||
480 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
481 | //planes = tmp; // must be 1 | ||
482 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
483 | bit_count = tmp; // bits per pixel: 1, 4, 8, 16, 24 & 32 | ||
484 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
485 | comp = tmp2; // compression method | ||
486 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
487 | image_size = tmp2; // bitmap data size | ||
488 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
489 | //hdpi = (tmp2 * 254) / 10000; // horizontal pixels/meter | ||
490 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
491 | //vdpi = (tmp2 * 254) / 10000; // vertical pixles/meter | ||
492 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
493 | palette_size = tmp2; // number of palette colors power (2^n - so 0 - 8) | ||
494 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
495 | //important_colors = tmp2; // number of important colors - 0 if all | ||
496 | if (image_size == 0) image_size = fsize - offset; | ||
497 | if ((comp == 0) && (bit_count == 32)) hasa = 1; // GIMP seems to store it this way | ||
498 | } | ||
499 | else if (head_size == 108) // Windows 95/NT4 + (v4) | ||
500 | { | ||
501 | short tmp; | ||
502 | int tmp2; | ||
503 | |||
504 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
505 | w = tmp2; // width | ||
506 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
507 | h = tmp2; // height | ||
508 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
509 | //planes = tmp; // must be 1 | ||
510 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
511 | bit_count = tmp; // bits per pixel: 1, 4, 8, 16, 24 & 32 | ||
512 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
513 | comp = tmp2; // compression method | ||
514 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
515 | image_size = tmp2; // bitmap data size | ||
516 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
517 | //hdpi = (tmp2 * 254) / 10000; // horizontal pixels/meter | ||
518 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
519 | //vdpi = (tmp2 * 254) / 10000; // vertical pixles/meter | ||
520 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
521 | palette_size = tmp2; // number of palette colors power (2^n - so 0 - 8) | ||
522 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
523 | //important_colors = tmp2; // number of important colors - 0 if all | ||
524 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
525 | rmask = tmp2; // red mask | ||
526 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
527 | gmask = tmp2; // green mask | ||
528 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
529 | bmask = tmp2; // blue mask | ||
530 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
531 | amask = tmp2; // alpha mask | ||
532 | if (!read_skip(fsize, &position, 36)) goto close_file; // skip unused cie | ||
533 | if (!read_skip(fsize, &position, 12)) goto close_file; // skip unused gamma | ||
534 | if (image_size == 0) image_size = fsize - offset; | ||
535 | if ((amask) && (bit_count == 32)) hasa = 1; | ||
536 | } | ||
537 | else if (head_size == 124) // Windows 98/2000 + (v5) | ||
538 | { | ||
539 | short tmp; | ||
540 | int tmp2; | ||
541 | |||
542 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
543 | w = tmp2; // width | ||
544 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
545 | h = tmp2; // height | ||
546 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
547 | //planes = tmp; // must be 1 | ||
548 | if (!read_short(map, fsize, &position, &tmp)) goto close_file; | ||
549 | bit_count = tmp; // bits per pixel: 1, 4, 8, 16, 24 & 32 | ||
550 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
551 | comp = tmp2; // compression method | ||
552 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
553 | image_size = tmp2; // bitmap data size | ||
554 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
555 | //hdpi = (tmp2 * 254) / 10000; // horizontal pixels/meter | ||
556 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
557 | //vdpi = (tmp2 * 254) / 10000; // vertical pixles/meter | ||
558 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
559 | palette_size = tmp2; // number of palette colors power (2^n - so 0 - 8) | ||
560 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
561 | //important_colors = tmp2; // number of important colors - 0 if all | ||
562 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
563 | rmask = tmp2; // red mask | ||
564 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
565 | gmask = tmp2; // green mask | ||
566 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
567 | bmask = tmp2; // blue mask | ||
568 | if (!read_int(map, fsize, &position, &tmp2)) goto close_file; | ||
569 | amask = tmp2; // alpha mask | ||
570 | if (!read_skip(fsize, &position, 36)) goto close_file; // skip unused cie | ||
571 | if (!read_skip(fsize, &position, 12)) goto close_file; // skip unused gamma | ||
572 | if (!read_skip(fsize, &position, 16)) goto close_file; // skip others | ||
573 | if (image_size == 0) image_size = fsize - offset; | ||
574 | if ((amask) && (bit_count == 32)) hasa = 1; | ||
575 | } | ||
576 | else | ||
577 | goto close_file; | ||
578 | |||
579 | if (h < 0) | ||
580 | { | ||
581 | h = -h; | ||
582 | right_way_up = 1; | ||
583 | } | ||
584 | if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) || | ||
585 | IMG_TOO_BIG(w, h)) | ||
586 | { | ||
587 | if (IMG_TOO_BIG(w, h)) | ||
588 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
589 | else | ||
590 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
591 | goto close_file; | ||
592 | } | ||
593 | /* It is not bad idea that bmp loader support scale down decoding | ||
594 | * because of memory issue in mobile world. */ | ||
595 | if (ie->load_opts.scale_down_by > 1) | ||
596 | scale_ratio = ie->load_opts.scale_down_by; | ||
597 | image_w = w; | ||
598 | image_h = h; | ||
599 | |||
600 | if (scale_ratio > 1) | ||
601 | { | ||
602 | w /= scale_ratio; | ||
603 | h /= scale_ratio; | ||
604 | |||
605 | if ((w < 1) || (h < 1) ) | ||
606 | { | ||
607 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
608 | goto close_file; | ||
609 | } | ||
610 | } | ||
611 | |||
612 | if ((w != (int)ie->w) || (h != (int)ie->h)) | ||
613 | { | ||
614 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
615 | goto close_file; | ||
616 | } | ||
617 | evas_cache_image_surface_alloc(ie, ie->w, ie->h); | ||
618 | surface = evas_cache_image_pixels(ie); | ||
619 | if (!surface) | ||
620 | { | ||
621 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
622 | goto close_file; | ||
623 | } | ||
624 | |||
625 | row_size = ceil((double)(image_w * bit_count) / 32) * 4; | ||
626 | |||
627 | if (bit_count < 16) | ||
628 | { | ||
629 | unsigned int i; | ||
630 | |||
631 | if (bit_count == 1) | ||
632 | { | ||
633 | if ((palette_size <= 0) || (palette_size > 2)) pal_num = 2; | ||
634 | else pal_num = palette_size; | ||
635 | } | ||
636 | else if (bit_count == 4) | ||
637 | { | ||
638 | if ((palette_size <= 0) || (palette_size > 16)) pal_num = 16; | ||
639 | else pal_num = palette_size; | ||
640 | } | ||
641 | else if (bit_count == 8) | ||
642 | { | ||
643 | if ((palette_size <= 0) || (palette_size > 256)) pal_num = 256; | ||
644 | else pal_num = palette_size; | ||
645 | } | ||
646 | pal = alloca(256 * 4); | ||
647 | for (i = 0; i < pal_num; i++) | ||
648 | { | ||
649 | if (!read_uchar(map, fsize, &position, &b)) goto close_file; | ||
650 | if (!read_uchar(map, fsize, &position, &g)) goto close_file; | ||
651 | if (!read_uchar(map, fsize, &position, &r)) goto close_file; | ||
652 | if ((head_size != 12) /*&& (palette_size != 0)*/) | ||
653 | { // OS/2 V1 doesn't do the pad byte | ||
654 | if (!read_uchar(map, fsize, &position, &a)) goto close_file; | ||
655 | } | ||
656 | a = 0xff; // fillin a as solid for paletted images | ||
657 | pal[i] = ARGB_JOIN(a, r, g, b); | ||
658 | } | ||
659 | position = offset; | ||
660 | |||
661 | if ((scale_ratio == 1) || (comp !=0)) | ||
662 | buffer = malloc(image_size + 8); // add 8 for padding to avoid checks | ||
663 | else | ||
664 | { | ||
665 | scale_surface = malloc(image_w * sizeof(DATA32)); //for one line decoding | ||
666 | if (!scale_surface) | ||
667 | { | ||
668 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
669 | goto close_file; | ||
670 | } | ||
671 | buffer = malloc(row_size); // scale down is usually set because of memory issue, so read line by line | ||
672 | } | ||
673 | |||
674 | if (!buffer) | ||
675 | { | ||
676 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
677 | goto close_file; | ||
678 | } | ||
679 | if ((scale_ratio == 1) || (comp !=0)) | ||
680 | buffer_end = buffer + image_size; | ||
681 | else | ||
682 | buffer_end = buffer + row_size; | ||
683 | p = buffer; | ||
684 | |||
685 | if ((scale_ratio == 1) || (comp !=0)) | ||
686 | { | ||
687 | if (!read_mem(map, fsize, &position, buffer, image_size)) goto close_file; | ||
688 | } | ||
689 | else | ||
690 | { | ||
691 | if (!read_mem(map, fsize, &position, buffer, row_size)) goto close_file; | ||
692 | } | ||
693 | |||
694 | if (bit_count == 1) | ||
695 | { | ||
696 | if (comp == 0) // no compression | ||
697 | { | ||
698 | pix = surface; | ||
699 | |||
700 | for (y = 0; y < h; y++) | ||
701 | { | ||
702 | if (!right_way_up) pix = surface + ((h - 1 - y) * w); | ||
703 | if (scale_ratio > 1) pix = scale_surface; // one line decoding | ||
704 | |||
705 | for (x = 0; x < image_w; x++) | ||
706 | { | ||
707 | if ((x & 0x7) == 0x0) | ||
708 | { | ||
709 | *pix = pal[*p >> 7]; | ||
710 | } | ||
711 | else if ((x & 0x7) == 0x1) | ||
712 | { | ||
713 | *pix = pal[(*p >> 6) & 0x1]; | ||
714 | } | ||
715 | else if ((x & 0x7) == 0x2) | ||
716 | { | ||
717 | *pix = pal[(*p >> 5) & 0x1]; | ||
718 | } | ||
719 | else if ((x & 0x7) == 0x3) | ||
720 | { | ||
721 | *pix = pal[(*p >> 4) & 0x1]; | ||
722 | } | ||
723 | else if ((x & 0x7) == 0x4) | ||
724 | { | ||
725 | *pix = pal[(*p >> 3) & 0x1]; | ||
726 | } | ||
727 | else if ((x & 0x7) == 0x5) | ||
728 | { | ||
729 | *pix = pal[(*p >> 2) & 0x1]; | ||
730 | } | ||
731 | else if ((x & 0x7) == 0x6) | ||
732 | { | ||
733 | *pix = pal[(*p >> 1) & 0x1]; | ||
734 | } | ||
735 | else | ||
736 | { | ||
737 | *pix = pal[*p & 0x1]; | ||
738 | p++; | ||
739 | } | ||
740 | if (p >= buffer_end) break; | ||
741 | pix++; | ||
742 | } | ||
743 | |||
744 | if (scale_ratio > 1) | ||
745 | { | ||
746 | if (!right_way_up) scale_pix = surface + ((h - 1 - y) * w); | ||
747 | else scale_pix = surface + (y * w); | ||
748 | |||
749 | pix = scale_surface; | ||
750 | for (x = 0; x < w; x++) | ||
751 | { | ||
752 | *scale_pix = *pix; | ||
753 | scale_pix ++; | ||
754 | pix += scale_ratio; | ||
755 | } | ||
756 | read_line += scale_ratio; | ||
757 | if (read_line >= image_h) break; | ||
758 | |||
759 | position += row_size * (scale_ratio - 1); | ||
760 | if (!read_mem(map, fsize, &position, buffer, row_size)) goto close_file; | ||
761 | p = buffer; | ||
762 | buffer_end = buffer + row_size; | ||
763 | } | ||
764 | else | ||
765 | { | ||
766 | if ((x & 0x7) != 0) p++; | ||
767 | fix = (int)(((unsigned long)p) & 0x3); | ||
768 | if (fix > 0) p += 4 - fix; // align row read | ||
769 | if (p >= buffer_end) break; | ||
770 | } | ||
771 | } | ||
772 | } | ||
773 | else | ||
774 | goto close_file; | ||
775 | } | ||
776 | else if (bit_count == 4) | ||
777 | { | ||
778 | if (comp == 0) // no compression | ||
779 | { | ||
780 | pix = surface; | ||
781 | for (y = 0; y < h; y++) | ||
782 | { | ||
783 | if (!right_way_up) pix = surface + ((h - 1 - y) * w); | ||
784 | if (scale_ratio > 1) pix = scale_surface; // one line decoding | ||
785 | for (x = 0; x < image_w; x++) | ||
786 | { | ||
787 | if ((x & 0x1) == 0x1) | ||
788 | { | ||
789 | *pix = pal[*p & 0x0f]; | ||
790 | p++; | ||
791 | } | ||
792 | else | ||
793 | { | ||
794 | *pix = pal[*p >> 4]; | ||
795 | } | ||
796 | if (p >= buffer_end) break; | ||
797 | pix++; | ||
798 | } | ||
799 | if (scale_ratio > 1) | ||
800 | { | ||
801 | if (!right_way_up) scale_pix = surface + ((h - 1 - y) * w); | ||
802 | else scale_pix = surface + (y * w); | ||
803 | |||
804 | pix = scale_surface; | ||
805 | for (x = 0; x < w; x++) | ||
806 | { | ||
807 | *scale_pix = *pix; | ||
808 | scale_pix ++; | ||
809 | pix += scale_ratio; | ||
810 | } | ||
811 | read_line += scale_ratio; | ||
812 | if (read_line >= image_h) break; | ||
813 | |||
814 | position += row_size * (scale_ratio - 1); | ||
815 | if (!read_mem(map, fsize, &position, buffer, row_size)) goto close_file; | ||
816 | p = buffer; | ||
817 | buffer_end = buffer + row_size; | ||
818 | } | ||
819 | else | ||
820 | { | ||
821 | if ((x & 0x1) != 0) p++; | ||
822 | fix = (int)(((unsigned long)p) & 0x3); | ||
823 | if (fix > 0) p += 4 - fix; // align row read | ||
824 | if (p >= buffer_end) break; | ||
825 | } | ||
826 | } | ||
827 | } | ||
828 | else if (comp == 2) // rle 4bit/pixel | ||
829 | { | ||
830 | int count = 0, done = 0, wpad; | ||
831 | int scale_x = 0, scale_y = 0; | ||
832 | Eina_Bool scale_down_line = EINA_TRUE; | ||
833 | |||
834 | pix = surface; | ||
835 | if (!right_way_up) pix = surface + ((h - 1 - y) * w); | ||
836 | wpad = ((image_w + 1) / 2) * 2; | ||
837 | while (p < buffer_end) | ||
838 | { | ||
839 | if (p[0]) | ||
840 | { | ||
841 | if (scale_down_line) | ||
842 | { | ||
843 | if ((x + p[0]) <= wpad) | ||
844 | { | ||
845 | unsigned int col1 = pal[p[1] >> 4]; | ||
846 | unsigned int col2 = pal[p[1] & 0xf]; | ||
847 | |||
848 | count = p[0] / 2; | ||
849 | while (count > 0) | ||
850 | { | ||
851 | if (x < w) | ||
852 | { | ||
853 | if (((x % scale_ratio) == 0) && (scale_x < w)) | ||
854 | { | ||
855 | *pix = col1; | ||
856 | pix++; | ||
857 | scale_x++; | ||
858 | } | ||
859 | x++; | ||
860 | } | ||
861 | if (x < w) | ||
862 | { | ||
863 | if (((x % scale_ratio) == 0) && (scale_x < w)) | ||
864 | { | ||
865 | *pix = col2; | ||
866 | pix++; | ||
867 | scale_x++; | ||
868 | } | ||
869 | x++; | ||
870 | } | ||
871 | count--; | ||
872 | } | ||
873 | if (p[0] & 0x1) | ||
874 | { | ||
875 | if (((x % scale_ratio) == 0) && (scale_x < w)) | ||
876 | { | ||
877 | *pix = col1; | ||
878 | pix++; | ||
879 | scale_x++; | ||
880 | } | ||
881 | x++; | ||
882 | } | ||
883 | } | ||
884 | } | ||
885 | p += 2; | ||
886 | } | ||
887 | else | ||
888 | { | ||
889 | switch (p[1]) | ||
890 | { | ||
891 | case 0: // EOL | ||
892 | x = 0; | ||
893 | scale_x = 0; | ||
894 | y++; | ||
895 | if ((y % scale_ratio) == 0) | ||
896 | { | ||
897 | scale_y++; | ||
898 | scale_down_line = EINA_TRUE; | ||
899 | if (!right_way_up) | ||
900 | pix = surface + ((h - 1 - scale_y) * w); | ||
901 | else | ||
902 | pix = surface + (scale_y * w); | ||
903 | } | ||
904 | else | ||
905 | scale_down_line = EINA_FALSE; | ||
906 | if (scale_y >= h) | ||
907 | { | ||
908 | p = buffer_end; | ||
909 | } | ||
910 | p += 2; | ||
911 | break; | ||
912 | case 1: // EOB | ||
913 | p = buffer_end; | ||
914 | break; | ||
915 | case 2: // DELTA | ||
916 | x += p[2]; | ||
917 | y += p[3]; | ||
918 | scale_x = x / scale_ratio; | ||
919 | scale_y = y / scale_ratio; | ||
920 | if ((scale_x >= w) || (scale_y >= h)) | ||
921 | { | ||
922 | p = buffer_end; | ||
923 | } | ||
924 | if (!right_way_up) | ||
925 | pix = surface + scale_x + ((h - 1 - scale_y) * w); | ||
926 | else | ||
927 | pix = surface + scale_x + (scale_y * w); | ||
928 | p += 4; | ||
929 | break; | ||
930 | default: | ||
931 | count = p[1]; | ||
932 | if (((p + count) > buffer_end) || | ||
933 | ((x + count) > w)) | ||
934 | { | ||
935 | p = buffer_end; | ||
936 | break; | ||
937 | } | ||
938 | p += 2; | ||
939 | done = count; | ||
940 | count /= 2; | ||
941 | while (count > 0) | ||
942 | { | ||
943 | if (((x % scale_ratio) == 0) && (scale_x < w)) | ||
944 | { | ||
945 | *pix = pal[*p >> 4]; | ||
946 | pix++; | ||
947 | scale_x++; | ||
948 | } | ||
949 | x++; | ||
950 | if (((x % scale_ratio) == 0) && (scale_x < w)) | ||
951 | { | ||
952 | *pix = pal[*p & 0xf]; | ||
953 | pix++; | ||
954 | scale_x++; | ||
955 | } | ||
956 | x++; | ||
957 | |||
958 | p++; | ||
959 | count--; | ||
960 | } | ||
961 | |||
962 | if (done & 0x1) | ||
963 | { | ||
964 | if (((x % scale_ratio) == 0) && (scale_x < w)) | ||
965 | { | ||
966 | *pix = pal[*p >> 4]; | ||
967 | scale_x++; | ||
968 | } | ||
969 | x++; | ||
970 | p++; | ||
971 | } | ||
972 | if ((done & 0x3) == 0x1) | ||
973 | p += 2; | ||
974 | else if ((done & 0x3) == 0x2) | ||
975 | p += 1; | ||
976 | break; | ||
977 | } | ||
978 | } | ||
979 | } | ||
980 | } | ||
981 | else | ||
982 | goto close_file; | ||
983 | } | ||
984 | else if (bit_count == 8) | ||
985 | { | ||
986 | if (comp == 0) // no compression | ||
987 | { | ||
988 | pix = surface; | ||
989 | for (y = 0; y < h; y++) | ||
990 | { | ||
991 | if (!right_way_up) pix = surface + ((h - 1 - y) * w); | ||
992 | for (x = 0; x < w; x++) | ||
993 | { | ||
994 | *pix = pal[*p]; | ||
995 | p += scale_ratio; | ||
996 | if (p >= buffer_end) break; | ||
997 | pix++; | ||
998 | } | ||
999 | if (scale_ratio > 1) | ||
1000 | { | ||
1001 | read_line += scale_ratio; | ||
1002 | if (read_line >= image_h) break; | ||
1003 | |||
1004 | position += row_size * (scale_ratio - 1); | ||
1005 | if (!read_mem(map, fsize, &position, buffer, row_size)) goto close_file; | ||
1006 | p = buffer; | ||
1007 | buffer_end = buffer + row_size; | ||
1008 | } | ||
1009 | else | ||
1010 | { | ||
1011 | fix = (int)(((unsigned long)p) & 0x3); | ||
1012 | if (fix > 0) p += 4 - fix; // align row read | ||
1013 | if (p >= buffer_end) break; | ||
1014 | } | ||
1015 | } | ||
1016 | } | ||
1017 | else if (comp == 1) // rle 8bit/pixel | ||
1018 | { | ||
1019 | int count = 0, done = 0; | ||
1020 | int scale_x = 0, scale_y = 0; | ||
1021 | Eina_Bool scale_down_line = EINA_TRUE; | ||
1022 | |||
1023 | pix = surface; | ||
1024 | if (!right_way_up) pix = surface + ((h - 1 - y) * w); | ||
1025 | |||
1026 | while (p < buffer_end) | ||
1027 | { | ||
1028 | if (p[0]) | ||
1029 | { | ||
1030 | if (scale_down_line) | ||
1031 | { | ||
1032 | if ((x + p[0]) <= image_w) | ||
1033 | { | ||
1034 | unsigned int col = pal[p[1]]; | ||
1035 | |||
1036 | count = p[0]; | ||
1037 | while (count > 0) | ||
1038 | { | ||
1039 | if (((x % scale_ratio) == 0) && (scale_x < w)) | ||
1040 | { | ||
1041 | *pix = col; | ||
1042 | pix++; | ||
1043 | scale_x ++; | ||
1044 | } | ||
1045 | x++; | ||
1046 | count--; | ||
1047 | } | ||
1048 | } | ||
1049 | } | ||
1050 | p += 2; | ||
1051 | } | ||
1052 | else | ||
1053 | { | ||
1054 | switch (p[1]) | ||
1055 | { | ||
1056 | case 0: // EOL | ||
1057 | x = 0; | ||
1058 | scale_x = 0; | ||
1059 | y++; | ||
1060 | if ((y % scale_ratio) == 0) | ||
1061 | { | ||
1062 | scale_y++; | ||
1063 | scale_down_line = EINA_TRUE; | ||
1064 | if (!right_way_up) | ||
1065 | pix = surface + ((h - 1 - scale_y) * w); | ||
1066 | else | ||
1067 | pix = surface + (scale_y * w); | ||
1068 | } | ||
1069 | else | ||
1070 | scale_down_line = EINA_FALSE; | ||
1071 | |||
1072 | if (scale_y >= h) | ||
1073 | { | ||
1074 | p = buffer_end; | ||
1075 | } | ||
1076 | p += 2; | ||
1077 | break; | ||
1078 | case 1: // EOB | ||
1079 | p = buffer_end; | ||
1080 | break; | ||
1081 | case 2: // DELTA | ||
1082 | x += p[2]; | ||
1083 | y += p[3]; | ||
1084 | scale_x = x / scale_ratio; | ||
1085 | scale_y = y / scale_ratio; | ||
1086 | if ((scale_x >= w) || (scale_y >= h)) | ||
1087 | { | ||
1088 | p = buffer_end; | ||
1089 | } | ||
1090 | if (!right_way_up) | ||
1091 | pix = surface + scale_x + ((h - 1 - scale_y) * w); | ||
1092 | else | ||
1093 | pix = surface + scale_x + (scale_y * w); | ||
1094 | p += 4; | ||
1095 | break; | ||
1096 | default: | ||
1097 | count = p[1]; | ||
1098 | if (((p + count) > buffer_end) || | ||
1099 | ((x + count) > image_w)) | ||
1100 | { | ||
1101 | p = buffer_end; | ||
1102 | break; | ||
1103 | } | ||
1104 | p += 2; | ||
1105 | done = count; | ||
1106 | while (count > 0) | ||
1107 | { | ||
1108 | if (((x % scale_ratio) == 0) && (scale_x < w)) | ||
1109 | { | ||
1110 | *pix = pal[*p]; | ||
1111 | pix++; | ||
1112 | scale_x ++; | ||
1113 | } | ||
1114 | p++; | ||
1115 | x++; | ||
1116 | count--; | ||
1117 | } | ||
1118 | if (done & 0x1) p++; | ||
1119 | break; | ||
1120 | } | ||
1121 | } | ||
1122 | } | ||
1123 | } | ||
1124 | else | ||
1125 | goto close_file; | ||
1126 | } | ||
1127 | } | ||
1128 | else if ((bit_count == 16) || (bit_count == 24) || (bit_count == 32)) | ||
1129 | { | ||
1130 | if (comp == 0) // no compression | ||
1131 | { | ||
1132 | position = offset; | ||
1133 | if (scale_ratio == 1) | ||
1134 | buffer = malloc(image_size + 8); // add 8 for padding to avoid checks | ||
1135 | else | ||
1136 | buffer = malloc(row_size); // scale down is usually set because of memory issue, so read line by line | ||
1137 | if (!buffer) | ||
1138 | { | ||
1139 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
1140 | goto close_file; | ||
1141 | } | ||
1142 | if (scale_ratio == 1) | ||
1143 | buffer_end = buffer + image_size; | ||
1144 | else | ||
1145 | buffer_end = buffer + row_size; | ||
1146 | |||
1147 | p = buffer; | ||
1148 | if (scale_ratio == 1) | ||
1149 | { | ||
1150 | if (!read_mem(map, fsize, &position, buffer, image_size)) goto close_file; | ||
1151 | } | ||
1152 | else | ||
1153 | { | ||
1154 | if (!read_mem(map, fsize, &position, buffer, row_size)) goto close_file; | ||
1155 | } | ||
1156 | if (bit_count == 16) | ||
1157 | { | ||
1158 | unsigned short tmp; | ||
1159 | |||
1160 | pix = surface; | ||
1161 | for (y = 0; y < h; y++) | ||
1162 | { | ||
1163 | if (!right_way_up) pix = surface + ((h - 1 - y) * w); | ||
1164 | for (x = 0; x < w; x++) | ||
1165 | { | ||
1166 | tmp = *((unsigned short *)(p)); | ||
1167 | |||
1168 | r = (tmp >> 7) & 0xf8; r |= r >> 5; | ||
1169 | g = (tmp >> 2) & 0xf8; g |= g >> 5; | ||
1170 | b = (tmp << 3) & 0xf8; b |= b >> 5; | ||
1171 | *pix = ARGB_JOIN(0xff, r, g, b); | ||
1172 | |||
1173 | p += 2 * scale_ratio; | ||
1174 | |||
1175 | if (p >= buffer_end) break; | ||
1176 | pix++; | ||
1177 | } | ||
1178 | if (scale_ratio > 1) | ||
1179 | { | ||
1180 | read_line += scale_ratio; | ||
1181 | if (read_line >= image_h) break; | ||
1182 | |||
1183 | position += row_size * (scale_ratio - 1); | ||
1184 | if (!read_mem(map, fsize, &position, buffer, row_size)) goto close_file; | ||
1185 | p = buffer; | ||
1186 | buffer_end = buffer + row_size; | ||
1187 | } | ||
1188 | else | ||
1189 | { | ||
1190 | fix = (int)(((unsigned long)p) & 0x3); | ||
1191 | if (fix > 0) p += 4 - fix; // align row read | ||
1192 | if (p >= buffer_end) break; | ||
1193 | } | ||
1194 | } | ||
1195 | } | ||
1196 | else if (bit_count == 24) | ||
1197 | { | ||
1198 | pix = surface; | ||
1199 | for (y = 0; y < h; y++) | ||
1200 | { | ||
1201 | if (!right_way_up) pix = surface + ((h - 1 - y) * w); | ||
1202 | for (x = 0; x < w; x++) | ||
1203 | { | ||
1204 | b = p[0]; | ||
1205 | g = p[1]; | ||
1206 | r = p[2]; | ||
1207 | *pix = ARGB_JOIN(0xff, r, g, b); | ||
1208 | p += 3 * scale_ratio; | ||
1209 | if (p >= buffer_end) break; | ||
1210 | pix++; | ||
1211 | } | ||
1212 | if (scale_ratio > 1) | ||
1213 | { | ||
1214 | read_line += scale_ratio; | ||
1215 | if (read_line >= image_h) break; | ||
1216 | |||
1217 | position += row_size * (scale_ratio - 1); | ||
1218 | if (!read_mem(map, fsize, &position, buffer, row_size)) goto close_file; | ||
1219 | p = buffer; | ||
1220 | buffer_end = buffer + row_size; | ||
1221 | } | ||
1222 | else | ||
1223 | { | ||
1224 | fix = (int)(((unsigned long)p) & 0x3); | ||
1225 | if (fix > 0) p += 4 - fix; // align row read | ||
1226 | if (p >= buffer_end) break; | ||
1227 | } | ||
1228 | } | ||
1229 | } | ||
1230 | else if (bit_count == 32) | ||
1231 | { | ||
1232 | int none_zero_alpha = 0; | ||
1233 | pix = surface; | ||
1234 | for (y = 0; y < h; y++) | ||
1235 | { | ||
1236 | if (!right_way_up) pix = surface + ((h - 1 - y) * w); | ||
1237 | for (x = 0; x < w; x++) | ||
1238 | { | ||
1239 | b = p[0]; | ||
1240 | g = p[1]; | ||
1241 | r = p[2]; | ||
1242 | a = p[3]; | ||
1243 | if (a) none_zero_alpha = 1; | ||
1244 | if (!hasa) a = 0xff; | ||
1245 | *pix = ARGB_JOIN(a, r, g, b); | ||
1246 | p += 4 * scale_ratio; | ||
1247 | |||
1248 | if (p >= buffer_end) break; | ||
1249 | pix++; | ||
1250 | } | ||
1251 | if (scale_ratio > 1) | ||
1252 | { | ||
1253 | read_line += scale_ratio; | ||
1254 | if (read_line >= image_h) break; | ||
1255 | |||
1256 | position += row_size * (scale_ratio - 1); | ||
1257 | if (!read_mem(map, fsize, &position, buffer, row_size)) goto close_file; | ||
1258 | p = buffer; | ||
1259 | buffer_end = buffer + row_size; | ||
1260 | } | ||
1261 | else | ||
1262 | { | ||
1263 | fix = (int)(((unsigned long)p) & 0x3); | ||
1264 | if (fix > 0) p += 4 - fix; // align row read | ||
1265 | if (p >= buffer_end) break; | ||
1266 | } | ||
1267 | } | ||
1268 | if (!none_zero_alpha) | ||
1269 | { | ||
1270 | ie->flags.alpha = 0; | ||
1271 | if (hasa) | ||
1272 | { | ||
1273 | unsigned int *pixend = surface + (w * h); | ||
1274 | |||
1275 | for (pix = surface; pix < pixend; pix++) | ||
1276 | A_VAL(pix) = 0xff; | ||
1277 | } | ||
1278 | } | ||
1279 | } | ||
1280 | else | ||
1281 | goto close_file; | ||
1282 | } | ||
1283 | else if (comp == 3) // bit field | ||
1284 | { | ||
1285 | if (!read_uint(map, fsize, &position, &rmask)) goto close_file; | ||
1286 | if (!read_uint(map, fsize, &position, &gmask)) goto close_file; | ||
1287 | if (!read_uint(map, fsize, &position, &bmask)) goto close_file; | ||
1288 | |||
1289 | position = offset; | ||
1290 | if (scale_ratio == 1) | ||
1291 | buffer = malloc(image_size + 8); // add 8 for padding to avoid checks | ||
1292 | else | ||
1293 | buffer = malloc(row_size); // scale down is usually set because of memory issue, so read line by line | ||
1294 | |||
1295 | if (!buffer) | ||
1296 | { | ||
1297 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
1298 | goto close_file; | ||
1299 | } | ||
1300 | if (scale_ratio == 1) | ||
1301 | buffer_end = buffer + image_size; | ||
1302 | else | ||
1303 | buffer_end = buffer + row_size; | ||
1304 | |||
1305 | p = buffer; | ||
1306 | if (scale_ratio == 1) | ||
1307 | { | ||
1308 | if (!read_mem(map, fsize, &position, buffer, image_size)) goto close_file; | ||
1309 | } | ||
1310 | else | ||
1311 | { | ||
1312 | if (!read_mem(map, fsize, &position, buffer, row_size)) goto close_file; | ||
1313 | } | ||
1314 | |||
1315 | if ((bit_count == 16) && | ||
1316 | (rmask == 0xf800) && (gmask == 0x07e0) && (bmask == 0x001f) | ||
1317 | ) | ||
1318 | { | ||
1319 | unsigned short tmp; | ||
1320 | |||
1321 | pix = surface; | ||
1322 | for (y = 0; y < h; y++) | ||
1323 | { | ||
1324 | if (!right_way_up) pix = surface + ((h - 1 - y) * w); | ||
1325 | for (x = 0; x < w; x++) | ||
1326 | { | ||
1327 | tmp = *((unsigned short *)(p)); | ||
1328 | |||
1329 | r = (tmp >> 8) & 0xf8; r |= r >> 5; | ||
1330 | g = (tmp >> 3) & 0xfc; g |= g >> 6; | ||
1331 | b = (tmp << 3) & 0xf8; b |= b >> 5; | ||
1332 | *pix = ARGB_JOIN(0xff, r, g, b); | ||
1333 | |||
1334 | p += 2 * scale_ratio; | ||
1335 | |||
1336 | if (p >= buffer_end) break; | ||
1337 | pix++; | ||
1338 | } | ||
1339 | if (scale_ratio > 1) | ||
1340 | { | ||
1341 | read_line += scale_ratio; | ||
1342 | if (read_line >= image_h) break; | ||
1343 | |||
1344 | position += row_size * (scale_ratio - 1); | ||
1345 | if (!read_mem(map, fsize, &position, buffer, row_size)) goto close_file; | ||
1346 | p = buffer; | ||
1347 | buffer_end = buffer + row_size; | ||
1348 | } | ||
1349 | else | ||
1350 | { | ||
1351 | fix = (int)(((unsigned long)p) & 0x3); | ||
1352 | if (fix > 0) p += 4 - fix; // align row read | ||
1353 | if (p >= buffer_end) break; | ||
1354 | } | ||
1355 | } | ||
1356 | } | ||
1357 | else if ((bit_count == 16) && | ||
1358 | (rmask == 0x7c00) && (gmask == 0x03e0) && (bmask == 0x001f) | ||
1359 | ) | ||
1360 | { | ||
1361 | unsigned short tmp; | ||
1362 | pix = surface; | ||
1363 | for (y = 0; y < h; y++) | ||
1364 | { | ||
1365 | if (!right_way_up) pix = surface + ((h - 1 - y) * w); | ||
1366 | for (x = 0; x < w; x++) | ||
1367 | { | ||
1368 | tmp = *((unsigned short *)(p)); | ||
1369 | |||
1370 | r = (tmp >> 7) & 0xf8; r |= r >> 5; | ||
1371 | g = (tmp >> 2) & 0xf8; g |= g >> 5; | ||
1372 | b = (tmp << 3) & 0xf8; b |= b >> 5; | ||
1373 | *pix = ARGB_JOIN(0xff, r, g, b); | ||
1374 | p += 2 * scale_ratio; | ||
1375 | |||
1376 | if (p >= buffer_end) break; | ||
1377 | pix++; | ||
1378 | } | ||
1379 | if (scale_ratio > 1) | ||
1380 | { | ||
1381 | read_line += scale_ratio; | ||
1382 | if (read_line >= image_h) break; | ||
1383 | |||
1384 | position += row_size * (scale_ratio - 1); | ||
1385 | if (!read_mem(map, fsize, &position, buffer_end, row_size)) goto close_file; | ||
1386 | p = buffer; | ||
1387 | buffer_end = buffer + row_size; | ||
1388 | } | ||
1389 | else | ||
1390 | { | ||
1391 | fix = (int)(((unsigned long)p) & 0x3); | ||
1392 | if (fix > 0) p += 4 - fix; // align row read | ||
1393 | if (p >= buffer_end) break; | ||
1394 | } | ||
1395 | } | ||
1396 | } | ||
1397 | else if (bit_count == 32) | ||
1398 | { | ||
1399 | pix = surface; | ||
1400 | for (y = 0; y < h; y++) | ||
1401 | { | ||
1402 | if (!right_way_up) pix = surface + ((h - 1 - y) * w); | ||
1403 | for (x = 0; x < w; x++) | ||
1404 | { | ||
1405 | b = p[0]; | ||
1406 | g = p[1]; | ||
1407 | r = p[2]; | ||
1408 | a = p[3]; | ||
1409 | if (!hasa) a = 0xff; | ||
1410 | *pix = ARGB_JOIN(a, r, g, b); | ||
1411 | |||
1412 | p += 4 * scale_ratio; | ||
1413 | |||
1414 | if (p >= buffer_end) break; | ||
1415 | pix++; | ||
1416 | } | ||
1417 | if (scale_ratio > 1) | ||
1418 | { | ||
1419 | read_line += scale_ratio; | ||
1420 | if (read_line >= image_h) break; | ||
1421 | |||
1422 | position += row_size * (scale_ratio - 1); | ||
1423 | if (!read_mem(map, fsize, &position, buffer, row_size)) goto close_file; | ||
1424 | p = buffer; | ||
1425 | buffer_end = buffer + row_size; | ||
1426 | } | ||
1427 | else | ||
1428 | { | ||
1429 | fix = (int)(((unsigned long)p) & 0x3); | ||
1430 | if (fix > 0) p += 4 - fix; // align row read | ||
1431 | if (p >= buffer_end) break; | ||
1432 | } | ||
1433 | } | ||
1434 | } | ||
1435 | else | ||
1436 | goto close_file; | ||
1437 | } | ||
1438 | else if (comp == 4) // jpeg - only printer drivers | ||
1439 | { | ||
1440 | goto close_file; | ||
1441 | } | ||
1442 | else if (comp == 3) // png - only printer drivers | ||
1443 | { | ||
1444 | goto close_file; | ||
1445 | } | ||
1446 | else | ||
1447 | goto close_file; | ||
1448 | } | ||
1449 | else | ||
1450 | goto close_file; | ||
1451 | |||
1452 | if (buffer) free(buffer); | ||
1453 | if (scale_surface) free(scale_surface); | ||
1454 | |||
1455 | eina_file_map_free(f, map); | ||
1456 | eina_file_close(f); | ||
1457 | |||
1458 | evas_common_image_premul(ie); | ||
1459 | *error = EVAS_LOAD_ERROR_NONE; | ||
1460 | return EINA_TRUE; | ||
1461 | |||
1462 | close_file: | ||
1463 | if (buffer) free(buffer); | ||
1464 | if (scale_surface) free(scale_surface); | ||
1465 | if (map) eina_file_map_free(f, map); | ||
1466 | eina_file_close(f); | ||
1467 | return EINA_FALSE; | ||
1468 | } | ||
1469 | |||
1470 | static int | ||
1471 | module_open(Evas_Module *em) | ||
1472 | { | ||
1473 | if (!em) return 0; | ||
1474 | em->functions = (void *)(&evas_image_load_bmp_func); | ||
1475 | return 1; | ||
1476 | } | ||
1477 | |||
1478 | static void | ||
1479 | module_close(Evas_Module *em __UNUSED__) | ||
1480 | { | ||
1481 | } | ||
1482 | |||
1483 | static Evas_Module_Api evas_modapi = | ||
1484 | { | ||
1485 | EVAS_MODULE_API_VERSION, | ||
1486 | "bmp", | ||
1487 | "none", | ||
1488 | { | ||
1489 | module_open, | ||
1490 | module_close | ||
1491 | } | ||
1492 | }; | ||
1493 | |||
1494 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, bmp); | ||
1495 | |||
1496 | #ifndef EVAS_STATIC_BUILD_BMP | ||
1497 | EVAS_EINA_MODULE_DEFINE(image_loader, bmp); | ||
1498 | #endif | ||
diff --git a/libraries/evas/src/modules/loaders/edb/Makefile.am b/libraries/evas/src/modules/loaders/edb/Makefile.am deleted file mode 100644 index a0baf6b..0000000 --- a/libraries/evas/src/modules/loaders/edb/Makefile.am +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
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_edb_cflags@ \ | ||
11 | @EINA_CFLAGS@ | ||
12 | |||
13 | |||
14 | if BUILD_LOADER_EDB | ||
15 | if !EVAS_STATIC_BUILD_EDB | ||
16 | |||
17 | pkgdir = $(libdir)/evas/modules/loaders/edb/$(MODULE_ARCH) | ||
18 | pkg_LTLIBRARIES = module.la | ||
19 | |||
20 | module_la_SOURCES = evas_image_load_edb.c | ||
21 | |||
22 | module_la_LIBADD = @evas_image_loader_edb_libs@ @EINA_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
23 | module_la_LDFLAGS = -no-undefined -module -avoid-version | ||
24 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
25 | |||
26 | else | ||
27 | |||
28 | noinst_LTLIBRARIES = libevas_loader_edb.la | ||
29 | |||
30 | libevas_loader_edb_la_SOURCES = evas_image_load_edb.c | ||
31 | libevas_loader_edb_la_LIBADD = @evas_image_loader_edb_libs@ | ||
32 | |||
33 | endif | ||
34 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/edb/Makefile.in b/libraries/evas/src/modules/loaders/edb/Makefile.in deleted file mode 100644 index 19f906f..0000000 --- a/libraries/evas/src/modules/loaders/edb/Makefile.in +++ /dev/null | |||
@@ -1,761 +0,0 @@ | |||
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/edb | ||
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_edb_la_DEPENDENCIES = | ||
83 | am__libevas_loader_edb_la_SOURCES_DIST = evas_image_load_edb.c | ||
84 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_TRUE@am_libevas_loader_edb_la_OBJECTS = evas_image_load_edb.lo | ||
85 | libevas_loader_edb_la_OBJECTS = $(am_libevas_loader_edb_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_TRUE@am_libevas_loader_edb_la_rpath = | ||
90 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
91 | am__module_la_SOURCES_DIST = evas_image_load_edb.c | ||
92 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_edb.lo | ||
93 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
94 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
95 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
96 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@am_module_la_rpath = \ | ||
98 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@ -rpath \ | ||
99 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@ $(pkgdir) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_edb_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_edb_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
185 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
186 | FGREP = @FGREP@ | ||
187 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
188 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
189 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
190 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
191 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
192 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
193 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
194 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
195 | GREP = @GREP@ | ||
196 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
197 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
198 | INSTALL = @INSTALL@ | ||
199 | INSTALL_DATA = @INSTALL_DATA@ | ||
200 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
201 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
202 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
203 | LD = @LD@ | ||
204 | LDFLAGS = @LDFLAGS@ | ||
205 | LIBOBJS = @LIBOBJS@ | ||
206 | LIBS = @LIBS@ | ||
207 | LIBTOOL = @LIBTOOL@ | ||
208 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
209 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
210 | LIPO = @LIPO@ | ||
211 | LN_S = @LN_S@ | ||
212 | LTLIBOBJS = @LTLIBOBJS@ | ||
213 | MAKEINFO = @MAKEINFO@ | ||
214 | MKDIR_P = @MKDIR_P@ | ||
215 | MODULE_ARCH = @MODULE_ARCH@ | ||
216 | NM = @NM@ | ||
217 | NMEDIT = @NMEDIT@ | ||
218 | OBJC = @OBJC@ | ||
219 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
220 | OBJCFLAGS = @OBJCFLAGS@ | ||
221 | OBJDUMP = @OBJDUMP@ | ||
222 | OBJEXT = @OBJEXT@ | ||
223 | OTOOL = @OTOOL@ | ||
224 | OTOOL64 = @OTOOL64@ | ||
225 | PACKAGE = @PACKAGE@ | ||
226 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
227 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
228 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
229 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
230 | PACKAGE_URL = @PACKAGE_URL@ | ||
231 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
232 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
233 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
234 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
235 | PKG_CONFIG = @PKG_CONFIG@ | ||
236 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
237 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
238 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
239 | PNG_LIBS = @PNG_LIBS@ | ||
240 | RANLIB = @RANLIB@ | ||
241 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
242 | SDL_LIBS = @SDL_LIBS@ | ||
243 | SED = @SED@ | ||
244 | SET_MAKE = @SET_MAKE@ | ||
245 | SHELL = @SHELL@ | ||
246 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
247 | STRIP = @STRIP@ | ||
248 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
249 | SVG_LIBS = @SVG_LIBS@ | ||
250 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
251 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
252 | VERSION = @VERSION@ | ||
253 | VMAJ = @VMAJ@ | ||
254 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
255 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
256 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
257 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
258 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
259 | XCB_LIBS = @XCB_LIBS@ | ||
260 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
261 | XEXT_LIBS = @XEXT_LIBS@ | ||
262 | XMKMF = @XMKMF@ | ||
263 | X_CFLAGS = @X_CFLAGS@ | ||
264 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
265 | X_LIBS = @X_LIBS@ | ||
266 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
267 | abs_builddir = @abs_builddir@ | ||
268 | abs_srcdir = @abs_srcdir@ | ||
269 | abs_top_builddir = @abs_top_builddir@ | ||
270 | abs_top_srcdir = @abs_top_srcdir@ | ||
271 | ac_ct_CC = @ac_ct_CC@ | ||
272 | ac_ct_CXX = @ac_ct_CXX@ | ||
273 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
274 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
275 | altivec_cflags = @altivec_cflags@ | ||
276 | am__include = @am__include@ | ||
277 | am__leading_dot = @am__leading_dot@ | ||
278 | am__quote = @am__quote@ | ||
279 | am__tar = @am__tar@ | ||
280 | am__untar = @am__untar@ | ||
281 | bindir = @bindir@ | ||
282 | build = @build@ | ||
283 | build_alias = @build_alias@ | ||
284 | build_cpu = @build_cpu@ | ||
285 | build_os = @build_os@ | ||
286 | build_vendor = @build_vendor@ | ||
287 | builddir = @builddir@ | ||
288 | datadir = @datadir@ | ||
289 | datarootdir = @datarootdir@ | ||
290 | dlopen_libs = @dlopen_libs@ | ||
291 | docdir = @docdir@ | ||
292 | dvidir = @dvidir@ | ||
293 | edje_cc = @edje_cc@ | ||
294 | efl_doxygen = @efl_doxygen@ | ||
295 | efl_have_doxygen = @efl_have_doxygen@ | ||
296 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
297 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
298 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
299 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
300 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
301 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
302 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
303 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
304 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
305 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
306 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
307 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
308 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
309 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
310 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
311 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
312 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
313 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
314 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
315 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
316 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
317 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
318 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
319 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
320 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
321 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
322 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
323 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
324 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
325 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
326 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
327 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
328 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
329 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
330 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
331 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
332 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
333 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
334 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
335 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
336 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
337 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
338 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
339 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
340 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
341 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
342 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
343 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
344 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
345 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
346 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
347 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
348 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
349 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
350 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
351 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
352 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
353 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
354 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
355 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
356 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
357 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
358 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
359 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
360 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
361 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
362 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
363 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
364 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
365 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
366 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
367 | exec_prefix = @exec_prefix@ | ||
368 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
369 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
370 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
371 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
372 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
373 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
374 | have_lcov = @have_lcov@ | ||
375 | host = @host@ | ||
376 | host_alias = @host_alias@ | ||
377 | host_cpu = @host_cpu@ | ||
378 | host_os = @host_os@ | ||
379 | host_vendor = @host_vendor@ | ||
380 | htmldir = @htmldir@ | ||
381 | includedir = @includedir@ | ||
382 | infodir = @infodir@ | ||
383 | install_sh = @install_sh@ | ||
384 | libdir = @libdir@ | ||
385 | libexecdir = @libexecdir@ | ||
386 | localedir = @localedir@ | ||
387 | localstatedir = @localstatedir@ | ||
388 | lt_ECHO = @lt_ECHO@ | ||
389 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
390 | mandir = @mandir@ | ||
391 | mkdir_p = @mkdir_p@ | ||
392 | oldincludedir = @oldincludedir@ | ||
393 | pdfdir = @pdfdir@ | ||
394 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
395 | prefix = @prefix@ | ||
396 | program_transform_name = @program_transform_name@ | ||
397 | psdir = @psdir@ | ||
398 | pthread_cflags = @pthread_cflags@ | ||
399 | pthread_libs = @pthread_libs@ | ||
400 | release_info = @release_info@ | ||
401 | requirement_evas = @requirement_evas@ | ||
402 | sbindir = @sbindir@ | ||
403 | sharedstatedir = @sharedstatedir@ | ||
404 | srcdir = @srcdir@ | ||
405 | sysconfdir = @sysconfdir@ | ||
406 | target_alias = @target_alias@ | ||
407 | top_build_prefix = @top_build_prefix@ | ||
408 | top_builddir = @top_builddir@ | ||
409 | top_srcdir = @top_srcdir@ | ||
410 | version_info = @version_info@ | ||
411 | MAINTAINERCLEANFILES = Makefile.in | ||
412 | AM_CPPFLAGS = \ | ||
413 | -I. \ | ||
414 | -I$(top_srcdir)/src/lib \ | ||
415 | -I$(top_srcdir)/src/lib/include \ | ||
416 | @FREETYPE_CFLAGS@ \ | ||
417 | @PIXMAN_CFLAGS@ \ | ||
418 | @evas_image_loader_edb_cflags@ \ | ||
419 | @EINA_CFLAGS@ | ||
420 | |||
421 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@pkgdir = $(libdir)/evas/modules/loaders/edb/$(MODULE_ARCH) | ||
422 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@pkg_LTLIBRARIES = module.la | ||
423 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@module_la_SOURCES = evas_image_load_edb.c | ||
424 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@module_la_LIBADD = @evas_image_loader_edb_libs@ @EINA_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
425 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@module_la_LDFLAGS = -no-undefined -module -avoid-version | ||
426 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
427 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_TRUE@noinst_LTLIBRARIES = libevas_loader_edb.la | ||
428 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_TRUE@libevas_loader_edb_la_SOURCES = evas_image_load_edb.c | ||
429 | @BUILD_LOADER_EDB_TRUE@@EVAS_STATIC_BUILD_EDB_TRUE@libevas_loader_edb_la_LIBADD = @evas_image_loader_edb_libs@ | ||
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/edb/Makefile'; \ | ||
444 | $(am__cd) $(top_srcdir) && \ | ||
445 | $(AUTOMAKE) --gnu src/modules/loaders/edb/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_edb.la: $(libevas_loader_edb_la_OBJECTS) $(libevas_loader_edb_la_DEPENDENCIES) | ||
505 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_edb_la_rpath) $(libevas_loader_edb_la_OBJECTS) $(libevas_loader_edb_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_edb.Plo@am__quote@ | ||
516 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_edb.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_edb.lo: evas_image_load_edb.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_edb.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_edb.Tpo -c -o module_la-evas_image_load_edb.lo `test -f 'evas_image_load_edb.c' || echo '$(srcdir)/'`evas_image_load_edb.c | ||
544 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_edb.Tpo $(DEPDIR)/module_la-evas_image_load_edb.Plo | ||
545 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
546 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_edb.c' object='module_la-evas_image_load_edb.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_edb.lo `test -f 'evas_image_load_edb.c' || echo '$(srcdir)/'`evas_image_load_edb.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/edb/evas_image_load_edb.c b/libraries/evas/src/modules/loaders/edb/evas_image_load_edb.c deleted file mode 100644 index 521161f..0000000 --- a/libraries/evas/src/modules/loaders/edb/evas_image_load_edb.c +++ /dev/null | |||
@@ -1,251 +0,0 @@ | |||
1 | #include "evas_common.h" | ||
2 | #include "evas_private.h" | ||
3 | |||
4 | #include <Edb.h> | ||
5 | #include <zlib.h> | ||
6 | |||
7 | |||
8 | #define SWAP32(x) (x) = ((((x) & 0x000000ff ) << 24) | (((x) & 0x0000ff00 ) << 8) | (((x) & 0x00ff0000 ) >> 8) | (((x) & 0xff000000 ) >> 24)) | ||
9 | |||
10 | |||
11 | static Eina_Bool evas_image_load_file_head_edb(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
12 | static Eina_Bool evas_image_load_file_data_edb(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
13 | |||
14 | static Evas_Image_Load_Func evas_image_load_edb_func = | ||
15 | { | ||
16 | EINA_TRUE, | ||
17 | evas_image_load_file_head_edb, | ||
18 | evas_image_load_file_data_edb, | ||
19 | NULL, | ||
20 | EINA_FALSE | ||
21 | }; | ||
22 | |||
23 | static Eina_Bool | ||
24 | evas_image_load_file_head_edb(Image_Entry *ie, const char *file, const char *key, int *error) | ||
25 | { | ||
26 | int w, h, alpha, compression, size; | ||
27 | E_DB_File *db; | ||
28 | DATA32 *ret; | ||
29 | DATA32 header[8]; | ||
30 | |||
31 | if (!key) | ||
32 | { | ||
33 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
34 | return EINA_FALSE; | ||
35 | } | ||
36 | db = e_db_open_read((char *)file); | ||
37 | if (!db) | ||
38 | { | ||
39 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
40 | return EINA_FALSE; | ||
41 | } | ||
42 | ret = e_db_data_get(db, (char *)key, &size); | ||
43 | if (!ret) | ||
44 | { | ||
45 | e_db_close(db); | ||
46 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
47 | return EINA_FALSE; | ||
48 | } | ||
49 | if (size < 32) | ||
50 | { | ||
51 | free(ret); | ||
52 | e_db_close(db); | ||
53 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
54 | return EINA_FALSE; | ||
55 | } | ||
56 | memcpy(header, ret, 32); | ||
57 | #ifdef WORDS_BIGENDIAN | ||
58 | { | ||
59 | int i; | ||
60 | |||
61 | for (i = 0; i < 8; i++) SWAP32(header[i]); | ||
62 | } | ||
63 | #endif | ||
64 | if (header[0] != 0xac1dfeed) | ||
65 | { | ||
66 | free(ret); | ||
67 | e_db_close(db); | ||
68 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
69 | return EINA_FALSE; | ||
70 | } | ||
71 | w = header[1]; | ||
72 | h = header[2]; | ||
73 | if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) || | ||
74 | IMG_TOO_BIG(w, h)) | ||
75 | { | ||
76 | free(ret); | ||
77 | e_db_close(db); | ||
78 | if (IMG_TOO_BIG(w, h)) | ||
79 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
80 | else | ||
81 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
82 | return EINA_FALSE; | ||
83 | } | ||
84 | alpha = header[3]; | ||
85 | compression = header[4]; | ||
86 | |||
87 | if ((compression == 0) && (size < ((w * h * 4) + 32))) | ||
88 | { | ||
89 | free(ret); | ||
90 | e_db_close(db); | ||
91 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
92 | return EINA_FALSE; | ||
93 | } | ||
94 | if (alpha) ie->flags.alpha = 1; | ||
95 | ie->w = w; | ||
96 | ie->h = h; | ||
97 | free(ret); | ||
98 | e_db_close(db); | ||
99 | *error = EVAS_LOAD_ERROR_NONE; | ||
100 | return EINA_TRUE; | ||
101 | } | ||
102 | |||
103 | static Eina_Bool | ||
104 | evas_image_load_file_data_edb(Image_Entry *ie, const char *file, const char *key, int *error) | ||
105 | { | ||
106 | int w, h, alpha, compression, size; | ||
107 | E_DB_File *db; | ||
108 | DATA32 *ret; | ||
109 | DATA32 *body; | ||
110 | DATA32 *surface; | ||
111 | DATA32 header[8]; | ||
112 | |||
113 | if (!key) | ||
114 | { | ||
115 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
116 | return EINA_FALSE; | ||
117 | } | ||
118 | db = e_db_open_read((char *)file); | ||
119 | if (!db) | ||
120 | { | ||
121 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
122 | return EINA_FALSE; | ||
123 | } | ||
124 | ret = e_db_data_get(db, (char *)key, &size); | ||
125 | if (!ret) | ||
126 | { | ||
127 | e_db_close(db); | ||
128 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
129 | return EINA_FALSE; | ||
130 | } | ||
131 | if (size < 32) | ||
132 | { | ||
133 | free(ret); | ||
134 | e_db_close(db); | ||
135 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
136 | return EINA_FALSE; | ||
137 | } | ||
138 | memcpy(header, ret, 32); | ||
139 | #ifdef WORDS_BIGENDIAN | ||
140 | { | ||
141 | int i; | ||
142 | |||
143 | for (i = 0; i < 8; i++) SWAP32(header[i]); | ||
144 | } | ||
145 | #endif | ||
146 | if (header[0] != 0xac1dfeed) | ||
147 | { | ||
148 | free(ret); | ||
149 | e_db_close(db); | ||
150 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
151 | return EINA_FALSE; | ||
152 | } | ||
153 | w = header[1]; | ||
154 | h = header[2]; | ||
155 | if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) || | ||
156 | IMG_TOO_BIG(w, h)) | ||
157 | { | ||
158 | free(ret); | ||
159 | e_db_close(db); | ||
160 | if (IMG_TOO_BIG(w, h)) | ||
161 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
162 | else | ||
163 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
164 | return EINA_FALSE; | ||
165 | } | ||
166 | |||
167 | alpha = header[3]; | ||
168 | compression = header[4]; | ||
169 | |||
170 | if ((compression == 0) && (size < ((w * h * 4) + 32))) | ||
171 | { | ||
172 | free(ret); | ||
173 | e_db_close(db); | ||
174 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
175 | return EINA_FALSE; | ||
176 | } | ||
177 | if (alpha) ie->flags.alpha = 1; | ||
178 | body = &(ret[8]); | ||
179 | evas_cache_image_surface_alloc(ie, w, h); | ||
180 | surface = evas_cache_image_pixels(ie); | ||
181 | if (!surface) | ||
182 | { | ||
183 | free(ret); | ||
184 | e_db_close(db); | ||
185 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
186 | return EINA_FALSE; | ||
187 | } | ||
188 | if (!compression) | ||
189 | { | ||
190 | #ifdef WORDS_BIGENDIAN | ||
191 | { | ||
192 | int x; | ||
193 | |||
194 | memcpy(surface, body, w * h * sizeof(DATA32)); | ||
195 | for (x = 0; x < (w * h); x++) SWAP32(surface[x]); | ||
196 | } | ||
197 | #else | ||
198 | memcpy(surface, body, w * h * sizeof(DATA32)); | ||
199 | #endif | ||
200 | } | ||
201 | else | ||
202 | { | ||
203 | uLongf dlen; | ||
204 | |||
205 | dlen = w * h * sizeof(DATA32); | ||
206 | uncompress((Bytef *)surface, &dlen, (Bytef *)body, | ||
207 | (uLongf)(size - 32)); | ||
208 | #ifdef WORDS_BIGENDIAN | ||
209 | { | ||
210 | int x; | ||
211 | |||
212 | for (x = 0; x < (w * h); x++) SWAP32(surface[x]); | ||
213 | } | ||
214 | #endif | ||
215 | } | ||
216 | evas_common_image_premul(ie); | ||
217 | free(ret); | ||
218 | e_db_close(db); | ||
219 | *error = EVAS_LOAD_ERROR_NONE; | ||
220 | return EINA_TRUE; | ||
221 | } | ||
222 | |||
223 | static int | ||
224 | module_open(Evas_Module *em) | ||
225 | { | ||
226 | if (!em) return 0; | ||
227 | em->functions = (void *)(&evas_image_load_edb_func); | ||
228 | return 1; | ||
229 | } | ||
230 | |||
231 | static void | ||
232 | module_close(Evas_Module *em) | ||
233 | { | ||
234 | } | ||
235 | |||
236 | static Evas_Module_Api evas_modapi = | ||
237 | { | ||
238 | EVAS_MODULE_API_VERSION, | ||
239 | "edb", | ||
240 | "none", | ||
241 | { | ||
242 | module_open, | ||
243 | module_close | ||
244 | } | ||
245 | }; | ||
246 | |||
247 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, edb); | ||
248 | |||
249 | #ifndef EVAS_STATIC_BUILD_EDB | ||
250 | EVAS_EINA_MODULE_DEFINE(image_loader, edb); | ||
251 | #endif | ||
diff --git a/libraries/evas/src/modules/loaders/eet/Makefile.am b/libraries/evas/src/modules/loaders/eet/Makefile.am deleted file mode 100644 index 44270e5..0000000 --- a/libraries/evas/src/modules/loaders/eet/Makefile.am +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
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_eet_cflags@ \ | ||
11 | @EINA_CFLAGS@ | ||
12 | |||
13 | |||
14 | if BUILD_LOADER_EET | ||
15 | if !EVAS_STATIC_BUILD_EET | ||
16 | |||
17 | pkgdir = $(libdir)/evas/modules/loaders/eet/$(MODULE_ARCH) | ||
18 | pkg_LTLIBRARIES = module.la | ||
19 | |||
20 | module_la_SOURCES = evas_image_load_eet.c | ||
21 | |||
22 | module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_eet_libs@ $(top_builddir)/src/lib/libevas.la | ||
23 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
24 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
25 | |||
26 | else | ||
27 | |||
28 | noinst_LTLIBRARIES = libevas_loader_eet.la | ||
29 | |||
30 | libevas_loader_eet_la_SOURCES = evas_image_load_eet.c | ||
31 | libevas_loader_eet_la_LIBADD = @evas_image_loader_eet_libs@ | ||
32 | |||
33 | endif | ||
34 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/eet/Makefile.in b/libraries/evas/src/modules/loaders/eet/Makefile.in deleted file mode 100644 index b144d3a..0000000 --- a/libraries/evas/src/modules/loaders/eet/Makefile.in +++ /dev/null | |||
@@ -1,761 +0,0 @@ | |||
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/eet | ||
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_eet_la_DEPENDENCIES = | ||
83 | am__libevas_loader_eet_la_SOURCES_DIST = evas_image_load_eet.c | ||
84 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_TRUE@am_libevas_loader_eet_la_OBJECTS = evas_image_load_eet.lo | ||
85 | libevas_loader_eet_la_OBJECTS = $(am_libevas_loader_eet_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_TRUE@am_libevas_loader_eet_la_rpath = | ||
90 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
91 | am__module_la_SOURCES_DIST = evas_image_load_eet.c | ||
92 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_eet.lo | ||
93 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
94 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
95 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
96 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@am_module_la_rpath = \ | ||
98 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@ -rpath \ | ||
99 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@ $(pkgdir) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_eet_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_eet_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
185 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
186 | FGREP = @FGREP@ | ||
187 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
188 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
189 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
190 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
191 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
192 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
193 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
194 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
195 | GREP = @GREP@ | ||
196 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
197 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
198 | INSTALL = @INSTALL@ | ||
199 | INSTALL_DATA = @INSTALL_DATA@ | ||
200 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
201 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
202 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
203 | LD = @LD@ | ||
204 | LDFLAGS = @LDFLAGS@ | ||
205 | LIBOBJS = @LIBOBJS@ | ||
206 | LIBS = @LIBS@ | ||
207 | LIBTOOL = @LIBTOOL@ | ||
208 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
209 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
210 | LIPO = @LIPO@ | ||
211 | LN_S = @LN_S@ | ||
212 | LTLIBOBJS = @LTLIBOBJS@ | ||
213 | MAKEINFO = @MAKEINFO@ | ||
214 | MKDIR_P = @MKDIR_P@ | ||
215 | MODULE_ARCH = @MODULE_ARCH@ | ||
216 | NM = @NM@ | ||
217 | NMEDIT = @NMEDIT@ | ||
218 | OBJC = @OBJC@ | ||
219 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
220 | OBJCFLAGS = @OBJCFLAGS@ | ||
221 | OBJDUMP = @OBJDUMP@ | ||
222 | OBJEXT = @OBJEXT@ | ||
223 | OTOOL = @OTOOL@ | ||
224 | OTOOL64 = @OTOOL64@ | ||
225 | PACKAGE = @PACKAGE@ | ||
226 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
227 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
228 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
229 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
230 | PACKAGE_URL = @PACKAGE_URL@ | ||
231 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
232 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
233 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
234 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
235 | PKG_CONFIG = @PKG_CONFIG@ | ||
236 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
237 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
238 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
239 | PNG_LIBS = @PNG_LIBS@ | ||
240 | RANLIB = @RANLIB@ | ||
241 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
242 | SDL_LIBS = @SDL_LIBS@ | ||
243 | SED = @SED@ | ||
244 | SET_MAKE = @SET_MAKE@ | ||
245 | SHELL = @SHELL@ | ||
246 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
247 | STRIP = @STRIP@ | ||
248 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
249 | SVG_LIBS = @SVG_LIBS@ | ||
250 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
251 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
252 | VERSION = @VERSION@ | ||
253 | VMAJ = @VMAJ@ | ||
254 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
255 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
256 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
257 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
258 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
259 | XCB_LIBS = @XCB_LIBS@ | ||
260 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
261 | XEXT_LIBS = @XEXT_LIBS@ | ||
262 | XMKMF = @XMKMF@ | ||
263 | X_CFLAGS = @X_CFLAGS@ | ||
264 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
265 | X_LIBS = @X_LIBS@ | ||
266 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
267 | abs_builddir = @abs_builddir@ | ||
268 | abs_srcdir = @abs_srcdir@ | ||
269 | abs_top_builddir = @abs_top_builddir@ | ||
270 | abs_top_srcdir = @abs_top_srcdir@ | ||
271 | ac_ct_CC = @ac_ct_CC@ | ||
272 | ac_ct_CXX = @ac_ct_CXX@ | ||
273 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
274 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
275 | altivec_cflags = @altivec_cflags@ | ||
276 | am__include = @am__include@ | ||
277 | am__leading_dot = @am__leading_dot@ | ||
278 | am__quote = @am__quote@ | ||
279 | am__tar = @am__tar@ | ||
280 | am__untar = @am__untar@ | ||
281 | bindir = @bindir@ | ||
282 | build = @build@ | ||
283 | build_alias = @build_alias@ | ||
284 | build_cpu = @build_cpu@ | ||
285 | build_os = @build_os@ | ||
286 | build_vendor = @build_vendor@ | ||
287 | builddir = @builddir@ | ||
288 | datadir = @datadir@ | ||
289 | datarootdir = @datarootdir@ | ||
290 | dlopen_libs = @dlopen_libs@ | ||
291 | docdir = @docdir@ | ||
292 | dvidir = @dvidir@ | ||
293 | edje_cc = @edje_cc@ | ||
294 | efl_doxygen = @efl_doxygen@ | ||
295 | efl_have_doxygen = @efl_have_doxygen@ | ||
296 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
297 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
298 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
299 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
300 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
301 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
302 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
303 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
304 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
305 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
306 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
307 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
308 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
309 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
310 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
311 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
312 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
313 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
314 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
315 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
316 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
317 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
318 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
319 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
320 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
321 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
322 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
323 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
324 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
325 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
326 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
327 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
328 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
329 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
330 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
331 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
332 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
333 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
334 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
335 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
336 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
337 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
338 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
339 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
340 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
341 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
342 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
343 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
344 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
345 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
346 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
347 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
348 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
349 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
350 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
351 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
352 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
353 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
354 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
355 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
356 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
357 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
358 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
359 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
360 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
361 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
362 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
363 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
364 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
365 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
366 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
367 | exec_prefix = @exec_prefix@ | ||
368 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
369 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
370 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
371 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
372 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
373 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
374 | have_lcov = @have_lcov@ | ||
375 | host = @host@ | ||
376 | host_alias = @host_alias@ | ||
377 | host_cpu = @host_cpu@ | ||
378 | host_os = @host_os@ | ||
379 | host_vendor = @host_vendor@ | ||
380 | htmldir = @htmldir@ | ||
381 | includedir = @includedir@ | ||
382 | infodir = @infodir@ | ||
383 | install_sh = @install_sh@ | ||
384 | libdir = @libdir@ | ||
385 | libexecdir = @libexecdir@ | ||
386 | localedir = @localedir@ | ||
387 | localstatedir = @localstatedir@ | ||
388 | lt_ECHO = @lt_ECHO@ | ||
389 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
390 | mandir = @mandir@ | ||
391 | mkdir_p = @mkdir_p@ | ||
392 | oldincludedir = @oldincludedir@ | ||
393 | pdfdir = @pdfdir@ | ||
394 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
395 | prefix = @prefix@ | ||
396 | program_transform_name = @program_transform_name@ | ||
397 | psdir = @psdir@ | ||
398 | pthread_cflags = @pthread_cflags@ | ||
399 | pthread_libs = @pthread_libs@ | ||
400 | release_info = @release_info@ | ||
401 | requirement_evas = @requirement_evas@ | ||
402 | sbindir = @sbindir@ | ||
403 | sharedstatedir = @sharedstatedir@ | ||
404 | srcdir = @srcdir@ | ||
405 | sysconfdir = @sysconfdir@ | ||
406 | target_alias = @target_alias@ | ||
407 | top_build_prefix = @top_build_prefix@ | ||
408 | top_builddir = @top_builddir@ | ||
409 | top_srcdir = @top_srcdir@ | ||
410 | version_info = @version_info@ | ||
411 | MAINTAINERCLEANFILES = Makefile.in | ||
412 | AM_CPPFLAGS = \ | ||
413 | -I. \ | ||
414 | -I$(top_srcdir)/src/lib \ | ||
415 | -I$(top_srcdir)/src/lib/include \ | ||
416 | @FREETYPE_CFLAGS@ \ | ||
417 | @PIXMAN_CFLAGS@ \ | ||
418 | @evas_image_loader_eet_cflags@ \ | ||
419 | @EINA_CFLAGS@ | ||
420 | |||
421 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@pkgdir = $(libdir)/evas/modules/loaders/eet/$(MODULE_ARCH) | ||
422 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@pkg_LTLIBRARIES = module.la | ||
423 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@module_la_SOURCES = evas_image_load_eet.c | ||
424 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_eet_libs@ $(top_builddir)/src/lib/libevas.la | ||
425 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
426 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
427 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_TRUE@noinst_LTLIBRARIES = libevas_loader_eet.la | ||
428 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_TRUE@libevas_loader_eet_la_SOURCES = evas_image_load_eet.c | ||
429 | @BUILD_LOADER_EET_TRUE@@EVAS_STATIC_BUILD_EET_TRUE@libevas_loader_eet_la_LIBADD = @evas_image_loader_eet_libs@ | ||
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/eet/Makefile'; \ | ||
444 | $(am__cd) $(top_srcdir) && \ | ||
445 | $(AUTOMAKE) --gnu src/modules/loaders/eet/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_eet.la: $(libevas_loader_eet_la_OBJECTS) $(libevas_loader_eet_la_DEPENDENCIES) | ||
505 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_eet_la_rpath) $(libevas_loader_eet_la_OBJECTS) $(libevas_loader_eet_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_eet.Plo@am__quote@ | ||
516 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_eet.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_eet.lo: evas_image_load_eet.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_eet.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_eet.Tpo -c -o module_la-evas_image_load_eet.lo `test -f 'evas_image_load_eet.c' || echo '$(srcdir)/'`evas_image_load_eet.c | ||
544 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_eet.Tpo $(DEPDIR)/module_la-evas_image_load_eet.Plo | ||
545 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
546 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_eet.c' object='module_la-evas_image_load_eet.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_eet.lo `test -f 'evas_image_load_eet.c' || echo '$(srcdir)/'`evas_image_load_eet.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/eet/evas_image_load_eet.c b/libraries/evas/src/modules/loaders/eet/evas_image_load_eet.c deleted file mode 100644 index f86246a..0000000 --- a/libraries/evas/src/modules/loaders/eet/evas_image_load_eet.c +++ /dev/null | |||
@@ -1,183 +0,0 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include "config.h" /* so that EAPI in Eet.h is correctly defined */ | ||
3 | #endif | ||
4 | |||
5 | #include <Eet.h> | ||
6 | |||
7 | #include "evas_common.h" | ||
8 | #include "evas_private.h" | ||
9 | |||
10 | |||
11 | static Eina_Bool evas_image_load_file_head_eet(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
12 | static Eina_Bool evas_image_load_file_data_eet(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
13 | |||
14 | Evas_Image_Load_Func evas_image_load_eet_func = | ||
15 | { | ||
16 | EINA_TRUE, | ||
17 | evas_image_load_file_head_eet, | ||
18 | evas_image_load_file_data_eet, | ||
19 | NULL, | ||
20 | EINA_FALSE | ||
21 | }; | ||
22 | |||
23 | |||
24 | static Eina_Bool | ||
25 | evas_image_load_file_head_eet(Image_Entry *ie, const char *file, const char *key, int *error) | ||
26 | { | ||
27 | int alpha, compression, quality, lossy; | ||
28 | unsigned int w, h; | ||
29 | Eet_File *ef; | ||
30 | int ok; | ||
31 | Eina_Bool res = EINA_FALSE; | ||
32 | |||
33 | if (!key) | ||
34 | { | ||
35 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
36 | return EINA_FALSE; | ||
37 | } | ||
38 | |||
39 | ef = eet_open((char *)file, EET_FILE_MODE_READ); | ||
40 | if (!ef) | ||
41 | { | ||
42 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
43 | return EINA_FALSE; | ||
44 | } | ||
45 | ok = eet_data_image_header_read(ef, key, | ||
46 | &w, &h, &alpha, &compression, &quality, &lossy); | ||
47 | if (!ok) | ||
48 | { | ||
49 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
50 | goto on_error; | ||
51 | } | ||
52 | if (IMG_TOO_BIG(w, h)) | ||
53 | { | ||
54 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
55 | goto on_error; | ||
56 | } | ||
57 | if (alpha) ie->flags.alpha = 1; | ||
58 | ie->w = w; | ||
59 | ie->h = h; | ||
60 | res = EINA_TRUE; | ||
61 | *error = EVAS_LOAD_ERROR_NONE; | ||
62 | |||
63 | on_error: | ||
64 | eet_close(ef); | ||
65 | return res; | ||
66 | } | ||
67 | |||
68 | Eina_Bool | ||
69 | evas_image_load_file_data_eet(Image_Entry *ie, const char *file, const char *key, int *error) | ||
70 | { | ||
71 | unsigned int w, h; | ||
72 | int alpha, compression, quality, lossy, ok; | ||
73 | Eet_File *ef; | ||
74 | DATA32 *body, *p, *end, *data; | ||
75 | DATA32 nas = 0; | ||
76 | Eina_Bool res = EINA_FALSE; | ||
77 | |||
78 | if (!key) | ||
79 | { | ||
80 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
81 | return EINA_FALSE; | ||
82 | } | ||
83 | if (ie->flags.loaded) | ||
84 | { | ||
85 | *error = EVAS_LOAD_ERROR_NONE; | ||
86 | return EINA_TRUE; | ||
87 | } | ||
88 | ef = eet_open(file, EET_FILE_MODE_READ); | ||
89 | if (!ef) | ||
90 | { | ||
91 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
92 | return EINA_FALSE; | ||
93 | } | ||
94 | ok = eet_data_image_header_read(ef, key, | ||
95 | &w, &h, &alpha, &compression, &quality, &lossy); | ||
96 | if (IMG_TOO_BIG(w, h)) | ||
97 | { | ||
98 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
99 | goto on_error; | ||
100 | } | ||
101 | if (!ok) | ||
102 | { | ||
103 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
104 | goto on_error; | ||
105 | } | ||
106 | evas_cache_image_surface_alloc(ie, w, h); | ||
107 | data = evas_cache_image_pixels(ie); | ||
108 | if (!data) | ||
109 | { | ||
110 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
111 | goto on_error; | ||
112 | } | ||
113 | ok = eet_data_image_read_to_surface(ef, key, 0, 0, | ||
114 | data, w, h, w * 4, | ||
115 | &alpha, &compression, &quality, &lossy); | ||
116 | if (!ok) | ||
117 | { | ||
118 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
119 | goto on_error; | ||
120 | } | ||
121 | if (alpha) | ||
122 | { | ||
123 | ie->flags.alpha = 1; | ||
124 | |||
125 | body = evas_cache_image_pixels(ie); | ||
126 | |||
127 | end = body +(w * h); | ||
128 | for (p = body; p < end; p++) | ||
129 | { | ||
130 | DATA32 r, g, b, a; | ||
131 | |||
132 | a = A_VAL(p); | ||
133 | r = R_VAL(p); | ||
134 | g = G_VAL(p); | ||
135 | b = B_VAL(p); | ||
136 | if ((a == 0) || (a == 255)) nas++; | ||
137 | if (r > a) r = a; | ||
138 | if (g > a) g = a; | ||
139 | if (b > a) b = a; | ||
140 | *p = ARGB_JOIN(a, r, g, b); | ||
141 | } | ||
142 | if ((ALPHA_SPARSE_INV_FRACTION * nas) >= (ie->w * ie->h)) | ||
143 | ie->flags.alpha_sparse = 1; | ||
144 | } | ||
145 | // result is already premultiplied now if u compile with edje | ||
146 | // evas_common_image_premul(im); | ||
147 | *error = EVAS_LOAD_ERROR_NONE; | ||
148 | res = EINA_TRUE; | ||
149 | |||
150 | on_error: | ||
151 | eet_close(ef); | ||
152 | return res; | ||
153 | } | ||
154 | |||
155 | static int | ||
156 | module_open(Evas_Module *em) | ||
157 | { | ||
158 | if (!em) return 0; | ||
159 | em->functions = (void *)(&evas_image_load_eet_func); | ||
160 | return 1; | ||
161 | } | ||
162 | |||
163 | static void | ||
164 | module_close(Evas_Module *em __UNUSED__) | ||
165 | { | ||
166 | } | ||
167 | |||
168 | static Evas_Module_Api evas_modapi = | ||
169 | { | ||
170 | EVAS_MODULE_API_VERSION, | ||
171 | "eet", | ||
172 | "none", | ||
173 | { | ||
174 | module_open, | ||
175 | module_close | ||
176 | } | ||
177 | }; | ||
178 | |||
179 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, eet); | ||
180 | |||
181 | #ifndef EVAS_STATIC_BUILD_EET | ||
182 | EVAS_EINA_MODULE_DEFINE(image_loader, eet); | ||
183 | #endif | ||
diff --git a/libraries/evas/src/modules/loaders/generic/Makefile.am b/libraries/evas/src/modules/loaders/generic/Makefile.am deleted file mode 100644 index 1f72bfc..0000000 --- a/libraries/evas/src/modules/loaders/generic/Makefile.am +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
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 | |||
14 | |||
15 | if BUILD_LOADER_GENERIC | ||
16 | if !EVAS_STATIC_BUILD_GENERIC | ||
17 | |||
18 | pkgdir = $(libdir)/evas/modules/loaders/generic/$(MODULE_ARCH) | ||
19 | pkg_LTLIBRARIES = module.la | ||
20 | |||
21 | module_la_SOURCES = evas_image_load_generic.c | ||
22 | |||
23 | module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_generic_libs@ @SHM_OPEN_LINK@ $(top_builddir)/src/lib/libevas.la | ||
24 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
25 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
26 | |||
27 | else | ||
28 | |||
29 | noinst_LTLIBRARIES = libevas_loader_generic.la | ||
30 | |||
31 | libevas_loader_generic_la_SOURCES = evas_image_load_generic.c | ||
32 | libevas_loader_generic_la_LIBADD = @evas_image_loader_generic_libs@ @SHM_OPEN_LINK@ | ||
33 | |||
34 | endif | ||
35 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/generic/Makefile.in b/libraries/evas/src/modules/loaders/generic/Makefile.in deleted file mode 100644 index 98bb45b..0000000 --- a/libraries/evas/src/modules/loaders/generic/Makefile.in +++ /dev/null | |||
@@ -1,763 +0,0 @@ | |||
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 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
186 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
187 | FGREP = @FGREP@ | ||
188 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
189 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
190 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
191 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
192 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
193 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
194 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
195 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
196 | GREP = @GREP@ | ||
197 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
198 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
199 | INSTALL = @INSTALL@ | ||
200 | INSTALL_DATA = @INSTALL_DATA@ | ||
201 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
202 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
203 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
204 | LD = @LD@ | ||
205 | LDFLAGS = @LDFLAGS@ | ||
206 | LIBOBJS = @LIBOBJS@ | ||
207 | LIBS = @LIBS@ | ||
208 | LIBTOOL = @LIBTOOL@ | ||
209 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
210 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
211 | LIPO = @LIPO@ | ||
212 | LN_S = @LN_S@ | ||
213 | LTLIBOBJS = @LTLIBOBJS@ | ||
214 | MAKEINFO = @MAKEINFO@ | ||
215 | MKDIR_P = @MKDIR_P@ | ||
216 | MODULE_ARCH = @MODULE_ARCH@ | ||
217 | NM = @NM@ | ||
218 | NMEDIT = @NMEDIT@ | ||
219 | OBJC = @OBJC@ | ||
220 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
221 | OBJCFLAGS = @OBJCFLAGS@ | ||
222 | OBJDUMP = @OBJDUMP@ | ||
223 | OBJEXT = @OBJEXT@ | ||
224 | OTOOL = @OTOOL@ | ||
225 | OTOOL64 = @OTOOL64@ | ||
226 | PACKAGE = @PACKAGE@ | ||
227 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
228 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
229 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
230 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
231 | PACKAGE_URL = @PACKAGE_URL@ | ||
232 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
233 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
234 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
235 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
236 | PKG_CONFIG = @PKG_CONFIG@ | ||
237 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
238 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
239 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
240 | PNG_LIBS = @PNG_LIBS@ | ||
241 | RANLIB = @RANLIB@ | ||
242 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
243 | SDL_LIBS = @SDL_LIBS@ | ||
244 | SED = @SED@ | ||
245 | SET_MAKE = @SET_MAKE@ | ||
246 | SHELL = @SHELL@ | ||
247 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
248 | STRIP = @STRIP@ | ||
249 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
250 | SVG_LIBS = @SVG_LIBS@ | ||
251 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
252 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
253 | VERSION = @VERSION@ | ||
254 | VMAJ = @VMAJ@ | ||
255 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
256 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
257 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
258 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
259 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
260 | XCB_LIBS = @XCB_LIBS@ | ||
261 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
262 | XEXT_LIBS = @XEXT_LIBS@ | ||
263 | XMKMF = @XMKMF@ | ||
264 | X_CFLAGS = @X_CFLAGS@ | ||
265 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
266 | X_LIBS = @X_LIBS@ | ||
267 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
268 | abs_builddir = @abs_builddir@ | ||
269 | abs_srcdir = @abs_srcdir@ | ||
270 | abs_top_builddir = @abs_top_builddir@ | ||
271 | abs_top_srcdir = @abs_top_srcdir@ | ||
272 | ac_ct_CC = @ac_ct_CC@ | ||
273 | ac_ct_CXX = @ac_ct_CXX@ | ||
274 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
275 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
276 | altivec_cflags = @altivec_cflags@ | ||
277 | am__include = @am__include@ | ||
278 | am__leading_dot = @am__leading_dot@ | ||
279 | am__quote = @am__quote@ | ||
280 | am__tar = @am__tar@ | ||
281 | am__untar = @am__untar@ | ||
282 | bindir = @bindir@ | ||
283 | build = @build@ | ||
284 | build_alias = @build_alias@ | ||
285 | build_cpu = @build_cpu@ | ||
286 | build_os = @build_os@ | ||
287 | build_vendor = @build_vendor@ | ||
288 | builddir = @builddir@ | ||
289 | datadir = @datadir@ | ||
290 | datarootdir = @datarootdir@ | ||
291 | dlopen_libs = @dlopen_libs@ | ||
292 | docdir = @docdir@ | ||
293 | dvidir = @dvidir@ | ||
294 | edje_cc = @edje_cc@ | ||
295 | efl_doxygen = @efl_doxygen@ | ||
296 | efl_have_doxygen = @efl_have_doxygen@ | ||
297 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
298 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
299 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
300 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
301 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
302 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
303 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
304 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
305 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
306 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
307 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
308 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
309 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
310 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
311 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
312 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
313 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
314 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
315 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
316 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
317 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
318 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
319 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
320 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
321 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
322 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
323 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
324 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
325 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
326 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
327 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
328 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
329 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_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_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
335 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
336 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
337 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
338 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
339 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
340 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
341 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
342 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
343 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
344 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
345 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
346 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
347 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
348 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
349 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
350 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
351 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
352 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
353 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
354 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
355 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
356 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
357 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
358 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
359 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
360 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
361 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
362 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
363 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
364 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
365 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
366 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
367 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
368 | exec_prefix = @exec_prefix@ | ||
369 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
370 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
371 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
372 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
373 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
374 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
375 | have_lcov = @have_lcov@ | ||
376 | host = @host@ | ||
377 | host_alias = @host_alias@ | ||
378 | host_cpu = @host_cpu@ | ||
379 | host_os = @host_os@ | ||
380 | host_vendor = @host_vendor@ | ||
381 | htmldir = @htmldir@ | ||
382 | includedir = @includedir@ | ||
383 | infodir = @infodir@ | ||
384 | install_sh = @install_sh@ | ||
385 | libdir = @libdir@ | ||
386 | libexecdir = @libexecdir@ | ||
387 | localedir = @localedir@ | ||
388 | localstatedir = @localstatedir@ | ||
389 | lt_ECHO = @lt_ECHO@ | ||
390 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
391 | mandir = @mandir@ | ||
392 | mkdir_p = @mkdir_p@ | ||
393 | oldincludedir = @oldincludedir@ | ||
394 | pdfdir = @pdfdir@ | ||
395 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
396 | prefix = @prefix@ | ||
397 | program_transform_name = @program_transform_name@ | ||
398 | psdir = @psdir@ | ||
399 | pthread_cflags = @pthread_cflags@ | ||
400 | pthread_libs = @pthread_libs@ | ||
401 | release_info = @release_info@ | ||
402 | requirement_evas = @requirement_evas@ | ||
403 | sbindir = @sbindir@ | ||
404 | sharedstatedir = @sharedstatedir@ | ||
405 | srcdir = @srcdir@ | ||
406 | sysconfdir = @sysconfdir@ | ||
407 | target_alias = @target_alias@ | ||
408 | top_build_prefix = @top_build_prefix@ | ||
409 | top_builddir = @top_builddir@ | ||
410 | top_srcdir = @top_srcdir@ | ||
411 | version_info = @version_info@ | ||
412 | MAINTAINERCLEANFILES = Makefile.in | ||
413 | AM_CPPFLAGS = \ | ||
414 | -I. \ | ||
415 | -I$(top_srcdir)/src/lib \ | ||
416 | -I$(top_srcdir)/src/lib/include \ | ||
417 | @FREETYPE_CFLAGS@ \ | ||
418 | @PIXMAN_CFLAGS@ \ | ||
419 | @evas_image_loader_generic_cflags@ \ | ||
420 | @EINA_CFLAGS@ \ | ||
421 | @EVIL_CFLAGS@ | ||
422 | |||
423 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@pkgdir = $(libdir)/evas/modules/loaders/generic/$(MODULE_ARCH) | ||
424 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@pkg_LTLIBRARIES = module.la | ||
425 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@module_la_SOURCES = evas_image_load_generic.c | ||
426 | @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 | ||
427 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
428 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
429 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_TRUE@noinst_LTLIBRARIES = libevas_loader_generic.la | ||
430 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_TRUE@libevas_loader_generic_la_SOURCES = evas_image_load_generic.c | ||
431 | @BUILD_LOADER_GENERIC_TRUE@@EVAS_STATIC_BUILD_GENERIC_TRUE@libevas_loader_generic_la_LIBADD = @evas_image_loader_generic_libs@ @SHM_OPEN_LINK@ | ||
432 | all: all-am | ||
433 | |||
434 | .SUFFIXES: | ||
435 | .SUFFIXES: .c .lo .o .obj | ||
436 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
437 | @for dep in $?; do \ | ||
438 | case '$(am__configure_deps)' in \ | ||
439 | *$$dep*) \ | ||
440 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
441 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
442 | exit 1;; \ | ||
443 | esac; \ | ||
444 | done; \ | ||
445 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/generic/Makefile'; \ | ||
446 | $(am__cd) $(top_srcdir) && \ | ||
447 | $(AUTOMAKE) --gnu src/modules/loaders/generic/Makefile | ||
448 | .PRECIOUS: Makefile | ||
449 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
450 | @case '$?' in \ | ||
451 | *config.status*) \ | ||
452 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
453 | *) \ | ||
454 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
455 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
456 | esac; | ||
457 | |||
458 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
459 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
460 | |||
461 | $(top_srcdir)/configure: $(am__configure_deps) | ||
462 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
463 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
464 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
465 | $(am__aclocal_m4_deps): | ||
466 | |||
467 | clean-noinstLTLIBRARIES: | ||
468 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) | ||
469 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | ||
470 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
471 | test "$$dir" != "$$p" || dir=.; \ | ||
472 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
473 | rm -f "$${dir}/so_locations"; \ | ||
474 | done | ||
475 | install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) | ||
476 | @$(NORMAL_INSTALL) | ||
477 | test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)" | ||
478 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
479 | list2=; for p in $$list; do \ | ||
480 | if test -f $$p; then \ | ||
481 | list2="$$list2 $$p"; \ | ||
482 | else :; fi; \ | ||
483 | done; \ | ||
484 | test -z "$$list2" || { \ | ||
485 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ | ||
486 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ | ||
487 | } | ||
488 | |||
489 | uninstall-pkgLTLIBRARIES: | ||
490 | @$(NORMAL_UNINSTALL) | ||
491 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
492 | for p in $$list; do \ | ||
493 | $(am__strip_dir) \ | ||
494 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ | ||
495 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ | ||
496 | done | ||
497 | |||
498 | clean-pkgLTLIBRARIES: | ||
499 | -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) | ||
500 | @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \ | ||
501 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
502 | test "$$dir" != "$$p" || dir=.; \ | ||
503 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
504 | rm -f "$${dir}/so_locations"; \ | ||
505 | done | ||
506 | libevas_loader_generic.la: $(libevas_loader_generic_la_OBJECTS) $(libevas_loader_generic_la_DEPENDENCIES) | ||
507 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_generic_la_rpath) $(libevas_loader_generic_la_OBJECTS) $(libevas_loader_generic_la_LIBADD) $(LIBS) | ||
508 | module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES) | ||
509 | $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS) | ||
510 | |||
511 | mostlyclean-compile: | ||
512 | -rm -f *.$(OBJEXT) | ||
513 | |||
514 | distclean-compile: | ||
515 | -rm -f *.tab.c | ||
516 | |||
517 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_generic.Plo@am__quote@ | ||
518 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_generic.Plo@am__quote@ | ||
519 | |||
520 | .c.o: | ||
521 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
522 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
523 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
524 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
525 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
526 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
527 | |||
528 | .c.obj: | ||
529 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
530 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
531 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
532 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
533 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
534 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
535 | |||
536 | .c.lo: | ||
537 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
538 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
539 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
540 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
541 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
542 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
543 | |||
544 | module_la-evas_image_load_generic.lo: evas_image_load_generic.c | ||
545 | @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 | ||
546 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_generic.Tpo $(DEPDIR)/module_la-evas_image_load_generic.Plo | ||
547 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
548 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_generic.c' object='module_la-evas_image_load_generic.lo' libtool=yes @AMDEPBACKSLASH@ | ||
549 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
550 | @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 | ||
551 | |||
552 | mostlyclean-libtool: | ||
553 | -rm -f *.lo | ||
554 | |||
555 | clean-libtool: | ||
556 | -rm -rf .libs _libs | ||
557 | |||
558 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
559 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
560 | unique=`for i in $$list; do \ | ||
561 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
562 | done | \ | ||
563 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
564 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
565 | mkid -fID $$unique | ||
566 | tags: TAGS | ||
567 | |||
568 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
569 | $(TAGS_FILES) $(LISP) | ||
570 | set x; \ | ||
571 | here=`pwd`; \ | ||
572 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
573 | unique=`for i in $$list; do \ | ||
574 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
575 | done | \ | ||
576 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
577 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
578 | shift; \ | ||
579 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
580 | test -n "$$unique" || unique=$$empty_fix; \ | ||
581 | if test $$# -gt 0; then \ | ||
582 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
583 | "$$@" $$unique; \ | ||
584 | else \ | ||
585 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
586 | $$unique; \ | ||
587 | fi; \ | ||
588 | fi | ||
589 | ctags: CTAGS | ||
590 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
591 | $(TAGS_FILES) $(LISP) | ||
592 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
593 | unique=`for i in $$list; do \ | ||
594 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
595 | done | \ | ||
596 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
597 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
598 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
599 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
600 | $$unique | ||
601 | |||
602 | GTAGS: | ||
603 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
604 | && $(am__cd) $(top_srcdir) \ | ||
605 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
606 | |||
607 | distclean-tags: | ||
608 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
609 | |||
610 | distdir: $(DISTFILES) | ||
611 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
612 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
613 | list='$(DISTFILES)'; \ | ||
614 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
615 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
616 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
617 | case $$dist_files in \ | ||
618 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
619 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
620 | sort -u` ;; \ | ||
621 | esac; \ | ||
622 | for file in $$dist_files; do \ | ||
623 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
624 | if test -d $$d/$$file; then \ | ||
625 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
626 | if test -d "$(distdir)/$$file"; then \ | ||
627 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
628 | fi; \ | ||
629 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
630 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
631 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
632 | fi; \ | ||
633 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
634 | else \ | ||
635 | test -f "$(distdir)/$$file" \ | ||
636 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
637 | || exit 1; \ | ||
638 | fi; \ | ||
639 | done | ||
640 | check-am: all-am | ||
641 | check: check-am | ||
642 | all-am: Makefile $(LTLIBRARIES) | ||
643 | installdirs: | ||
644 | for dir in "$(DESTDIR)$(pkgdir)"; do \ | ||
645 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
646 | done | ||
647 | install: install-am | ||
648 | install-exec: install-exec-am | ||
649 | install-data: install-data-am | ||
650 | uninstall: uninstall-am | ||
651 | |||
652 | install-am: all-am | ||
653 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
654 | |||
655 | installcheck: installcheck-am | ||
656 | install-strip: | ||
657 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
658 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
659 | `test -z '$(STRIP)' || \ | ||
660 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
661 | mostlyclean-generic: | ||
662 | |||
663 | clean-generic: | ||
664 | |||
665 | distclean-generic: | ||
666 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
667 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
668 | |||
669 | maintainer-clean-generic: | ||
670 | @echo "This command is intended for maintainers to use" | ||
671 | @echo "it deletes files that may require special tools to rebuild." | ||
672 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
673 | clean: clean-am | ||
674 | |||
675 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ | ||
676 | clean-pkgLTLIBRARIES mostlyclean-am | ||
677 | |||
678 | distclean: distclean-am | ||
679 | -rm -rf ./$(DEPDIR) | ||
680 | -rm -f Makefile | ||
681 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
682 | distclean-tags | ||
683 | |||
684 | dvi: dvi-am | ||
685 | |||
686 | dvi-am: | ||
687 | |||
688 | html: html-am | ||
689 | |||
690 | html-am: | ||
691 | |||
692 | info: info-am | ||
693 | |||
694 | info-am: | ||
695 | |||
696 | install-data-am: install-pkgLTLIBRARIES | ||
697 | |||
698 | install-dvi: install-dvi-am | ||
699 | |||
700 | install-dvi-am: | ||
701 | |||
702 | install-exec-am: | ||
703 | |||
704 | install-html: install-html-am | ||
705 | |||
706 | install-html-am: | ||
707 | |||
708 | install-info: install-info-am | ||
709 | |||
710 | install-info-am: | ||
711 | |||
712 | install-man: | ||
713 | |||
714 | install-pdf: install-pdf-am | ||
715 | |||
716 | install-pdf-am: | ||
717 | |||
718 | install-ps: install-ps-am | ||
719 | |||
720 | install-ps-am: | ||
721 | |||
722 | installcheck-am: | ||
723 | |||
724 | maintainer-clean: maintainer-clean-am | ||
725 | -rm -rf ./$(DEPDIR) | ||
726 | -rm -f Makefile | ||
727 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
728 | |||
729 | mostlyclean: mostlyclean-am | ||
730 | |||
731 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
732 | mostlyclean-libtool | ||
733 | |||
734 | pdf: pdf-am | ||
735 | |||
736 | pdf-am: | ||
737 | |||
738 | ps: ps-am | ||
739 | |||
740 | ps-am: | ||
741 | |||
742 | uninstall-am: uninstall-pkgLTLIBRARIES | ||
743 | |||
744 | .MAKE: install-am install-strip | ||
745 | |||
746 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
747 | clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \ | ||
748 | ctags distclean distclean-compile distclean-generic \ | ||
749 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
750 | html-am info info-am install install-am install-data \ | ||
751 | install-data-am install-dvi install-dvi-am install-exec \ | ||
752 | install-exec-am install-html install-html-am install-info \ | ||
753 | install-info-am install-man install-pdf install-pdf-am \ | ||
754 | install-pkgLTLIBRARIES install-ps install-ps-am install-strip \ | ||
755 | installcheck installcheck-am installdirs maintainer-clean \ | ||
756 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
757 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
758 | tags uninstall uninstall-am uninstall-pkgLTLIBRARIES | ||
759 | |||
760 | |||
761 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
762 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
763 | .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 deleted file mode 100644 index 2bbfd3e..0000000 --- a/libraries/evas/src/modules/loaders/generic/evas_image_load_generic.c +++ /dev/null | |||
@@ -1,434 +0,0 @@ | |||
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 | EINA_FALSE | ||
29 | }; | ||
30 | |||
31 | static Eina_Bool | ||
32 | illegal_char(const char *str) | ||
33 | { | ||
34 | const char *p; | ||
35 | |||
36 | for (p = str; *p; p++) | ||
37 | { | ||
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 == '~') return EINA_TRUE; | ||
53 | if (*p == 0x7f) return EINA_TRUE; | ||
54 | } | ||
55 | return EINA_FALSE; | ||
56 | } | ||
57 | |||
58 | static void | ||
59 | escape_copy(const char *src, char *dst) | ||
60 | { | ||
61 | const char *s; | ||
62 | char *d; | ||
63 | |||
64 | for (s = src, d = dst; *s; s++, d++) | ||
65 | { | ||
66 | // FIXME: escape tab, newline linefeed and friends | ||
67 | if ((*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 | (*s == '~')) | ||
86 | { | ||
87 | *d = '\\'; | ||
88 | d++; | ||
89 | } | ||
90 | *d = *s; | ||
91 | } | ||
92 | *d = 0; | ||
93 | } | ||
94 | |||
95 | static void | ||
96 | dotcat(char *dest, const char *src) | ||
97 | { | ||
98 | int len = strlen(dest); | ||
99 | const char *s; | ||
100 | char *d; | ||
101 | |||
102 | for (d = dest + len, s = src; *s; d++, s++) *d = tolower(*s); | ||
103 | *d = 0; | ||
104 | } | ||
105 | |||
106 | static Eina_Bool | ||
107 | _load(Image_Entry *ie, const char *file, const char *key, int *error, Eina_Bool get_data) | ||
108 | { | ||
109 | Eina_Bool res = EINA_FALSE; | ||
110 | int w = 0, h = 0, alpha = 0; | ||
111 | const char *dot1 = NULL, *dot2 = NULL, *end, *p; | ||
112 | char *cmd = NULL, decoders[3][128], buf[4096]; | ||
113 | char *loader = "/evas/utils/evas_image_loader"; | ||
114 | char *img_loader = NULL; | ||
115 | const char *libdir; | ||
116 | // eg $libdir/evas/generic_loaders | ||
117 | int cmd_len, len, decoders_num = 0, try_count = 0; | ||
118 | int read_data = 0; | ||
119 | char *tmpfname = NULL, *shmfname = NULL; | ||
120 | DATA32 *body; | ||
121 | FILE *f = NULL; | ||
122 | |||
123 | libdir = _evas_module_libdir_get(); | ||
124 | cmd_len = strlen(libdir); | ||
125 | cmd_len += strlen(loader); | ||
126 | img_loader = alloca(cmd_len + 1); | ||
127 | strcpy(img_loader, libdir); | ||
128 | strcat(img_loader, loader); | ||
129 | |||
130 | // params excluding file, key and loadopts | ||
131 | cmd_len += 1024; | ||
132 | cmd_len += strlen(file) * 2; | ||
133 | if (key) cmd_len += strlen(key) * 2; | ||
134 | cmd = alloca(cmd_len + 1); | ||
135 | |||
136 | len = strlen(file); | ||
137 | if (len < 1) | ||
138 | { | ||
139 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
140 | return EINA_FALSE; | ||
141 | } | ||
142 | end = file + len; | ||
143 | for (p = end - 1; p >= file; p--) | ||
144 | { | ||
145 | if ((!dot1) && (*p == '.')) dot1 = p; | ||
146 | else if ((!dot2) && (*p == '.')) dot2 = p; | ||
147 | else if ((dot1) && (dot2)) break; | ||
148 | } | ||
149 | if (dot2) | ||
150 | { | ||
151 | // double extn not too long | ||
152 | if (((end - dot2) <= 10) && (!illegal_char(dot2))) | ||
153 | { | ||
154 | strcpy(&(decoders[decoders_num][0]), img_loader); | ||
155 | dotcat(&(decoders[decoders_num][0]), dot2); | ||
156 | decoders_num++; | ||
157 | } | ||
158 | // single extn not too long | ||
159 | if (((end - dot1) <= 5) && (!illegal_char(dot1))) | ||
160 | { | ||
161 | strcpy(&(decoders[decoders_num][0]), img_loader); | ||
162 | dotcat(&(decoders[decoders_num][0]), dot1); | ||
163 | decoders_num++; | ||
164 | } | ||
165 | strcpy(decoders[decoders_num], img_loader); | ||
166 | decoders_num++; | ||
167 | } | ||
168 | else if (dot1) | ||
169 | { | ||
170 | // single extn not too long | ||
171 | if (((end - dot1) <= 5) && (!illegal_char(dot1))) | ||
172 | { | ||
173 | strcpy(&(decoders[decoders_num][0]), img_loader); | ||
174 | dotcat(&(decoders[decoders_num][0]), dot1); | ||
175 | decoders_num++; | ||
176 | } | ||
177 | strcpy(decoders[decoders_num], img_loader); | ||
178 | decoders_num++; | ||
179 | } | ||
180 | else | ||
181 | { | ||
182 | strcpy(decoders[decoders_num], img_loader); | ||
183 | decoders_num++; | ||
184 | } | ||
185 | |||
186 | for (try_count = 0; try_count < decoders_num; try_count++) | ||
187 | { | ||
188 | // FIXME: strcats could be more efficient, not that it matters much | ||
189 | // here as we are about to build a cmd to exec via a shell that | ||
190 | // will interpret shell stuff and path hunt that will then exec the | ||
191 | // program itself that will dynamically link that will again | ||
192 | // parse the arguments and finally do something... | ||
193 | if (access(decoders[try_count], X_OK)) continue; | ||
194 | |||
195 | strcpy(cmd, decoders[try_count]); | ||
196 | strcat(cmd, " "); | ||
197 | // filename first arg | ||
198 | len = strlen(cmd); | ||
199 | escape_copy(file, cmd + len); | ||
200 | if (!get_data) | ||
201 | { | ||
202 | strcat(cmd, " -head "); | ||
203 | } | ||
204 | if (key) | ||
205 | { | ||
206 | strcat(cmd, " -key "); | ||
207 | len = strlen(cmd); | ||
208 | escape_copy(key, cmd + len); | ||
209 | } | ||
210 | if (ie->load_opts.scale_down_by > 1) | ||
211 | { | ||
212 | strcat(cmd, " -opt-scale-down-by "); | ||
213 | snprintf(buf, sizeof(buf), "%i", ie->load_opts.scale_down_by); | ||
214 | strcat(cmd, buf); | ||
215 | } | ||
216 | if (ie->load_opts.dpi > 0.0) | ||
217 | { | ||
218 | strcat(cmd, " -opt-dpi "); | ||
219 | snprintf(buf, sizeof(buf), "%i", (int)(ie->load_opts.dpi * 1000.0)); | ||
220 | strcat(cmd, buf); | ||
221 | } | ||
222 | if ((ie->load_opts.w > 0) && | ||
223 | (ie->load_opts.h > 0)) | ||
224 | { | ||
225 | strcat(cmd, " -opt-size "); | ||
226 | snprintf(buf, sizeof(buf), "%i %i", ie->load_opts.w, ie->load_opts.h); | ||
227 | strcat(cmd, buf); | ||
228 | } | ||
229 | f = popen(cmd, "r"); | ||
230 | if (f) break; | ||
231 | } | ||
232 | if (!f) | ||
233 | { | ||
234 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
235 | return EINA_FALSE; | ||
236 | } | ||
237 | while (fgets(buf, sizeof(buf), f)) | ||
238 | { | ||
239 | len = strlen(buf); | ||
240 | if (len > 0) | ||
241 | { | ||
242 | if (buf[len - 1] == '\n') buf[len - 1] = 0; | ||
243 | if (!strncmp(buf, "size ", 5)) | ||
244 | { | ||
245 | int tw = 0, th = 0; | ||
246 | |||
247 | len = sscanf(buf, "%*s %i %i", &tw, &th); | ||
248 | if (len == 2) | ||
249 | { | ||
250 | if ((tw > 0) && (th > 0)) | ||
251 | { | ||
252 | w = tw; | ||
253 | h = th; | ||
254 | } | ||
255 | } | ||
256 | } | ||
257 | else if (!strncmp(buf, "alpha ", 6)) | ||
258 | { | ||
259 | int ta; | ||
260 | |||
261 | len = sscanf(buf, "%*s %i", &ta); | ||
262 | if (len == 1) | ||
263 | { | ||
264 | alpha = ta; | ||
265 | } | ||
266 | } | ||
267 | else if (!strncmp(buf, "tmpfile ", 8)) | ||
268 | { | ||
269 | tmpfname = buf + 8; | ||
270 | goto getdata; | ||
271 | } | ||
272 | #ifdef HAVE_SHM_OPEN | ||
273 | else if (!strncmp(buf, "shmfile ", 8)) | ||
274 | { | ||
275 | shmfname = buf + 8; | ||
276 | goto getdata; | ||
277 | } | ||
278 | #endif | ||
279 | else if (!strncmp(buf, "data", 4)) | ||
280 | { | ||
281 | read_data = 1; | ||
282 | goto getdata; | ||
283 | } | ||
284 | else if (!strncmp(buf, "done", 4)) | ||
285 | { | ||
286 | read_data = 2; | ||
287 | goto getdata; | ||
288 | } | ||
289 | } | ||
290 | } | ||
291 | getdata: | ||
292 | if ((!read_data) && (!tmpfname) && (!shmfname)) | ||
293 | { | ||
294 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
295 | goto on_error; | ||
296 | } | ||
297 | if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) || | ||
298 | IMG_TOO_BIG(w, h)) | ||
299 | { | ||
300 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
301 | goto on_error; | ||
302 | } | ||
303 | body = evas_cache_image_pixels(ie); | ||
304 | if (body) | ||
305 | { | ||
306 | if ((w != (int)ie->w) || (h != (int)ie->h)) | ||
307 | { | ||
308 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
309 | goto on_error; | ||
310 | } | ||
311 | } | ||
312 | if (alpha) ie->flags.alpha = 1; | ||
313 | ie->w = w; | ||
314 | ie->h = h; | ||
315 | |||
316 | if (get_data) | ||
317 | { | ||
318 | if (!body) evas_cache_image_surface_alloc(ie, ie->w, ie->h); | ||
319 | body = evas_cache_image_pixels(ie); | ||
320 | if (!body) | ||
321 | { | ||
322 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
323 | goto on_error; | ||
324 | } | ||
325 | |||
326 | if ((tmpfname) || (shmfname)) | ||
327 | { | ||
328 | int fd = -1; | ||
329 | |||
330 | // open | ||
331 | if (tmpfname) | ||
332 | fd = open(tmpfname, O_RDONLY, S_IRUSR); | ||
333 | #ifdef HAVE_SHM_OPEN | ||
334 | else if (shmfname) | ||
335 | fd = shm_open(shmfname, O_RDONLY, S_IRUSR); | ||
336 | #endif | ||
337 | if (fd >= 0) | ||
338 | { | ||
339 | void *addr; | ||
340 | |||
341 | eina_mmap_safety_enabled_set(EINA_TRUE); | ||
342 | |||
343 | // mmap | ||
344 | addr = mmap(NULL, w * h * sizeof(DATA32), | ||
345 | PROT_READ, MAP_SHARED, fd, 0); | ||
346 | if (addr != MAP_FAILED) | ||
347 | { | ||
348 | memcpy(body, addr, w * h * sizeof(DATA32)); | ||
349 | munmap(addr, w * h * sizeof(DATA32)); | ||
350 | } | ||
351 | // close | ||
352 | if (tmpfname) | ||
353 | { | ||
354 | close(fd); | ||
355 | unlink(tmpfname); | ||
356 | } | ||
357 | #ifdef HAVE_SHM_OPEN | ||
358 | else if (shmfname) | ||
359 | { | ||
360 | close(fd); | ||
361 | shm_unlink(shmfname); | ||
362 | } | ||
363 | #endif | ||
364 | } | ||
365 | else | ||
366 | { | ||
367 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
368 | goto on_error; | ||
369 | } | ||
370 | } | ||
371 | else if (read_data) | ||
372 | { | ||
373 | if (fread(body, w * h * sizeof(DATA32), 1, f) != 1) | ||
374 | { | ||
375 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
376 | goto on_error; | ||
377 | } | ||
378 | } | ||
379 | } | ||
380 | |||
381 | res = EINA_TRUE; | ||
382 | *error = EVAS_LOAD_ERROR_NONE; | ||
383 | |||
384 | on_error: | ||
385 | if (f) pclose(f); | ||
386 | return res; | ||
387 | } | ||
388 | |||
389 | static Eina_Bool | ||
390 | evas_image_load_file_head_generic(Image_Entry *ie, const char *file, const char *key, int *error) | ||
391 | { | ||
392 | return _load(ie, file, key, error, EINA_FALSE); | ||
393 | } | ||
394 | |||
395 | static Eina_Bool | ||
396 | evas_image_load_file_data_generic(Image_Entry *ie, const char *file, const char *key, int *error) | ||
397 | { | ||
398 | DATA32 *body; | ||
399 | |||
400 | body = evas_cache_image_pixels(ie); | ||
401 | if (!body) return _load(ie, file, key, error, EINA_TRUE); | ||
402 | *error = EVAS_LOAD_ERROR_NONE; | ||
403 | return EINA_TRUE; | ||
404 | } | ||
405 | |||
406 | static int | ||
407 | module_open(Evas_Module *em) | ||
408 | { | ||
409 | if (!em) return 0; | ||
410 | em->functions = (void *)(&evas_image_load_generic_func); | ||
411 | return 1; | ||
412 | } | ||
413 | |||
414 | static void | ||
415 | module_close(Evas_Module *em __UNUSED__) | ||
416 | { | ||
417 | } | ||
418 | |||
419 | static Evas_Module_Api evas_modapi = | ||
420 | { | ||
421 | EVAS_MODULE_API_VERSION, | ||
422 | "generic", | ||
423 | "none", | ||
424 | { | ||
425 | module_open, | ||
426 | module_close | ||
427 | } | ||
428 | }; | ||
429 | |||
430 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, generic); | ||
431 | |||
432 | #ifndef EVAS_STATIC_BUILD_GENERIC | ||
433 | EVAS_EINA_MODULE_DEFINE(image_loader, generic); | ||
434 | #endif | ||
diff --git a/libraries/evas/src/modules/loaders/gif/Makefile.am b/libraries/evas/src/modules/loaders/gif/Makefile.am deleted file mode 100644 index 3ae57a0..0000000 --- a/libraries/evas/src/modules/loaders/gif/Makefile.am +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
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_gif_cflags@ \ | ||
11 | @EINA_CFLAGS@ | ||
12 | |||
13 | if BUILD_LOADER_GIF | ||
14 | if !EVAS_STATIC_BUILD_GIF | ||
15 | |||
16 | pkgdir = $(libdir)/evas/modules/loaders/gif/$(MODULE_ARCH) | ||
17 | pkg_LTLIBRARIES = module.la | ||
18 | |||
19 | module_la_SOURCES = evas_image_load_gif.c | ||
20 | |||
21 | module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_gif_libs@ $(top_builddir)/src/lib/libevas.la | ||
22 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
23 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
24 | |||
25 | else | ||
26 | |||
27 | noinst_LTLIBRARIES = libevas_loader_gif.la | ||
28 | |||
29 | libevas_loader_gif_la_SOURCES = evas_image_load_gif.c | ||
30 | libevas_loader_gif_la_LIBADD = @evas_image_loader_gif_libs@ | ||
31 | |||
32 | endif | ||
33 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/gif/Makefile.in b/libraries/evas/src/modules/loaders/gif/Makefile.in deleted file mode 100644 index a7fae36..0000000 --- a/libraries/evas/src/modules/loaders/gif/Makefile.in +++ /dev/null | |||
@@ -1,761 +0,0 @@ | |||
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/gif | ||
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_gif_la_DEPENDENCIES = | ||
83 | am__libevas_loader_gif_la_SOURCES_DIST = evas_image_load_gif.c | ||
84 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_TRUE@am_libevas_loader_gif_la_OBJECTS = evas_image_load_gif.lo | ||
85 | libevas_loader_gif_la_OBJECTS = $(am_libevas_loader_gif_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_TRUE@am_libevas_loader_gif_la_rpath = | ||
90 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
91 | am__module_la_SOURCES_DIST = evas_image_load_gif.c | ||
92 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_gif.lo | ||
93 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
94 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
95 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
96 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@am_module_la_rpath = \ | ||
98 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@ -rpath \ | ||
99 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@ $(pkgdir) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_gif_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_gif_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
185 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
186 | FGREP = @FGREP@ | ||
187 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
188 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
189 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
190 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
191 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
192 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
193 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
194 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
195 | GREP = @GREP@ | ||
196 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
197 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
198 | INSTALL = @INSTALL@ | ||
199 | INSTALL_DATA = @INSTALL_DATA@ | ||
200 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
201 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
202 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
203 | LD = @LD@ | ||
204 | LDFLAGS = @LDFLAGS@ | ||
205 | LIBOBJS = @LIBOBJS@ | ||
206 | LIBS = @LIBS@ | ||
207 | LIBTOOL = @LIBTOOL@ | ||
208 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
209 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
210 | LIPO = @LIPO@ | ||
211 | LN_S = @LN_S@ | ||
212 | LTLIBOBJS = @LTLIBOBJS@ | ||
213 | MAKEINFO = @MAKEINFO@ | ||
214 | MKDIR_P = @MKDIR_P@ | ||
215 | MODULE_ARCH = @MODULE_ARCH@ | ||
216 | NM = @NM@ | ||
217 | NMEDIT = @NMEDIT@ | ||
218 | OBJC = @OBJC@ | ||
219 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
220 | OBJCFLAGS = @OBJCFLAGS@ | ||
221 | OBJDUMP = @OBJDUMP@ | ||
222 | OBJEXT = @OBJEXT@ | ||
223 | OTOOL = @OTOOL@ | ||
224 | OTOOL64 = @OTOOL64@ | ||
225 | PACKAGE = @PACKAGE@ | ||
226 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
227 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
228 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
229 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
230 | PACKAGE_URL = @PACKAGE_URL@ | ||
231 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
232 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
233 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
234 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
235 | PKG_CONFIG = @PKG_CONFIG@ | ||
236 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
237 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
238 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
239 | PNG_LIBS = @PNG_LIBS@ | ||
240 | RANLIB = @RANLIB@ | ||
241 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
242 | SDL_LIBS = @SDL_LIBS@ | ||
243 | SED = @SED@ | ||
244 | SET_MAKE = @SET_MAKE@ | ||
245 | SHELL = @SHELL@ | ||
246 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
247 | STRIP = @STRIP@ | ||
248 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
249 | SVG_LIBS = @SVG_LIBS@ | ||
250 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
251 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
252 | VERSION = @VERSION@ | ||
253 | VMAJ = @VMAJ@ | ||
254 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
255 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
256 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
257 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
258 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
259 | XCB_LIBS = @XCB_LIBS@ | ||
260 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
261 | XEXT_LIBS = @XEXT_LIBS@ | ||
262 | XMKMF = @XMKMF@ | ||
263 | X_CFLAGS = @X_CFLAGS@ | ||
264 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
265 | X_LIBS = @X_LIBS@ | ||
266 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
267 | abs_builddir = @abs_builddir@ | ||
268 | abs_srcdir = @abs_srcdir@ | ||
269 | abs_top_builddir = @abs_top_builddir@ | ||
270 | abs_top_srcdir = @abs_top_srcdir@ | ||
271 | ac_ct_CC = @ac_ct_CC@ | ||
272 | ac_ct_CXX = @ac_ct_CXX@ | ||
273 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
274 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
275 | altivec_cflags = @altivec_cflags@ | ||
276 | am__include = @am__include@ | ||
277 | am__leading_dot = @am__leading_dot@ | ||
278 | am__quote = @am__quote@ | ||
279 | am__tar = @am__tar@ | ||
280 | am__untar = @am__untar@ | ||
281 | bindir = @bindir@ | ||
282 | build = @build@ | ||
283 | build_alias = @build_alias@ | ||
284 | build_cpu = @build_cpu@ | ||
285 | build_os = @build_os@ | ||
286 | build_vendor = @build_vendor@ | ||
287 | builddir = @builddir@ | ||
288 | datadir = @datadir@ | ||
289 | datarootdir = @datarootdir@ | ||
290 | dlopen_libs = @dlopen_libs@ | ||
291 | docdir = @docdir@ | ||
292 | dvidir = @dvidir@ | ||
293 | edje_cc = @edje_cc@ | ||
294 | efl_doxygen = @efl_doxygen@ | ||
295 | efl_have_doxygen = @efl_have_doxygen@ | ||
296 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
297 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
298 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
299 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
300 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
301 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
302 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
303 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
304 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
305 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
306 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
307 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
308 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
309 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
310 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
311 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
312 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
313 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
314 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
315 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
316 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
317 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
318 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
319 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
320 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
321 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
322 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
323 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
324 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
325 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
326 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
327 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
328 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
329 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
330 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
331 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
332 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
333 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
334 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
335 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
336 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
337 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
338 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
339 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
340 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
341 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
342 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
343 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
344 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
345 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
346 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
347 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
348 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
349 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
350 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
351 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
352 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
353 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
354 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
355 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
356 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
357 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
358 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
359 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
360 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
361 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
362 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
363 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
364 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
365 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
366 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
367 | exec_prefix = @exec_prefix@ | ||
368 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
369 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
370 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
371 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
372 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
373 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
374 | have_lcov = @have_lcov@ | ||
375 | host = @host@ | ||
376 | host_alias = @host_alias@ | ||
377 | host_cpu = @host_cpu@ | ||
378 | host_os = @host_os@ | ||
379 | host_vendor = @host_vendor@ | ||
380 | htmldir = @htmldir@ | ||
381 | includedir = @includedir@ | ||
382 | infodir = @infodir@ | ||
383 | install_sh = @install_sh@ | ||
384 | libdir = @libdir@ | ||
385 | libexecdir = @libexecdir@ | ||
386 | localedir = @localedir@ | ||
387 | localstatedir = @localstatedir@ | ||
388 | lt_ECHO = @lt_ECHO@ | ||
389 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
390 | mandir = @mandir@ | ||
391 | mkdir_p = @mkdir_p@ | ||
392 | oldincludedir = @oldincludedir@ | ||
393 | pdfdir = @pdfdir@ | ||
394 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
395 | prefix = @prefix@ | ||
396 | program_transform_name = @program_transform_name@ | ||
397 | psdir = @psdir@ | ||
398 | pthread_cflags = @pthread_cflags@ | ||
399 | pthread_libs = @pthread_libs@ | ||
400 | release_info = @release_info@ | ||
401 | requirement_evas = @requirement_evas@ | ||
402 | sbindir = @sbindir@ | ||
403 | sharedstatedir = @sharedstatedir@ | ||
404 | srcdir = @srcdir@ | ||
405 | sysconfdir = @sysconfdir@ | ||
406 | target_alias = @target_alias@ | ||
407 | top_build_prefix = @top_build_prefix@ | ||
408 | top_builddir = @top_builddir@ | ||
409 | top_srcdir = @top_srcdir@ | ||
410 | version_info = @version_info@ | ||
411 | MAINTAINERCLEANFILES = Makefile.in | ||
412 | AM_CPPFLAGS = \ | ||
413 | -I. \ | ||
414 | -I$(top_srcdir)/src/lib \ | ||
415 | -I$(top_srcdir)/src/lib/include \ | ||
416 | @FREETYPE_CFLAGS@ \ | ||
417 | @PIXMAN_CFLAGS@ \ | ||
418 | @evas_image_loader_gif_cflags@ \ | ||
419 | @EINA_CFLAGS@ | ||
420 | |||
421 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@pkgdir = $(libdir)/evas/modules/loaders/gif/$(MODULE_ARCH) | ||
422 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@pkg_LTLIBRARIES = module.la | ||
423 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@module_la_SOURCES = evas_image_load_gif.c | ||
424 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_gif_libs@ $(top_builddir)/src/lib/libevas.la | ||
425 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
426 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
427 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_TRUE@noinst_LTLIBRARIES = libevas_loader_gif.la | ||
428 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_TRUE@libevas_loader_gif_la_SOURCES = evas_image_load_gif.c | ||
429 | @BUILD_LOADER_GIF_TRUE@@EVAS_STATIC_BUILD_GIF_TRUE@libevas_loader_gif_la_LIBADD = @evas_image_loader_gif_libs@ | ||
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/gif/Makefile'; \ | ||
444 | $(am__cd) $(top_srcdir) && \ | ||
445 | $(AUTOMAKE) --gnu src/modules/loaders/gif/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_gif.la: $(libevas_loader_gif_la_OBJECTS) $(libevas_loader_gif_la_DEPENDENCIES) | ||
505 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_gif_la_rpath) $(libevas_loader_gif_la_OBJECTS) $(libevas_loader_gif_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_gif.Plo@am__quote@ | ||
516 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_gif.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_gif.lo: evas_image_load_gif.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_gif.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_gif.Tpo -c -o module_la-evas_image_load_gif.lo `test -f 'evas_image_load_gif.c' || echo '$(srcdir)/'`evas_image_load_gif.c | ||
544 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_gif.Tpo $(DEPDIR)/module_la-evas_image_load_gif.Plo | ||
545 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
546 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_gif.c' object='module_la-evas_image_load_gif.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_gif.lo `test -f 'evas_image_load_gif.c' || echo '$(srcdir)/'`evas_image_load_gif.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/gif/evas_image_load_gif.c b/libraries/evas/src/modules/loaders/gif/evas_image_load_gif.c deleted file mode 100644 index dbb3584..0000000 --- a/libraries/evas/src/modules/loaders/gif/evas_image_load_gif.c +++ /dev/null | |||
@@ -1,1038 +0,0 @@ | |||
1 | #include "evas_common.h" | ||
2 | #include "evas_private.h" | ||
3 | |||
4 | #include <sys/types.h> | ||
5 | #include <sys/stat.h> | ||
6 | #include <fcntl.h> | ||
7 | #include <unistd.h> | ||
8 | |||
9 | #include <gif_lib.h> | ||
10 | |||
11 | typedef struct _Gif_Frame Gif_Frame; | ||
12 | |||
13 | typedef enum _Frame_Load_Type | ||
14 | { | ||
15 | LOAD_FRAME_NONE = 0, | ||
16 | LOAD_FRAME_INFO = 1, | ||
17 | LOAD_FRAME_DATA = 2, | ||
18 | LOAD_FRAME_DATA_INFO = 3 | ||
19 | } Frame_Load_Type; | ||
20 | |||
21 | struct _Gif_Frame | ||
22 | { | ||
23 | struct { | ||
24 | /* Image descriptor */ | ||
25 | int x; | ||
26 | int y; | ||
27 | int w; | ||
28 | int h; | ||
29 | int interlace; | ||
30 | } image_des; | ||
31 | |||
32 | struct { | ||
33 | /* Graphic Control*/ | ||
34 | int disposal; | ||
35 | int transparent; | ||
36 | int delay; | ||
37 | int input; | ||
38 | } frame_info; | ||
39 | }; | ||
40 | |||
41 | static Eina_Bool evas_image_load_file_data_gif_internal(Image_Entry *ie, Image_Entry_Frame *frame, int *error); | ||
42 | |||
43 | static Eina_Bool evas_image_load_file_head_gif(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
44 | static Eina_Bool evas_image_load_file_data_gif(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
45 | static double evas_image_load_frame_duration_gif(Image_Entry *ie, const char *file, int start_frame, int frame_num) ; | ||
46 | static Eina_Bool evas_image_load_specific_frame(Image_Entry *ie, const char *file, int frame_index, int *error); | ||
47 | |||
48 | static Evas_Image_Load_Func evas_image_load_gif_func = | ||
49 | { | ||
50 | EINA_TRUE, | ||
51 | evas_image_load_file_head_gif, | ||
52 | evas_image_load_file_data_gif, | ||
53 | evas_image_load_frame_duration_gif, | ||
54 | EINA_FALSE | ||
55 | }; | ||
56 | #define byte2_to_int(a,b) (((b)<<8)|(a)) | ||
57 | |||
58 | #define FRAME_MAX 1024 | ||
59 | |||
60 | /* find specific frame in image entry */ | ||
61 | static Eina_Bool | ||
62 | _find_frame(Image_Entry *ie, int frame_index, Image_Entry_Frame **frame) | ||
63 | { | ||
64 | Eina_List *l; | ||
65 | Image_Entry_Frame *hit_frame = NULL; | ||
66 | |||
67 | if (!ie) return EINA_FALSE; | ||
68 | if (!ie->frames) return EINA_FALSE; | ||
69 | |||
70 | EINA_LIST_FOREACH(ie->frames, l, hit_frame) | ||
71 | { | ||
72 | if (hit_frame->index == frame_index) | ||
73 | { | ||
74 | *frame = hit_frame; | ||
75 | return EINA_TRUE; | ||
76 | } | ||
77 | } | ||
78 | return EINA_FALSE; | ||
79 | } | ||
80 | |||
81 | static Eina_Bool | ||
82 | _find_close_frame(Image_Entry *ie, int frame_index, Image_Entry_Frame **frame) | ||
83 | { | ||
84 | int i; | ||
85 | Eina_Bool hit = EINA_FALSE; | ||
86 | i = frame_index -1; | ||
87 | |||
88 | if (!ie) return EINA_FALSE; | ||
89 | if (!ie->frames) return EINA_FALSE; | ||
90 | |||
91 | for (; i > 0; i--) | ||
92 | { | ||
93 | hit = _find_frame(ie, i, frame); | ||
94 | if (hit) | ||
95 | return EINA_TRUE; | ||
96 | } | ||
97 | return EINA_FALSE; | ||
98 | } | ||
99 | |||
100 | static Eina_Bool | ||
101 | _evas_image_skip_frame(GifFileType *gif, int frame) | ||
102 | { | ||
103 | int remain_frame = 0; | ||
104 | GifRecordType rec; | ||
105 | |||
106 | if (!gif) return EINA_FALSE; | ||
107 | if (frame == 0) return EINA_TRUE; /* no need to skip */ | ||
108 | if (frame < 0 || frame > FRAME_MAX) return EINA_FALSE; | ||
109 | |||
110 | remain_frame = frame; | ||
111 | |||
112 | do | ||
113 | { | ||
114 | if (DGifGetRecordType(gif, &rec) == GIF_ERROR) return EINA_FALSE; | ||
115 | |||
116 | if (rec == EXTENSION_RECORD_TYPE) | ||
117 | { | ||
118 | int ext_code; | ||
119 | GifByteType *ext; | ||
120 | |||
121 | ext = NULL; | ||
122 | DGifGetExtension(gif, &ext_code, &ext); | ||
123 | while (ext) | ||
124 | { /*skip extention */ | ||
125 | ext = NULL; | ||
126 | DGifGetExtensionNext(gif, &ext); | ||
127 | } | ||
128 | } | ||
129 | |||
130 | if (rec == IMAGE_DESC_RECORD_TYPE) | ||
131 | { | ||
132 | int img_code; | ||
133 | GifByteType *img; | ||
134 | |||
135 | if (DGifGetImageDesc(gif) == GIF_ERROR) return EINA_FALSE; | ||
136 | |||
137 | remain_frame --; | ||
138 | /* we have to count frame, so use DGifGetCode and skip decoding */ | ||
139 | if (DGifGetCode(gif, &img_code, &img) == GIF_ERROR) return EINA_FALSE; | ||
140 | |||
141 | while (img) | ||
142 | { | ||
143 | img = NULL; | ||
144 | DGifGetCodeNext(gif, &img); | ||
145 | } | ||
146 | if (remain_frame < 1) return EINA_TRUE; | ||
147 | } | ||
148 | if (rec == TERMINATE_RECORD_TYPE) return EINA_FALSE; /* end of file */ | ||
149 | |||
150 | } while ((rec != TERMINATE_RECORD_TYPE) && (remain_frame > 0)); | ||
151 | return EINA_FALSE; | ||
152 | } | ||
153 | |||
154 | static Eina_Bool | ||
155 | _evas_image_load_frame_graphic_info(Image_Entry_Frame *frame, GifByteType *ext) | ||
156 | { | ||
157 | Gif_Frame *gif_frame = NULL; | ||
158 | if ((!frame) || (!ext)) return EINA_FALSE; | ||
159 | |||
160 | gif_frame = (Gif_Frame *) frame->info; | ||
161 | |||
162 | /* transparent */ | ||
163 | if ((ext[1] & 0x1) != 0) | ||
164 | gif_frame->frame_info.transparent = ext[4]; | ||
165 | else | ||
166 | gif_frame->frame_info.transparent = -1; | ||
167 | |||
168 | gif_frame->frame_info.input = (ext[1] >>1) & 0x1; | ||
169 | gif_frame->frame_info.disposal = (ext[1] >>2) & 0x7; | ||
170 | gif_frame->frame_info.delay = byte2_to_int(ext[2], ext[3]); | ||
171 | return EINA_TRUE; | ||
172 | } | ||
173 | |||
174 | static Eina_Bool | ||
175 | _evas_image_load_frame_image_des_info(GifFileType *gif, Image_Entry_Frame *frame) | ||
176 | { | ||
177 | Gif_Frame *gif_frame = NULL; | ||
178 | if ((!gif) || (!frame)) return EINA_FALSE; | ||
179 | |||
180 | gif_frame = (Gif_Frame *) frame->info; | ||
181 | gif_frame->image_des.x = gif->Image.Left; | ||
182 | gif_frame->image_des.y = gif->Image.Top; | ||
183 | gif_frame->image_des.w = gif->Image.Width; | ||
184 | gif_frame->image_des.h = gif->Image.Height; | ||
185 | gif_frame->image_des.interlace = gif->Image.Interlace; | ||
186 | return EINA_TRUE; | ||
187 | } | ||
188 | |||
189 | static Eina_Bool | ||
190 | _evas_image_load_frame_image_data(Image_Entry *ie, GifFileType *gif, Image_Entry_Frame *frame, int *error) | ||
191 | { | ||
192 | int w; | ||
193 | int h; | ||
194 | int x; | ||
195 | int y; | ||
196 | int i,j; | ||
197 | int bg; | ||
198 | int r; | ||
199 | int g; | ||
200 | int b; | ||
201 | int alpha; | ||
202 | double per; | ||
203 | double per_inc; | ||
204 | ColorMapObject *cmap; | ||
205 | GifRowType *rows; | ||
206 | int intoffset[] = { 0, 4, 2, 1 }; | ||
207 | int intjump[] = { 8, 8, 4, 2 }; | ||
208 | size_t siz; | ||
209 | int cache_w; | ||
210 | int cache_h; | ||
211 | int cur_h; | ||
212 | int cur_w; | ||
213 | int disposal = 0; | ||
214 | int bg_val = 0; | ||
215 | DATA32 *ptr; | ||
216 | Gif_Frame *gif_frame = NULL; | ||
217 | |||
218 | if ((!gif) || (!frame)) return EINA_FALSE; | ||
219 | |||
220 | gif_frame = (Gif_Frame *) frame->info; | ||
221 | w = gif->Image.Width; | ||
222 | h = gif->Image.Height; | ||
223 | x = gif->Image.Left; | ||
224 | y = gif->Image.Top; | ||
225 | cache_w = ie->w; | ||
226 | cache_h = ie->h; | ||
227 | |||
228 | rows = malloc(h * sizeof(GifRowType *)); | ||
229 | if (!rows) | ||
230 | { | ||
231 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
232 | return EINA_FALSE; | ||
233 | } | ||
234 | for (i = 0; i < h; i++) | ||
235 | { | ||
236 | rows[i] = NULL; | ||
237 | } | ||
238 | for (i = 0; i < h; i++) | ||
239 | { | ||
240 | rows[i] = malloc(w * sizeof(GifPixelType)); | ||
241 | if (!rows[i]) | ||
242 | { | ||
243 | for (i = 0; i < h; i++) | ||
244 | { | ||
245 | if (rows[i]) | ||
246 | { | ||
247 | free(rows[i]); | ||
248 | } | ||
249 | } | ||
250 | free(rows); | ||
251 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
252 | return EINA_FALSE; | ||
253 | } | ||
254 | } | ||
255 | if (gif->Image.Interlace) | ||
256 | { | ||
257 | for (i = 0; i < 4; i++) | ||
258 | { | ||
259 | for (j = intoffset[i]; j < h; j += intjump[i]) | ||
260 | { | ||
261 | DGifGetLine(gif, rows[j], w); | ||
262 | } | ||
263 | } | ||
264 | } | ||
265 | else | ||
266 | { | ||
267 | for (i = 0; i < h; i++) | ||
268 | { | ||
269 | if (DGifGetLine(gif, rows[i], w) != GIF_OK) | ||
270 | { | ||
271 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
272 | goto error; | ||
273 | } | ||
274 | } | ||
275 | } | ||
276 | alpha = gif_frame->frame_info.transparent; | ||
277 | siz = cache_w *cache_h * sizeof(DATA32); | ||
278 | frame->data = malloc(siz); | ||
279 | if (!frame->data) | ||
280 | { | ||
281 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
282 | goto error; | ||
283 | } | ||
284 | ptr = frame->data; | ||
285 | bg = gif->SBackGroundColor; | ||
286 | cmap = (gif->Image.ColorMap ? gif->Image.ColorMap : gif->SColorMap); | ||
287 | |||
288 | if (!cmap) | ||
289 | { | ||
290 | DGifCloseFile(gif); | ||
291 | for (i = 0; i < h; i++) | ||
292 | { | ||
293 | free(rows[i]); | ||
294 | } | ||
295 | free(rows); | ||
296 | if (frame->data) free(frame->data); | ||
297 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
298 | return EINA_FALSE; | ||
299 | } | ||
300 | |||
301 | /* get the background value */ | ||
302 | r = cmap->Colors[bg].Red; | ||
303 | g = cmap->Colors[bg].Green; | ||
304 | b = cmap->Colors[bg].Blue; | ||
305 | bg_val = ARGB_JOIN(0xff, r, g, b); | ||
306 | |||
307 | per_inc = 100.0 / (((double)w) * h); | ||
308 | cur_h = h; | ||
309 | cur_w = w; | ||
310 | if (cur_h > cache_h) cur_h = cache_h; | ||
311 | if (cur_w > cache_w) cur_w = cache_w; | ||
312 | |||
313 | if (frame->index > 1) | ||
314 | { | ||
315 | /* get previous frame only frame index is bigger than 1 */ | ||
316 | DATA32 *ptr_src; | ||
317 | Image_Entry_Frame *new_frame = NULL; | ||
318 | int cur_frame = frame->index; | ||
319 | int start_frame = 1; | ||
320 | int j = 0; | ||
321 | |||
322 | if (_find_close_frame(ie, cur_frame, &new_frame)) | ||
323 | start_frame = new_frame->index + 1; | ||
324 | |||
325 | if ((start_frame < 1) || (start_frame > cur_frame)) | ||
326 | { | ||
327 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
328 | goto error; | ||
329 | } | ||
330 | /* load previous frame of cur_frame */ | ||
331 | for (j = start_frame; j < cur_frame ; j++) | ||
332 | { | ||
333 | if (!evas_image_load_specific_frame(ie, ie->file, j, error)) | ||
334 | { | ||
335 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
336 | goto error; | ||
337 | } | ||
338 | } | ||
339 | if (!_find_frame(ie, cur_frame - 1, &new_frame)) | ||
340 | { | ||
341 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
342 | goto error; | ||
343 | } | ||
344 | else | ||
345 | { | ||
346 | Gif_Frame *gif_frame = NULL; | ||
347 | ptr_src = new_frame->data; | ||
348 | if (new_frame->info) | ||
349 | { | ||
350 | gif_frame = (Gif_Frame *)(new_frame->info); | ||
351 | disposal = gif_frame->frame_info.disposal; | ||
352 | } | ||
353 | switch(disposal) /* we only support disposal flag 0,1,2 */ | ||
354 | { | ||
355 | case 1: /* Do not dispose. need previous frame*/ | ||
356 | memcpy(ptr, ptr_src, siz); | ||
357 | /* composite frames */ | ||
358 | ptr = ptr + cache_w * y; | ||
359 | |||
360 | for (i = 0; i < cur_h; i++) | ||
361 | { | ||
362 | ptr = ptr + x; | ||
363 | for (j = 0; j < cur_w; j++) | ||
364 | { | ||
365 | if (rows[i][j] == alpha) | ||
366 | { | ||
367 | ptr++ ; | ||
368 | } | ||
369 | else | ||
370 | { | ||
371 | r = cmap->Colors[rows[i][j]].Red; | ||
372 | g = cmap->Colors[rows[i][j]].Green; | ||
373 | b = cmap->Colors[rows[i][j]].Blue; | ||
374 | *ptr++ = ARGB_JOIN(0xff, r, g, b); | ||
375 | } | ||
376 | per += per_inc; | ||
377 | } | ||
378 | ptr = ptr + (cache_w - (x + cur_w)); | ||
379 | } | ||
380 | break; | ||
381 | case 2: /* Restore to background color */ | ||
382 | memcpy(ptr, ptr_src, siz); | ||
383 | /* composite frames */ | ||
384 | for (i = 0; i < cache_h; i++) | ||
385 | { | ||
386 | if ((i < y) || (i >= (y + cur_h))) | ||
387 | { | ||
388 | for (j = 0; j < cache_w; j++) | ||
389 | { | ||
390 | *ptr = bg_val; | ||
391 | ptr++; | ||
392 | } | ||
393 | } | ||
394 | else | ||
395 | { | ||
396 | int i1, j1; | ||
397 | i1 = i -y; | ||
398 | |||
399 | for (j = 0; j < cache_w; j++) | ||
400 | { | ||
401 | j1 = j - x; | ||
402 | if ((j < x) || (j >= (x + cur_w))) | ||
403 | { | ||
404 | *ptr = bg_val; | ||
405 | ptr++; | ||
406 | } | ||
407 | else | ||
408 | { | ||
409 | r = cmap->Colors[rows[i1][j1]].Red; | ||
410 | g = cmap->Colors[rows[i1][j1]].Green; | ||
411 | b = cmap->Colors[rows[i1][j1]].Blue; | ||
412 | *ptr++ = ARGB_JOIN(0xff, r, g, b); | ||
413 | } | ||
414 | } | ||
415 | } | ||
416 | } | ||
417 | break; | ||
418 | case 0: /* No disposal specified */ | ||
419 | default: | ||
420 | memset(ptr, 0, siz); | ||
421 | for (i = 0; i < cache_h; i++) | ||
422 | { | ||
423 | if ((i < y) || (i >= (y + cur_h))) | ||
424 | { | ||
425 | for (j = 0; j < cache_w; j++) | ||
426 | { | ||
427 | *ptr = bg_val; | ||
428 | ptr++; | ||
429 | } | ||
430 | } | ||
431 | else | ||
432 | { | ||
433 | int i1, j1; | ||
434 | i1 = i -y; | ||
435 | |||
436 | for (j = 0; j < cache_w; j++) | ||
437 | { | ||
438 | j1 = j - x; | ||
439 | if ((j < x) || (j >= (x + cur_w))) | ||
440 | { | ||
441 | *ptr = bg_val; | ||
442 | ptr++; | ||
443 | } | ||
444 | else | ||
445 | { | ||
446 | r = cmap->Colors[rows[i1][j1]].Red; | ||
447 | g = cmap->Colors[rows[i1][j1]].Green; | ||
448 | b = cmap->Colors[rows[i1][j1]].Blue; | ||
449 | *ptr++ = ARGB_JOIN(0xff, r, g, b); | ||
450 | } | ||
451 | } | ||
452 | } | ||
453 | } | ||
454 | break; | ||
455 | } | ||
456 | } | ||
457 | } | ||
458 | else /* first frame decoding */ | ||
459 | { | ||
460 | /* fill background color */ | ||
461 | for (i = 0; i < cache_h; i++) | ||
462 | { | ||
463 | if ((i < y) || (i >= (y + cur_h))) | ||
464 | { | ||
465 | for (j = 0; j < cache_w; j++) | ||
466 | { | ||
467 | *ptr = bg_val; | ||
468 | ptr++; | ||
469 | } | ||
470 | } | ||
471 | else | ||
472 | { | ||
473 | int i1, j1; | ||
474 | i1 = i -y; | ||
475 | |||
476 | for (j = 0; j < cache_w; j++) | ||
477 | { | ||
478 | j1 = j - x; | ||
479 | if ((j < x) || (j >= (x + cur_w))) | ||
480 | { | ||
481 | *ptr = bg_val; | ||
482 | ptr++; | ||
483 | } | ||
484 | else | ||
485 | { | ||
486 | if (rows[i1][j1] == alpha) | ||
487 | { | ||
488 | ptr++ ; | ||
489 | } | ||
490 | else | ||
491 | { | ||
492 | r = cmap->Colors[rows[i1][j1]].Red; | ||
493 | g = cmap->Colors[rows[i1][j1]].Green; | ||
494 | b = cmap->Colors[rows[i1][j1]].Blue; | ||
495 | *ptr++ = ARGB_JOIN(0xff, r, g, b); | ||
496 | } | ||
497 | } | ||
498 | } | ||
499 | } | ||
500 | } | ||
501 | } | ||
502 | |||
503 | for (i = 0; i < h; i++) | ||
504 | { | ||
505 | if (rows[i]) free(rows[i]); | ||
506 | } | ||
507 | if (rows) free(rows); | ||
508 | frame->loaded = EINA_TRUE; | ||
509 | return EINA_TRUE; | ||
510 | error: | ||
511 | for (i = 0; i < h; i++) | ||
512 | { | ||
513 | if (rows[i]) free(rows[i]); | ||
514 | } | ||
515 | if (rows) free(rows); | ||
516 | return EINA_FALSE; | ||
517 | } | ||
518 | |||
519 | static Eina_Bool | ||
520 | _evas_image_load_frame(Image_Entry *ie, GifFileType *gif, Image_Entry_Frame *frame, Frame_Load_Type type, int *error) | ||
521 | { | ||
522 | GifRecordType rec; | ||
523 | int gra_res = 0, img_res = 0; | ||
524 | Eina_Bool res = EINA_FALSE; | ||
525 | Gif_Frame *gif_frame = NULL; | ||
526 | |||
527 | if ((!gif) || (!frame)) return EINA_FALSE; | ||
528 | gif_frame = (Gif_Frame *) frame->info; | ||
529 | |||
530 | if (type > LOAD_FRAME_DATA_INFO) return EINA_FALSE; | ||
531 | |||
532 | do | ||
533 | { | ||
534 | if (DGifGetRecordType(gif, &rec) == GIF_ERROR) return EINA_FALSE; | ||
535 | if (rec == IMAGE_DESC_RECORD_TYPE) | ||
536 | { | ||
537 | img_res++; | ||
538 | break; | ||
539 | } | ||
540 | else if (rec == EXTENSION_RECORD_TYPE) | ||
541 | { | ||
542 | int ext_code; | ||
543 | GifByteType *ext; | ||
544 | |||
545 | ext = NULL; | ||
546 | DGifGetExtension(gif, &ext_code, &ext); | ||
547 | while (ext) | ||
548 | { | ||
549 | if (ext_code == 0xf9) /* Graphic Control Extension */ | ||
550 | { | ||
551 | gra_res++; | ||
552 | /* fill frame info */ | ||
553 | if ((type == LOAD_FRAME_INFO) || (type == LOAD_FRAME_DATA_INFO)) | ||
554 | _evas_image_load_frame_graphic_info(frame,ext); | ||
555 | } | ||
556 | ext = NULL; | ||
557 | DGifGetExtensionNext(gif, &ext); | ||
558 | } | ||
559 | } | ||
560 | } while ((rec != TERMINATE_RECORD_TYPE) && (img_res == 0)); | ||
561 | if (img_res != 1) return EINA_FALSE; | ||
562 | if (DGifGetImageDesc(gif) == GIF_ERROR) return EINA_FALSE; | ||
563 | if ((type == LOAD_FRAME_INFO) || (type == LOAD_FRAME_DATA_INFO)) | ||
564 | _evas_image_load_frame_image_des_info(gif, frame); | ||
565 | |||
566 | if ((type == LOAD_FRAME_DATA) || (type == LOAD_FRAME_DATA_INFO)) | ||
567 | { | ||
568 | res = _evas_image_load_frame_image_data(ie, gif,frame, error); | ||
569 | if (!res) return EINA_FALSE; | ||
570 | } | ||
571 | return EINA_TRUE; | ||
572 | } | ||
573 | |||
574 | |||
575 | /* set frame data to cache entry's data */ | ||
576 | static Eina_Bool | ||
577 | evas_image_load_file_data_gif_internal(Image_Entry *ie, Image_Entry_Frame *frame, int *error) | ||
578 | { | ||
579 | int w; | ||
580 | int h; | ||
581 | int dst_x; | ||
582 | int dst_y; | ||
583 | DATA32 *dst; | ||
584 | DATA32 *src; | ||
585 | int cache_w, cache_h; | ||
586 | size_t siz; | ||
587 | Gif_Frame *gif_frame = NULL; | ||
588 | |||
589 | gif_frame = (Gif_Frame *) frame->info; | ||
590 | cache_w = ie->w; | ||
591 | cache_h = ie->h; | ||
592 | w = gif_frame->image_des.w; | ||
593 | h = gif_frame->image_des.h; | ||
594 | dst_x = gif_frame->image_des.x; | ||
595 | dst_y = gif_frame->image_des.y; | ||
596 | |||
597 | src = frame->data; | ||
598 | |||
599 | if (!evas_cache_image_pixels(ie)) | ||
600 | { | ||
601 | evas_cache_image_surface_alloc(ie, cache_w, cache_h); | ||
602 | } | ||
603 | |||
604 | if (!evas_cache_image_pixels(ie)) | ||
605 | { | ||
606 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
607 | return EINA_FALSE; | ||
608 | } | ||
609 | |||
610 | /* only copy real frame part */ | ||
611 | siz = cache_w * cache_h * sizeof(DATA32); | ||
612 | dst = evas_cache_image_pixels(ie); | ||
613 | |||
614 | memcpy(dst, src, siz); | ||
615 | |||
616 | evas_common_image_premul(ie); | ||
617 | |||
618 | *error = EVAS_LOAD_ERROR_NONE; | ||
619 | return EINA_TRUE; | ||
620 | } | ||
621 | |||
622 | static Eina_Bool | ||
623 | evas_image_load_file_head_gif(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error) | ||
624 | { | ||
625 | int fd; | ||
626 | GifFileType *gif; | ||
627 | GifRecordType rec; | ||
628 | int w; | ||
629 | int h; | ||
630 | int alpha; | ||
631 | int loop_count = -1; | ||
632 | |||
633 | w = 0; | ||
634 | h = 0; | ||
635 | alpha = -1; | ||
636 | |||
637 | #ifndef __EMX__ | ||
638 | fd = open(file, O_RDONLY); | ||
639 | #else | ||
640 | fd = open(file, O_RDONLY | O_BINARY); | ||
641 | #endif | ||
642 | if (fd < 0) | ||
643 | { | ||
644 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
645 | return EINA_FALSE; | ||
646 | } | ||
647 | |||
648 | gif = DGifOpenFileHandle(fd); | ||
649 | if (!gif) | ||
650 | { | ||
651 | if (fd) close(fd); | ||
652 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
653 | return EINA_FALSE; | ||
654 | } | ||
655 | |||
656 | /* check logical screen size */ | ||
657 | w = gif->SWidth; | ||
658 | h = gif->SHeight; | ||
659 | |||
660 | if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) || | ||
661 | IMG_TOO_BIG(w, h)) | ||
662 | { | ||
663 | DGifCloseFile(gif); | ||
664 | if (IMG_TOO_BIG(w, h)) | ||
665 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
666 | else | ||
667 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
668 | return EINA_FALSE; | ||
669 | } | ||
670 | ie->w = w; | ||
671 | ie->h = h; | ||
672 | |||
673 | do | ||
674 | { | ||
675 | if (DGifGetRecordType(gif, &rec) == GIF_ERROR) | ||
676 | { | ||
677 | /* PrintGifError(); */ | ||
678 | DGifCloseFile(gif); | ||
679 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
680 | return EINA_FALSE; | ||
681 | } | ||
682 | |||
683 | /* image descript info */ | ||
684 | if (rec == IMAGE_DESC_RECORD_TYPE) | ||
685 | { | ||
686 | int img_code; | ||
687 | GifByteType *img; | ||
688 | |||
689 | if (DGifGetImageDesc(gif) == GIF_ERROR) | ||
690 | { | ||
691 | /* PrintGifError(); */ | ||
692 | DGifCloseFile(gif); | ||
693 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
694 | return EINA_FALSE; | ||
695 | } | ||
696 | /* we have to count frame, so use DGifGetCode and skip decoding */ | ||
697 | if (DGifGetCode(gif, &img_code, &img) == GIF_ERROR) | ||
698 | { | ||
699 | /* PrintGifError(); */ | ||
700 | DGifCloseFile(gif); | ||
701 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
702 | return EINA_FALSE; | ||
703 | } | ||
704 | while (img) | ||
705 | { | ||
706 | img = NULL; | ||
707 | DGifGetCodeNext(gif, &img); | ||
708 | } | ||
709 | } | ||
710 | else if (rec == EXTENSION_RECORD_TYPE) | ||
711 | { | ||
712 | int ext_code; | ||
713 | GifByteType *ext; | ||
714 | |||
715 | ext = NULL; | ||
716 | DGifGetExtension(gif, &ext_code, &ext); | ||
717 | while (ext) | ||
718 | { | ||
719 | if (ext_code == 0xf9) /* Graphic Control Extension */ | ||
720 | { | ||
721 | if ((ext[1] & 1) && (alpha < 0)) alpha = (int)ext[4]; | ||
722 | } | ||
723 | else if (ext_code == 0xff) /* application extension */ | ||
724 | { | ||
725 | if (!strncmp ((char*)(&ext[1]), "NETSCAPE2.0", 11) || | ||
726 | !strncmp ((char*)(&ext[1]), "ANIMEXTS1.0", 11)) | ||
727 | { | ||
728 | ext=NULL; | ||
729 | DGifGetExtensionNext(gif, &ext); | ||
730 | |||
731 | if (ext[1] == 0x01) | ||
732 | { | ||
733 | loop_count = ext[2] + (ext[3] << 8); | ||
734 | if (loop_count > 0) loop_count++; | ||
735 | } | ||
736 | } | ||
737 | } | ||
738 | |||
739 | ext = NULL; | ||
740 | DGifGetExtensionNext(gif, &ext); | ||
741 | } | ||
742 | } | ||
743 | } while (rec != TERMINATE_RECORD_TYPE); | ||
744 | |||
745 | if (alpha >= 0) ie->flags.alpha = 1; | ||
746 | |||
747 | if (gif->ImageCount > 1) | ||
748 | { | ||
749 | ie->flags.animated = 1; | ||
750 | ie->loop_count = loop_count; | ||
751 | ie->loop_hint = EVAS_IMAGE_ANIMATED_HINT_LOOP; | ||
752 | ie->frame_count = gif->ImageCount; | ||
753 | ie->frames = NULL; | ||
754 | } | ||
755 | |||
756 | DGifCloseFile(gif); | ||
757 | *error = EVAS_LOAD_ERROR_NONE; | ||
758 | return EINA_TRUE; | ||
759 | } | ||
760 | |||
761 | static Eina_Bool | ||
762 | evas_image_load_specific_frame(Image_Entry *ie, const char *file, int frame_index, int *error) | ||
763 | { | ||
764 | int fd; | ||
765 | GifFileType *gif; | ||
766 | Image_Entry_Frame *frame = NULL; | ||
767 | Gif_Frame *gif_frame = NULL; | ||
768 | |||
769 | #ifndef __EMX__ | ||
770 | fd = open(file, O_RDONLY); | ||
771 | #else | ||
772 | fd = open(file, O_RDONLY | O_BINARY); | ||
773 | #endif | ||
774 | if (fd < 0) | ||
775 | { | ||
776 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
777 | return EINA_FALSE; | ||
778 | } | ||
779 | |||
780 | gif = DGifOpenFileHandle(fd); | ||
781 | if (!gif) | ||
782 | { | ||
783 | if (fd) close(fd); | ||
784 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
785 | return EINA_FALSE; | ||
786 | } | ||
787 | if (!_evas_image_skip_frame(gif, frame_index-1)) | ||
788 | { | ||
789 | if (fd) close(fd); | ||
790 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
791 | return EINA_FALSE; | ||
792 | } | ||
793 | |||
794 | frame = malloc(sizeof (Image_Entry_Frame)); | ||
795 | if (!frame) | ||
796 | { | ||
797 | if (fd) close(fd); | ||
798 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
799 | return EINA_FALSE; | ||
800 | } | ||
801 | |||
802 | gif_frame = malloc(sizeof (Gif_Frame)); | ||
803 | if (!gif_frame) | ||
804 | { | ||
805 | if (fd) close(fd); | ||
806 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
807 | return EINA_FALSE; | ||
808 | } | ||
809 | frame->info = gif_frame; | ||
810 | frame->index = frame_index; | ||
811 | if (!_evas_image_load_frame(ie,gif, frame, LOAD_FRAME_DATA_INFO,error)) | ||
812 | { | ||
813 | if (fd) close(fd); | ||
814 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
815 | return EINA_FALSE; | ||
816 | } | ||
817 | |||
818 | ie->frames = eina_list_append(ie->frames, frame); | ||
819 | DGifCloseFile(gif); | ||
820 | return EINA_TRUE; | ||
821 | } | ||
822 | |||
823 | static Eina_Bool | ||
824 | evas_image_load_file_data_gif(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error) | ||
825 | { | ||
826 | int cur_frame_index; | ||
827 | Image_Entry_Frame *frame = NULL; | ||
828 | Eina_Bool hit; | ||
829 | |||
830 | if(!ie->flags.animated) | ||
831 | cur_frame_index = 1; | ||
832 | else | ||
833 | cur_frame_index = ie->cur_frame; | ||
834 | |||
835 | if ((ie->flags.animated) && | ||
836 | ((cur_frame_index <0) || (cur_frame_index > FRAME_MAX) || (cur_frame_index > ie->frame_count))) | ||
837 | { | ||
838 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
839 | return EINA_FALSE; | ||
840 | } | ||
841 | |||
842 | /* first time frame is set to be 0. so default is 1 */ | ||
843 | if (cur_frame_index == 0) cur_frame_index++; | ||
844 | |||
845 | /* Check current frame exists in hash table */ | ||
846 | hit = _find_frame(ie, cur_frame_index, &frame); | ||
847 | |||
848 | /* if current frame exist in has table, check load flag */ | ||
849 | if (hit) | ||
850 | { | ||
851 | if (frame->loaded) | ||
852 | evas_image_load_file_data_gif_internal(ie,frame,error); | ||
853 | else | ||
854 | { | ||
855 | int fd; | ||
856 | GifFileType *gif; | ||
857 | |||
858 | #ifndef __EMX__ | ||
859 | fd = open(file, O_RDONLY); | ||
860 | #else | ||
861 | fd = open(file, O_RDONLY | O_BINARY); | ||
862 | #endif | ||
863 | if (fd < 0) | ||
864 | { | ||
865 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
866 | return EINA_FALSE; | ||
867 | } | ||
868 | |||
869 | gif = DGifOpenFileHandle(fd); | ||
870 | if (!gif) | ||
871 | { | ||
872 | if (fd) close(fd); | ||
873 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
874 | return EINA_FALSE; | ||
875 | } | ||
876 | _evas_image_skip_frame(gif, cur_frame_index-1); | ||
877 | if (!_evas_image_load_frame(ie, gif, frame, LOAD_FRAME_DATA,error)) | ||
878 | { | ||
879 | if (fd) close(fd); | ||
880 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
881 | return EINA_FALSE; | ||
882 | } | ||
883 | if (!evas_image_load_file_data_gif_internal(ie, frame, error)) | ||
884 | { | ||
885 | if (fd) close(fd); | ||
886 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
887 | return EINA_FALSE; | ||
888 | } | ||
889 | DGifCloseFile(gif); | ||
890 | *error = EVAS_LOAD_ERROR_NONE; | ||
891 | return EINA_TRUE; | ||
892 | } | ||
893 | } | ||
894 | /* current frame does is not exist */ | ||
895 | else | ||
896 | { | ||
897 | if (!evas_image_load_specific_frame(ie, file, cur_frame_index, error)) | ||
898 | { | ||
899 | return EINA_FALSE; | ||
900 | } | ||
901 | hit = EINA_FALSE; | ||
902 | frame = NULL; | ||
903 | hit = _find_frame(ie, cur_frame_index, &frame); | ||
904 | if (!hit) return EINA_FALSE; | ||
905 | if (!evas_image_load_file_data_gif_internal(ie, frame, error)) | ||
906 | { | ||
907 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
908 | return EINA_FALSE; | ||
909 | } | ||
910 | return EINA_TRUE; | ||
911 | } | ||
912 | return EINA_FALSE; | ||
913 | } | ||
914 | |||
915 | static double | ||
916 | evas_image_load_frame_duration_gif(Image_Entry *ie, const char *file, const int start_frame, const int frame_num) | ||
917 | { | ||
918 | int fd; | ||
919 | GifFileType *gif; | ||
920 | GifRecordType rec; | ||
921 | int done; | ||
922 | int current_frame = 1; | ||
923 | int remain_frames = frame_num; | ||
924 | double duration = 0; | ||
925 | int frame_count = 0; | ||
926 | |||
927 | frame_count = ie->frame_count; | ||
928 | |||
929 | if (!ie->flags.animated) return -1; | ||
930 | if ((start_frame + frame_num) > frame_count) return -1; | ||
931 | if (frame_num < 0) return -1; | ||
932 | |||
933 | done = 0; | ||
934 | |||
935 | #ifndef __EMX__ | ||
936 | fd = open(file, O_RDONLY); | ||
937 | #else | ||
938 | fd = open(file, O_RDONLY | O_BINARY); | ||
939 | #endif | ||
940 | if (fd < 0) return -1; | ||
941 | |||
942 | gif = DGifOpenFileHandle(fd); | ||
943 | if (!gif) | ||
944 | { | ||
945 | if (fd) close(fd); | ||
946 | return -1; | ||
947 | } | ||
948 | |||
949 | do | ||
950 | { | ||
951 | if (DGifGetRecordType(gif, &rec) == GIF_ERROR) | ||
952 | { | ||
953 | rec = TERMINATE_RECORD_TYPE; | ||
954 | } | ||
955 | if (rec == IMAGE_DESC_RECORD_TYPE) | ||
956 | { | ||
957 | int img_code; | ||
958 | GifByteType *img; | ||
959 | |||
960 | if (DGifGetImageDesc(gif) == GIF_ERROR) | ||
961 | { | ||
962 | /* PrintGifError(); */ | ||
963 | rec = TERMINATE_RECORD_TYPE; | ||
964 | } | ||
965 | current_frame++; | ||
966 | /* we have to count frame, so use DGifGetCode and skip decoding */ | ||
967 | if (DGifGetCode(gif, &img_code, &img) == GIF_ERROR) | ||
968 | { | ||
969 | rec = TERMINATE_RECORD_TYPE; | ||
970 | } | ||
971 | while (img) | ||
972 | { | ||
973 | img = NULL; | ||
974 | DGifGetExtensionNext(gif, &img); | ||
975 | } | ||
976 | } | ||
977 | else if (rec == EXTENSION_RECORD_TYPE) | ||
978 | { | ||
979 | int ext_code; | ||
980 | GifByteType *ext; | ||
981 | |||
982 | ext = NULL; | ||
983 | DGifGetExtension(gif, &ext_code, &ext); | ||
984 | while (ext) | ||
985 | { | ||
986 | if (ext_code == 0xf9) /* Graphic Control Extension */ | ||
987 | { | ||
988 | if ((current_frame >= start_frame) && (current_frame <= frame_count)) | ||
989 | { | ||
990 | int frame_duration = 0; | ||
991 | if (remain_frames < 0) break; | ||
992 | frame_duration = byte2_to_int (ext[2], ext[3]); | ||
993 | if (frame_duration == 0) | ||
994 | duration += 0.1; | ||
995 | else | ||
996 | duration += (double)frame_duration/100; | ||
997 | remain_frames --; | ||
998 | } | ||
999 | } | ||
1000 | ext = NULL; | ||
1001 | DGifGetExtensionNext(gif, &ext); | ||
1002 | } | ||
1003 | } | ||
1004 | } while (rec != TERMINATE_RECORD_TYPE); | ||
1005 | |||
1006 | DGifCloseFile(gif); | ||
1007 | return duration; | ||
1008 | } | ||
1009 | |||
1010 | static int | ||
1011 | module_open(Evas_Module *em) | ||
1012 | { | ||
1013 | if (!em) return 0; | ||
1014 | em->functions = (void *)(&evas_image_load_gif_func); | ||
1015 | return 1; | ||
1016 | } | ||
1017 | |||
1018 | static void | ||
1019 | module_close(Evas_Module *em __UNUSED__) | ||
1020 | { | ||
1021 | } | ||
1022 | |||
1023 | static Evas_Module_Api evas_modapi = | ||
1024 | { | ||
1025 | EVAS_MODULE_API_VERSION, | ||
1026 | "gif", | ||
1027 | "none", | ||
1028 | { | ||
1029 | module_open, | ||
1030 | module_close | ||
1031 | } | ||
1032 | }; | ||
1033 | |||
1034 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, gif); | ||
1035 | |||
1036 | #ifndef EVAS_STATIC_BUILD_GIF | ||
1037 | EVAS_EINA_MODULE_DEFINE(image_loader, gif); | ||
1038 | #endif | ||
diff --git a/libraries/evas/src/modules/loaders/ico/Makefile.am b/libraries/evas/src/modules/loaders/ico/Makefile.am deleted file mode 100644 index 5f9b313..0000000 --- a/libraries/evas/src/modules/loaders/ico/Makefile.am +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
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 | @EINA_CFLAGS@ \ | ||
11 | @EVIL_CFLAGS@ | ||
12 | |||
13 | if BUILD_LOADER_ICO | ||
14 | if !EVAS_STATIC_BUILD_ICO | ||
15 | |||
16 | pkgdir = $(libdir)/evas/modules/loaders/ico/$(MODULE_ARCH) | ||
17 | pkg_LTLIBRARIES = module.la | ||
18 | |||
19 | module_la_SOURCES = evas_image_load_ico.c | ||
20 | |||
21 | module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
22 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
23 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
24 | |||
25 | else | ||
26 | |||
27 | noinst_LTLIBRARIES = libevas_loader_ico.la | ||
28 | libevas_loader_ico_la_SOURCES = evas_image_load_ico.c | ||
29 | libevas_loader_ico_la_LIBADD = | ||
30 | |||
31 | endif | ||
32 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/ico/Makefile.in b/libraries/evas/src/modules/loaders/ico/Makefile.in deleted file mode 100644 index 2c9c95f..0000000 --- a/libraries/evas/src/modules/loaders/ico/Makefile.in +++ /dev/null | |||
@@ -1,761 +0,0 @@ | |||
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/ico | ||
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_ico_la_DEPENDENCIES = | ||
83 | am__libevas_loader_ico_la_SOURCES_DIST = evas_image_load_ico.c | ||
84 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_TRUE@am_libevas_loader_ico_la_OBJECTS = evas_image_load_ico.lo | ||
85 | libevas_loader_ico_la_OBJECTS = $(am_libevas_loader_ico_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_TRUE@am_libevas_loader_ico_la_rpath = | ||
90 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
91 | am__module_la_SOURCES_DIST = evas_image_load_ico.c | ||
92 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_ico.lo | ||
93 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
94 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
95 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
96 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@am_module_la_rpath = \ | ||
98 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@ -rpath \ | ||
99 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@ $(pkgdir) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_ico_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_ico_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
185 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
186 | FGREP = @FGREP@ | ||
187 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
188 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
189 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
190 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
191 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
192 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
193 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
194 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
195 | GREP = @GREP@ | ||
196 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
197 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
198 | INSTALL = @INSTALL@ | ||
199 | INSTALL_DATA = @INSTALL_DATA@ | ||
200 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
201 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
202 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
203 | LD = @LD@ | ||
204 | LDFLAGS = @LDFLAGS@ | ||
205 | LIBOBJS = @LIBOBJS@ | ||
206 | LIBS = @LIBS@ | ||
207 | LIBTOOL = @LIBTOOL@ | ||
208 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
209 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
210 | LIPO = @LIPO@ | ||
211 | LN_S = @LN_S@ | ||
212 | LTLIBOBJS = @LTLIBOBJS@ | ||
213 | MAKEINFO = @MAKEINFO@ | ||
214 | MKDIR_P = @MKDIR_P@ | ||
215 | MODULE_ARCH = @MODULE_ARCH@ | ||
216 | NM = @NM@ | ||
217 | NMEDIT = @NMEDIT@ | ||
218 | OBJC = @OBJC@ | ||
219 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
220 | OBJCFLAGS = @OBJCFLAGS@ | ||
221 | OBJDUMP = @OBJDUMP@ | ||
222 | OBJEXT = @OBJEXT@ | ||
223 | OTOOL = @OTOOL@ | ||
224 | OTOOL64 = @OTOOL64@ | ||
225 | PACKAGE = @PACKAGE@ | ||
226 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
227 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
228 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
229 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
230 | PACKAGE_URL = @PACKAGE_URL@ | ||
231 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
232 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
233 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
234 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
235 | PKG_CONFIG = @PKG_CONFIG@ | ||
236 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
237 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
238 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
239 | PNG_LIBS = @PNG_LIBS@ | ||
240 | RANLIB = @RANLIB@ | ||
241 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
242 | SDL_LIBS = @SDL_LIBS@ | ||
243 | SED = @SED@ | ||
244 | SET_MAKE = @SET_MAKE@ | ||
245 | SHELL = @SHELL@ | ||
246 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
247 | STRIP = @STRIP@ | ||
248 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
249 | SVG_LIBS = @SVG_LIBS@ | ||
250 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
251 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
252 | VERSION = @VERSION@ | ||
253 | VMAJ = @VMAJ@ | ||
254 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
255 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
256 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
257 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
258 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
259 | XCB_LIBS = @XCB_LIBS@ | ||
260 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
261 | XEXT_LIBS = @XEXT_LIBS@ | ||
262 | XMKMF = @XMKMF@ | ||
263 | X_CFLAGS = @X_CFLAGS@ | ||
264 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
265 | X_LIBS = @X_LIBS@ | ||
266 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
267 | abs_builddir = @abs_builddir@ | ||
268 | abs_srcdir = @abs_srcdir@ | ||
269 | abs_top_builddir = @abs_top_builddir@ | ||
270 | abs_top_srcdir = @abs_top_srcdir@ | ||
271 | ac_ct_CC = @ac_ct_CC@ | ||
272 | ac_ct_CXX = @ac_ct_CXX@ | ||
273 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
274 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
275 | altivec_cflags = @altivec_cflags@ | ||
276 | am__include = @am__include@ | ||
277 | am__leading_dot = @am__leading_dot@ | ||
278 | am__quote = @am__quote@ | ||
279 | am__tar = @am__tar@ | ||
280 | am__untar = @am__untar@ | ||
281 | bindir = @bindir@ | ||
282 | build = @build@ | ||
283 | build_alias = @build_alias@ | ||
284 | build_cpu = @build_cpu@ | ||
285 | build_os = @build_os@ | ||
286 | build_vendor = @build_vendor@ | ||
287 | builddir = @builddir@ | ||
288 | datadir = @datadir@ | ||
289 | datarootdir = @datarootdir@ | ||
290 | dlopen_libs = @dlopen_libs@ | ||
291 | docdir = @docdir@ | ||
292 | dvidir = @dvidir@ | ||
293 | edje_cc = @edje_cc@ | ||
294 | efl_doxygen = @efl_doxygen@ | ||
295 | efl_have_doxygen = @efl_have_doxygen@ | ||
296 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
297 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
298 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
299 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
300 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
301 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
302 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
303 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
304 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
305 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
306 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
307 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
308 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
309 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
310 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
311 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
312 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
313 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
314 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
315 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
316 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
317 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
318 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
319 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
320 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
321 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
322 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
323 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
324 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
325 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
326 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
327 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
328 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
329 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
330 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
331 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
332 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
333 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
334 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
335 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
336 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
337 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
338 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
339 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
340 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
341 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
342 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
343 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
344 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
345 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
346 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
347 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
348 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
349 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
350 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
351 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
352 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
353 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
354 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
355 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
356 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
357 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
358 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
359 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
360 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
361 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
362 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
363 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
364 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
365 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
366 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
367 | exec_prefix = @exec_prefix@ | ||
368 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
369 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
370 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
371 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
372 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
373 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
374 | have_lcov = @have_lcov@ | ||
375 | host = @host@ | ||
376 | host_alias = @host_alias@ | ||
377 | host_cpu = @host_cpu@ | ||
378 | host_os = @host_os@ | ||
379 | host_vendor = @host_vendor@ | ||
380 | htmldir = @htmldir@ | ||
381 | includedir = @includedir@ | ||
382 | infodir = @infodir@ | ||
383 | install_sh = @install_sh@ | ||
384 | libdir = @libdir@ | ||
385 | libexecdir = @libexecdir@ | ||
386 | localedir = @localedir@ | ||
387 | localstatedir = @localstatedir@ | ||
388 | lt_ECHO = @lt_ECHO@ | ||
389 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
390 | mandir = @mandir@ | ||
391 | mkdir_p = @mkdir_p@ | ||
392 | oldincludedir = @oldincludedir@ | ||
393 | pdfdir = @pdfdir@ | ||
394 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
395 | prefix = @prefix@ | ||
396 | program_transform_name = @program_transform_name@ | ||
397 | psdir = @psdir@ | ||
398 | pthread_cflags = @pthread_cflags@ | ||
399 | pthread_libs = @pthread_libs@ | ||
400 | release_info = @release_info@ | ||
401 | requirement_evas = @requirement_evas@ | ||
402 | sbindir = @sbindir@ | ||
403 | sharedstatedir = @sharedstatedir@ | ||
404 | srcdir = @srcdir@ | ||
405 | sysconfdir = @sysconfdir@ | ||
406 | target_alias = @target_alias@ | ||
407 | top_build_prefix = @top_build_prefix@ | ||
408 | top_builddir = @top_builddir@ | ||
409 | top_srcdir = @top_srcdir@ | ||
410 | version_info = @version_info@ | ||
411 | MAINTAINERCLEANFILES = Makefile.in | ||
412 | AM_CPPFLAGS = \ | ||
413 | -I. \ | ||
414 | -I$(top_srcdir)/src/lib \ | ||
415 | -I$(top_srcdir)/src/lib/include \ | ||
416 | @FREETYPE_CFLAGS@ \ | ||
417 | @PIXMAN_CFLAGS@ \ | ||
418 | @EINA_CFLAGS@ \ | ||
419 | @EVIL_CFLAGS@ | ||
420 | |||
421 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@pkgdir = $(libdir)/evas/modules/loaders/ico/$(MODULE_ARCH) | ||
422 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@pkg_LTLIBRARIES = module.la | ||
423 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@module_la_SOURCES = evas_image_load_ico.c | ||
424 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
425 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
426 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
427 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_TRUE@noinst_LTLIBRARIES = libevas_loader_ico.la | ||
428 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_TRUE@libevas_loader_ico_la_SOURCES = evas_image_load_ico.c | ||
429 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_TRUE@libevas_loader_ico_la_LIBADD = | ||
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/ico/Makefile'; \ | ||
444 | $(am__cd) $(top_srcdir) && \ | ||
445 | $(AUTOMAKE) --gnu src/modules/loaders/ico/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_ico.la: $(libevas_loader_ico_la_OBJECTS) $(libevas_loader_ico_la_DEPENDENCIES) | ||
505 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_ico_la_rpath) $(libevas_loader_ico_la_OBJECTS) $(libevas_loader_ico_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_ico.Plo@am__quote@ | ||
516 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_ico.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_ico.lo: evas_image_load_ico.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_ico.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_ico.Tpo -c -o module_la-evas_image_load_ico.lo `test -f 'evas_image_load_ico.c' || echo '$(srcdir)/'`evas_image_load_ico.c | ||
544 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_ico.Tpo $(DEPDIR)/module_la-evas_image_load_ico.Plo | ||
545 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
546 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_ico.c' object='module_la-evas_image_load_ico.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_ico.lo `test -f 'evas_image_load_ico.c' || echo '$(srcdir)/'`evas_image_load_ico.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/ico/evas_image_load_ico.c b/libraries/evas/src/modules/loaders/ico/evas_image_load_ico.c deleted file mode 100644 index 4239407..0000000 --- a/libraries/evas/src/modules/loaders/ico/evas_image_load_ico.c +++ /dev/null | |||
@@ -1,808 +0,0 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
5 | #include <stdio.h> | ||
6 | |||
7 | #ifdef HAVE_EVIL | ||
8 | # include <Evil.h> | ||
9 | #endif | ||
10 | |||
11 | #include "evas_common.h" | ||
12 | #include "evas_private.h" | ||
13 | |||
14 | static Eina_Bool evas_image_load_file_head_ico(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
15 | static Eina_Bool evas_image_load_file_data_ico(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
16 | |||
17 | static Evas_Image_Load_Func evas_image_load_ico_func = | ||
18 | { | ||
19 | EINA_TRUE, | ||
20 | evas_image_load_file_head_ico, | ||
21 | evas_image_load_file_data_ico, | ||
22 | NULL, | ||
23 | EINA_FALSE | ||
24 | }; | ||
25 | |||
26 | static Eina_Bool | ||
27 | read_ushort(unsigned char *map, size_t length, size_t *position, unsigned short *ret) | ||
28 | { | ||
29 | unsigned char b[2]; | ||
30 | |||
31 | if (*position + 2 > length) return EINA_FALSE; | ||
32 | b[0] = map[(*position)++]; | ||
33 | b[1] = map[(*position)++]; | ||
34 | *ret = (b[1] << 8) | b[0]; | ||
35 | return EINA_TRUE; | ||
36 | } | ||
37 | |||
38 | static Eina_Bool | ||
39 | read_uint(unsigned char *map, size_t length, size_t *position, unsigned int *ret) | ||
40 | { | ||
41 | unsigned char b[4]; | ||
42 | unsigned int i; | ||
43 | |||
44 | if (*position + 4 > length) return EINA_FALSE; | ||
45 | for (i = 0; i < 4; i++) | ||
46 | b[i] = map[(*position)++]; | ||
47 | *ret = ARGB_JOIN(b[3], b[2], b[1], b[0]); | ||
48 | return EINA_TRUE; | ||
49 | } | ||
50 | |||
51 | static Eina_Bool | ||
52 | read_uchar(unsigned char *map, size_t length, size_t *position, unsigned char *ret) | ||
53 | { | ||
54 | if (*position + 1 > length) return EINA_FALSE; | ||
55 | *ret = map[(*position)++]; | ||
56 | return EINA_TRUE; | ||
57 | } | ||
58 | |||
59 | static Eina_Bool | ||
60 | read_mem(unsigned char *map, size_t length, size_t *position, void *buffer, int size) | ||
61 | { | ||
62 | if (*position + size > length) return EINA_FALSE; | ||
63 | memcpy(buffer, map + *position, size); | ||
64 | *position += size; | ||
65 | return EINA_TRUE; | ||
66 | } | ||
67 | |||
68 | enum | ||
69 | { | ||
70 | SMALLEST, | ||
71 | BIGGEST, | ||
72 | SMALLER, | ||
73 | BIGGER | ||
74 | }; | ||
75 | |||
76 | enum | ||
77 | { | ||
78 | ICON = 1, | ||
79 | CURSOR = 2 | ||
80 | }; | ||
81 | |||
82 | static Eina_Bool | ||
83 | evas_image_load_file_head_ico(Image_Entry *ie, const char *file, const char *key, int *error) | ||
84 | { | ||
85 | Eina_File *f; | ||
86 | void *map = NULL; | ||
87 | size_t position = 0; | ||
88 | unsigned short word; | ||
89 | unsigned char byte; | ||
90 | int wanted_w = 0, wanted_h = 0, w, h, cols, i, planes = 0, | ||
91 | bpp = 0, pdelta, search = -1, have_choice = 0, | ||
92 | hasa = 1; | ||
93 | unsigned int bmoffset, bmsize, fsize; | ||
94 | unsigned short reserved, type, count; | ||
95 | struct { | ||
96 | int pdelta; | ||
97 | int w, h; | ||
98 | int cols; | ||
99 | int bpp, planes; | ||
100 | int hot_x, hot_y; | ||
101 | unsigned int bmoffset, bmsize; | ||
102 | } chosen = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; | ||
103 | |||
104 | f = eina_file_open(file, EINA_FALSE); | ||
105 | if (!f) | ||
106 | { | ||
107 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
108 | return EINA_FALSE; | ||
109 | } | ||
110 | |||
111 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
112 | fsize = eina_file_size_get(f); | ||
113 | if (fsize < (6 + 16 + 40)) goto close_file; | ||
114 | |||
115 | map = eina_file_map_all(f, EINA_FILE_SEQUENTIAL); | ||
116 | if (!map) goto close_file; | ||
117 | |||
118 | // key: | ||
119 | // NULL == highest res | ||
120 | // biggest == highest res | ||
121 | // smallest == lowest res | ||
122 | // | ||
123 | // smaller == next size SMALLER than load opts WxH (if possible) | ||
124 | // bigger == next size BIGGER than load opts WxH (if possible) | ||
125 | // more ? | ||
126 | |||
127 | search = BIGGEST; | ||
128 | if ((ie->load_opts.w > 0) && (ie->load_opts.h > 0)) | ||
129 | { | ||
130 | wanted_w = ie->load_opts.w; | ||
131 | wanted_h = ie->load_opts.h; | ||
132 | search = SMALLER; | ||
133 | } | ||
134 | |||
135 | if (!read_ushort(map, fsize, &position, &reserved)) goto close_file; | ||
136 | if (!read_ushort(map, fsize, &position, &type)) goto close_file; | ||
137 | if (!read_ushort(map, fsize, &position, &count)) goto close_file; | ||
138 | if (!((reserved == 0) && | ||
139 | ((type == ICON) || (type == CURSOR)) && (count > 0))) | ||
140 | goto close_file; | ||
141 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
142 | |||
143 | if (key) | ||
144 | { | ||
145 | if (!strcmp(key, "biggest")) | ||
146 | { | ||
147 | wanted_w = 0; | ||
148 | wanted_h = 0; | ||
149 | search = BIGGEST; | ||
150 | chosen.pdelta = 0; | ||
151 | } | ||
152 | else if (!strcmp(key, "smallest")) | ||
153 | { | ||
154 | wanted_w = 1; | ||
155 | wanted_h = 1; | ||
156 | search = SMALLEST; | ||
157 | chosen.pdelta = 0x7fffffff; | ||
158 | } | ||
159 | else if (!strcmp(key, "smaller")) | ||
160 | { | ||
161 | chosen.pdelta = 0x7fffffff; | ||
162 | search = SMALLER; | ||
163 | } | ||
164 | else if (!strcmp(key, "bigger")) | ||
165 | { | ||
166 | chosen.pdelta = 0x7fffffff; | ||
167 | search = BIGGER; | ||
168 | } | ||
169 | } | ||
170 | for (i = 0; i < count; i++) | ||
171 | { | ||
172 | unsigned char tw = 0, th = 0, tcols = 0; | ||
173 | if (!read_uchar(map, fsize, &position, &tw)) goto close_file; | ||
174 | w = tw; | ||
175 | if (w <= 0) w = 256; | ||
176 | if (!read_uchar(map, fsize, &position, &th)) goto close_file; | ||
177 | h = th; | ||
178 | if (h <= 0) h = 256; | ||
179 | if (!read_uchar(map, fsize, &position, &tcols)) goto close_file; | ||
180 | cols = tcols; | ||
181 | if (cols <= 0) cols = 256; | ||
182 | if (!read_uchar(map, fsize, &position, &byte)) goto close_file; | ||
183 | if (!read_ushort(map, fsize, &position, &word)) goto close_file; | ||
184 | if (type == CURSOR) planes = word; | ||
185 | //else hot_x = word; | ||
186 | if (!read_ushort(map, fsize, &position, &word)) goto close_file; | ||
187 | if (type == CURSOR) bpp = word; | ||
188 | //else hot_y = word; | ||
189 | if (!read_uint(map, fsize, &position, &bmsize)) goto close_file; | ||
190 | if (!read_uint(map, fsize, &position, &bmoffset)) goto close_file; | ||
191 | if ((bmsize <= 0) || (bmoffset <= 0) || (bmoffset >= fsize)) goto close_file; | ||
192 | if (search == BIGGEST) | ||
193 | { | ||
194 | pdelta = w * h; | ||
195 | if ((!have_choice) || | ||
196 | ((pdelta >= chosen.pdelta) && | ||
197 | (((bpp >= 3) && (bpp >= chosen.bpp)) || | ||
198 | ((bpp < 3) && (cols >= chosen.cols))))) | ||
199 | { | ||
200 | have_choice = 1; | ||
201 | chosen.pdelta = pdelta; | ||
202 | chosen.w = w; | ||
203 | chosen.h = h; | ||
204 | chosen.cols = cols; | ||
205 | chosen.bpp = bpp; | ||
206 | chosen.planes = planes; | ||
207 | chosen.bmsize = bmsize; | ||
208 | chosen.bmoffset = bmoffset; | ||
209 | } | ||
210 | } | ||
211 | else | ||
212 | { | ||
213 | if (search == SMALLEST) | ||
214 | { | ||
215 | pdelta = w * h; | ||
216 | if ((!have_choice) || | ||
217 | ((pdelta <= chosen.pdelta) && | ||
218 | (((bpp >= 3) && (bpp >= chosen.bpp)) || | ||
219 | ((bpp < 3) && (cols >= chosen.cols))))) | ||
220 | { | ||
221 | have_choice = 1; | ||
222 | chosen.pdelta = pdelta; | ||
223 | chosen.w = w; | ||
224 | chosen.h = h; | ||
225 | chosen.cols = cols; | ||
226 | chosen.bpp = bpp; | ||
227 | chosen.planes = planes; | ||
228 | chosen.bmsize = bmsize; | ||
229 | chosen.bmoffset = bmoffset; | ||
230 | } | ||
231 | } | ||
232 | else if (search == SMALLER) | ||
233 | { | ||
234 | pdelta = (wanted_w * wanted_h) - (w * h); | ||
235 | if ((!have_choice) || | ||
236 | ((w <= wanted_w) && (h <= wanted_h) && | ||
237 | (pdelta <= chosen.pdelta) && | ||
238 | (((bpp >= 3) && (bpp >= chosen.bpp)) || | ||
239 | ((bpp < 3) && (cols >= chosen.cols))))) | ||
240 | { | ||
241 | have_choice = 1; | ||
242 | if (pdelta < 0) pdelta = 0x7fffffff; | ||
243 | chosen.pdelta = pdelta; | ||
244 | chosen.w = w; | ||
245 | chosen.h = h; | ||
246 | chosen.cols = cols; | ||
247 | chosen.bpp = bpp; | ||
248 | chosen.planes = planes; | ||
249 | chosen.bmsize = bmsize; | ||
250 | chosen.bmoffset = bmoffset; | ||
251 | } | ||
252 | } | ||
253 | else if (search == BIGGER) | ||
254 | { | ||
255 | pdelta = (w * h) - (wanted_w * wanted_h); | ||
256 | if ((!have_choice) || | ||
257 | ((w >= wanted_w) && (h >= wanted_h) && | ||
258 | (pdelta <= chosen.pdelta) && | ||
259 | (((bpp >= 3) && (bpp >= chosen.bpp)) || | ||
260 | ((bpp < 3) && (cols >= chosen.cols))))) | ||
261 | { | ||
262 | have_choice = 1; | ||
263 | if (pdelta < 0) pdelta = 0x7fffffff; | ||
264 | chosen.pdelta = pdelta; | ||
265 | chosen.w = w; | ||
266 | chosen.h = h; | ||
267 | chosen.cols = cols; | ||
268 | chosen.bpp = bpp; | ||
269 | chosen.planes = planes; | ||
270 | chosen.bmsize = bmsize; | ||
271 | chosen.bmoffset = bmoffset; | ||
272 | } | ||
273 | } | ||
274 | } | ||
275 | } | ||
276 | if (chosen.bmoffset == 0) goto close_file; | ||
277 | position = chosen.bmoffset; | ||
278 | |||
279 | w = chosen.w; | ||
280 | h = chosen.h; | ||
281 | if ((w > 256) || (h > 256)) goto close_file; | ||
282 | if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) || | ||
283 | IMG_TOO_BIG(w, h)) | ||
284 | { | ||
285 | if (IMG_TOO_BIG(w, h)) | ||
286 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
287 | else | ||
288 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
289 | goto close_file; | ||
290 | } | ||
291 | |||
292 | ie->w = w; | ||
293 | ie->h = h; | ||
294 | if (hasa) ie->flags.alpha = 1; | ||
295 | |||
296 | eina_file_map_free(f, map); | ||
297 | eina_file_close(f); | ||
298 | |||
299 | *error = EVAS_LOAD_ERROR_NONE; | ||
300 | return EINA_TRUE; | ||
301 | |||
302 | close_file: | ||
303 | if (map) eina_file_map_free(f, map); | ||
304 | eina_file_close(f); | ||
305 | return EINA_FALSE; | ||
306 | } | ||
307 | |||
308 | static Eina_Bool | ||
309 | evas_image_load_file_data_ico(Image_Entry *ie, const char *file, const char *key, int *error) | ||
310 | { | ||
311 | Eina_File *f; | ||
312 | void *map = NULL; | ||
313 | size_t position = 0; | ||
314 | unsigned short word; | ||
315 | unsigned char byte; | ||
316 | unsigned int dword; | ||
317 | int wanted_w = 0, wanted_h = 0, w, h, cols, i, planes = 0, | ||
318 | bpp = 0, pdelta, search = -1, have_choice = 0, | ||
319 | stride, pstride, j, right_way_up = 0, diff_size = 0, cols2; | ||
320 | unsigned int bmoffset, bmsize, bitcount, fsize, | ||
321 | *pal, *surface, *pix, none_zero_alpha = 0; | ||
322 | unsigned short reserved, type, count; | ||
323 | unsigned char *maskbuf, *pixbuf, *p; | ||
324 | struct { | ||
325 | int pdelta; | ||
326 | int w, h; | ||
327 | int cols; | ||
328 | int bpp, planes; | ||
329 | int hot_x, hot_y; | ||
330 | unsigned int bmoffset, bmsize; | ||
331 | } chosen = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; | ||
332 | |||
333 | f = eina_file_open(file, EINA_FALSE); | ||
334 | if (!f) | ||
335 | { | ||
336 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
337 | return EINA_FALSE; | ||
338 | } | ||
339 | |||
340 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
341 | fsize = eina_file_size_get(f); | ||
342 | if (fsize < (6 + 16 + 40)) goto close_file; | ||
343 | |||
344 | map = eina_file_map_all(f, EINA_FILE_SEQUENTIAL); | ||
345 | if (!map) goto close_file; | ||
346 | |||
347 | // key: | ||
348 | // NULL == highest res | ||
349 | // biggest == highest res | ||
350 | // smallest == lowest res | ||
351 | // | ||
352 | // smaller == next size SMALLER than load opts WxH (if possible) | ||
353 | // bigger == next size BIGGER than load opts WxH (if possible) | ||
354 | // more ? | ||
355 | |||
356 | search = BIGGEST; | ||
357 | if ((ie->load_opts.w > 0) && (ie->load_opts.h > 0)) | ||
358 | { | ||
359 | wanted_w = ie->load_opts.w; | ||
360 | wanted_h = ie->load_opts.h; | ||
361 | search = SMALLER; | ||
362 | } | ||
363 | |||
364 | if (!read_ushort(map, fsize, &position, &reserved)) goto close_file; | ||
365 | if (!read_ushort(map, fsize, &position, &type)) goto close_file; | ||
366 | if (!read_ushort(map, fsize, &position, &count)) goto close_file; | ||
367 | if (!((reserved == 0) && | ||
368 | ((type == ICON) || (type == CURSOR)) && (count > 0))) | ||
369 | goto close_file; | ||
370 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
371 | |||
372 | if (key) | ||
373 | { | ||
374 | if (!strcmp(key, "biggest")) | ||
375 | { | ||
376 | wanted_w = 0; | ||
377 | wanted_h = 0; | ||
378 | search = BIGGEST; | ||
379 | chosen.pdelta = 0; | ||
380 | } | ||
381 | else if (!strcmp(key, "smallest")) | ||
382 | { | ||
383 | wanted_w = 1; | ||
384 | wanted_h = 1; | ||
385 | search = SMALLEST; | ||
386 | chosen.pdelta = 0x7fffffff; | ||
387 | } | ||
388 | else if (!strcmp(key, "smaller")) | ||
389 | { | ||
390 | chosen.pdelta = 0x7fffffff; | ||
391 | search = SMALLER; | ||
392 | } | ||
393 | else if (!strcmp(key, "bigger")) | ||
394 | { | ||
395 | chosen.pdelta = 0x7fffffff; | ||
396 | search = BIGGER; | ||
397 | } | ||
398 | } | ||
399 | for (i = 0; i < count; i++) | ||
400 | { | ||
401 | unsigned char tw = 0, th = 0, tcols = 0; | ||
402 | if (!read_uchar(map, fsize, &position, &tw)) goto close_file; | ||
403 | w = tw; | ||
404 | if (w <= 0) w = 256; | ||
405 | if (!read_uchar(map, fsize, &position, &th)) goto close_file; | ||
406 | h = th; | ||
407 | if (h <= 0) h = 256; | ||
408 | if (!read_uchar(map, fsize, &position, &tcols)) goto close_file; | ||
409 | cols = tcols; | ||
410 | if (cols <= 0) cols = 256; | ||
411 | if (!read_uchar(map, fsize, &position, &byte)) goto close_file; | ||
412 | if (!read_ushort(map, fsize, &position, &word)) goto close_file; | ||
413 | if (type == 1) planes = word; | ||
414 | //else hot_x = word; | ||
415 | if (!read_ushort(map, fsize, &position, &word)) goto close_file; | ||
416 | if (type == 1) bpp = word; | ||
417 | //else hot_y = word; | ||
418 | if (!read_uint(map, fsize, &position, &bmsize)) goto close_file; | ||
419 | if (!read_uint(map, fsize, &position, &bmoffset)) goto close_file; | ||
420 | if ((bmsize <= 0) || (bmoffset <= 0) || (bmoffset >= fsize)) goto close_file; | ||
421 | if (search == BIGGEST) | ||
422 | { | ||
423 | pdelta = w * h; | ||
424 | if ((!have_choice) || | ||
425 | ((pdelta >= chosen.pdelta) && | ||
426 | (((bpp >= 3) && (bpp >= chosen.bpp)) || | ||
427 | ((bpp < 3) && (cols >= chosen.cols))))) | ||
428 | { | ||
429 | have_choice = 1; | ||
430 | chosen.pdelta = pdelta; | ||
431 | chosen.w = w; | ||
432 | chosen.h = h; | ||
433 | chosen.cols = cols; | ||
434 | chosen.bpp = bpp; | ||
435 | chosen.planes = planes; | ||
436 | chosen.bmsize = bmsize; | ||
437 | chosen.bmoffset = bmoffset; | ||
438 | } | ||
439 | } | ||
440 | else | ||
441 | { | ||
442 | if (search == SMALLEST) | ||
443 | { | ||
444 | pdelta = w * h; | ||
445 | if ((!have_choice) || | ||
446 | ((pdelta <= chosen.pdelta) && | ||
447 | (((bpp >= 3) && (bpp >= chosen.bpp)) || | ||
448 | ((bpp < 3) && (cols >= chosen.cols))))) | ||
449 | { | ||
450 | have_choice = 1; | ||
451 | chosen.pdelta = pdelta; | ||
452 | chosen.w = w; | ||
453 | chosen.h = h; | ||
454 | chosen.cols = cols; | ||
455 | chosen.bpp = bpp; | ||
456 | chosen.planes = planes; | ||
457 | chosen.bmsize = bmsize; | ||
458 | chosen.bmoffset = bmoffset; | ||
459 | } | ||
460 | } | ||
461 | else if (search == SMALLER) | ||
462 | { | ||
463 | pdelta = (wanted_w * wanted_h) - (w * h); | ||
464 | if ((!have_choice) || | ||
465 | ((w <= wanted_w) && (h <= wanted_h) && | ||
466 | (pdelta <= chosen.pdelta) && | ||
467 | (((bpp >= 3) && (bpp >= chosen.bpp)) || | ||
468 | ((bpp < 3) && (cols >= chosen.cols))))) | ||
469 | { | ||
470 | have_choice = 1; | ||
471 | if (pdelta < 0) pdelta = 0x7fffffff; | ||
472 | chosen.pdelta = pdelta; | ||
473 | chosen.w = w; | ||
474 | chosen.h = h; | ||
475 | chosen.cols = cols; | ||
476 | chosen.bpp = bpp; | ||
477 | chosen.planes = planes; | ||
478 | chosen.bmsize = bmsize; | ||
479 | chosen.bmoffset = bmoffset; | ||
480 | } | ||
481 | } | ||
482 | else if (search == BIGGER) | ||
483 | { | ||
484 | pdelta = (w * h) - (wanted_w * wanted_h); | ||
485 | if ((!have_choice) || | ||
486 | ((w >= wanted_w) && (h >= wanted_h) && | ||
487 | (pdelta <= chosen.pdelta) && | ||
488 | (((bpp >= 3) && (bpp >= chosen.bpp)) || | ||
489 | ((bpp < 3) && (cols >= chosen.cols))))) | ||
490 | { | ||
491 | have_choice = 1; | ||
492 | if (pdelta < 0) pdelta = 0x7fffffff; | ||
493 | chosen.pdelta = pdelta; | ||
494 | chosen.w = w; | ||
495 | chosen.h = h; | ||
496 | chosen.cols = cols; | ||
497 | chosen.bpp = bpp; | ||
498 | chosen.planes = planes; | ||
499 | chosen.bmsize = bmsize; | ||
500 | chosen.bmoffset = bmoffset; | ||
501 | } | ||
502 | } | ||
503 | } | ||
504 | } | ||
505 | if (chosen.bmoffset == 0) goto close_file; | ||
506 | position = chosen.bmoffset; | ||
507 | |||
508 | w = chosen.w; | ||
509 | h = chosen.h; | ||
510 | cols = chosen.cols; | ||
511 | bpp = chosen.bpp; | ||
512 | // changed since we loaded header? | ||
513 | if (((int)ie->w != w) || ((int)ie->h != h)) goto close_file; | ||
514 | |||
515 | // read bmp header time... let's do some checking | ||
516 | if (!read_uint(map, fsize, &position, &dword)) goto close_file; // headersize - dont care | ||
517 | if (!read_uint(map, fsize, &position, &dword)) goto close_file; // width | ||
518 | if (dword > 0) | ||
519 | { | ||
520 | if ((int)dword != w) | ||
521 | { | ||
522 | w = dword; | ||
523 | diff_size = 1; | ||
524 | } | ||
525 | } | ||
526 | if (!read_uint(map, fsize, &position, &dword)) goto close_file; // height | ||
527 | if (dword > 0) | ||
528 | { | ||
529 | if ((int)dword != (h * 2)) | ||
530 | { | ||
531 | h = dword / 2; | ||
532 | diff_size = 1; | ||
533 | } | ||
534 | } | ||
535 | if (diff_size) | ||
536 | { | ||
537 | ERR("Broken ICO file: %s - " | ||
538 | " Reporting size of %ix%i in index, but bitmap is %ix%i. " | ||
539 | " May be expanded or cropped.", | ||
540 | file, ie->w, ie->h, w, h); | ||
541 | } | ||
542 | if (!read_ushort(map, fsize, &position, &word)) goto close_file; // planes | ||
543 | //planes2 = word; | ||
544 | if (!read_ushort(map, fsize, &position, &word)) goto close_file; // bitcount | ||
545 | bitcount = word; | ||
546 | if (!read_uint(map, fsize, &position, &dword)) goto close_file; // compression | ||
547 | //compression = dword; | ||
548 | if (!read_uint(map, fsize, &position, &dword)) goto close_file; // imagesize | ||
549 | //imagesize = dword; | ||
550 | if (!read_uint(map, fsize, &position, &dword)) goto close_file; // z pixels per m | ||
551 | if (!read_uint(map, fsize, &position, &dword)) goto close_file; // y pizels per m | ||
552 | if (!read_uint(map, fsize, &position, &dword)) goto close_file; // colors used | ||
553 | //colorsused = dword; | ||
554 | if (!read_uint(map, fsize, &position, &dword)) goto close_file; // colors important | ||
555 | //colorsimportant = dword; | ||
556 | |||
557 | evas_cache_image_surface_alloc(ie, ie->w, ie->h); | ||
558 | surface = evas_cache_image_pixels(ie); | ||
559 | if (!surface) | ||
560 | { | ||
561 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
562 | goto close_file; | ||
563 | } | ||
564 | memset(surface, 0, ie->w * ie->h * 4); | ||
565 | |||
566 | if (!((bitcount == 1) || (bitcount == 4) || (bitcount == 8) || | ||
567 | (bitcount == 24) || (bitcount == 32))) | ||
568 | goto close_file; | ||
569 | if (bitcount <= 8) | ||
570 | { | ||
571 | cols2 = 1 << bitcount; | ||
572 | if (cols == 0) cols = cols2; | ||
573 | if (cols > cols2) cols = cols2; | ||
574 | if (cols > 256) cols = 256; | ||
575 | } | ||
576 | else | ||
577 | cols = 0; | ||
578 | if (bitcount > 8) cols = 0; | ||
579 | |||
580 | pal = alloca(256 * 4); | ||
581 | for (i = 0; i < cols; i++) | ||
582 | { | ||
583 | unsigned char a, r, g, b; | ||
584 | |||
585 | if (!read_uchar(map, fsize, &position, &b)) goto close_file; | ||
586 | if (!read_uchar(map, fsize, &position, &g)) goto close_file; | ||
587 | if (!read_uchar(map, fsize, &position, &r)) goto close_file; | ||
588 | if (!read_uchar(map, fsize, &position, &a)) goto close_file; | ||
589 | a = 0xff; | ||
590 | pal[i] = ARGB_JOIN(a, r, g, b); | ||
591 | } | ||
592 | stride = ((w + 31) / 32); | ||
593 | maskbuf = alloca(stride * h); | ||
594 | pixbuf = alloca(stride * 32 * 4); // more than enough | ||
595 | if (bitcount == 1) | ||
596 | { | ||
597 | pstride = stride * 4; | ||
598 | for (i = 0; i < h; i++) | ||
599 | { | ||
600 | pix = surface + (i * ie->w); | ||
601 | if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w); | ||
602 | if (!read_mem(map, fsize, &position, pixbuf, pstride)) goto close_file; | ||
603 | p = pixbuf; | ||
604 | if (i >= (int)ie->h) continue; | ||
605 | for (j = 0; j < w; j++) | ||
606 | { | ||
607 | if (j >= (int)ie->w) break; | ||
608 | if ((j & 0x7) == 0x0) | ||
609 | { | ||
610 | *pix = pal[*p >> 7]; | ||
611 | } | ||
612 | else if ((j & 0x7) == 0x1) | ||
613 | { | ||
614 | *pix = pal[(*p >> 6) & 0x1]; | ||
615 | } | ||
616 | else if ((j & 0x7) == 0x2) | ||
617 | { | ||
618 | *pix = pal[(*p >> 5) & 0x1]; | ||
619 | } | ||
620 | else if ((j & 0x7) == 0x3) | ||
621 | { | ||
622 | *pix = pal[(*p >> 4) & 0x1]; | ||
623 | } | ||
624 | else if ((j & 0x7) == 0x4) | ||
625 | { | ||
626 | *pix = pal[(*p >> 3) & 0x1]; | ||
627 | } | ||
628 | else if ((j & 0x7) == 0x5) | ||
629 | { | ||
630 | *pix = pal[(*p >> 2) & 0x1]; | ||
631 | } | ||
632 | else if ((j & 0x7) == 0x6) | ||
633 | { | ||
634 | *pix = pal[(*p >> 1) & 0x1]; | ||
635 | } | ||
636 | else | ||
637 | { | ||
638 | *pix = pal[*p & 0x1]; | ||
639 | p++; | ||
640 | } | ||
641 | pix++; | ||
642 | } | ||
643 | } | ||
644 | } | ||
645 | else if (bitcount == 4) | ||
646 | { | ||
647 | pstride = ((w + 7) / 8) * 4; | ||
648 | for (i = 0; i < h; i++) | ||
649 | { | ||
650 | pix = surface + (i * ie->w); | ||
651 | if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w); | ||
652 | if (!read_mem(map, fsize, &position, pixbuf, pstride)) goto close_file; | ||
653 | p = pixbuf; | ||
654 | if (i >= (int)ie->h) continue; | ||
655 | for (j = 0; j < w; j++) | ||
656 | { | ||
657 | if (j >= (int)ie->w) break; | ||
658 | if ((j & 0x1) == 0x1) | ||
659 | { | ||
660 | *pix = pal[*p & 0x0f]; | ||
661 | p++; | ||
662 | } | ||
663 | else | ||
664 | { | ||
665 | *pix = pal[*p >> 4]; | ||
666 | } | ||
667 | pix++; | ||
668 | } | ||
669 | } | ||
670 | } | ||
671 | else if (bitcount == 8) | ||
672 | { | ||
673 | pstride = ((w + 3) / 4) * 4; | ||
674 | for (i = 0; i < h; i++) | ||
675 | { | ||
676 | pix = surface + (i * ie->w); | ||
677 | if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w); | ||
678 | if (!read_mem(map, fsize, &position, pixbuf, pstride)) goto close_file; | ||
679 | p = pixbuf; | ||
680 | if (i >= (int)ie->h) continue; | ||
681 | for (j = 0; j < w; j++) | ||
682 | { | ||
683 | if (j >= (int)ie->w) break; | ||
684 | *pix = pal[*p]; | ||
685 | p++; | ||
686 | pix++; | ||
687 | } | ||
688 | } | ||
689 | } | ||
690 | else if (bitcount == 24) | ||
691 | { | ||
692 | pstride = w * 3; | ||
693 | for (i = 0; i < h; i++) | ||
694 | { | ||
695 | pix = surface + (i * ie->w); | ||
696 | if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w); | ||
697 | if (!read_mem(map, fsize, &position, pixbuf, pstride)) goto close_file; | ||
698 | p = pixbuf; | ||
699 | if (i >= (int)ie->h) continue; | ||
700 | for (j = 0; j < w; j++) | ||
701 | { | ||
702 | unsigned char a, r, g, b; | ||
703 | |||
704 | if (j >= (int)ie->w) break; | ||
705 | b = p[0]; | ||
706 | g = p[1]; | ||
707 | r = p[2]; | ||
708 | p += 3; | ||
709 | a = 0xff; | ||
710 | *pix = ARGB_JOIN(a, r, g, b); | ||
711 | pix++; | ||
712 | } | ||
713 | } | ||
714 | } | ||
715 | else if (bitcount == 32) | ||
716 | { | ||
717 | pstride = w * 4; | ||
718 | for (i = 0; i < h; i++) | ||
719 | { | ||
720 | pix = surface + (i * ie->w); | ||
721 | if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w); | ||
722 | if (!read_mem(map, fsize, &position, pixbuf, pstride)) goto close_file; | ||
723 | p = pixbuf; | ||
724 | if (i >= (int)ie->h) continue; | ||
725 | for (j = 0; j < w; j++) | ||
726 | { | ||
727 | unsigned char a, r, g, b; | ||
728 | |||
729 | if (j >= (int)ie->w) break; | ||
730 | b = p[0]; | ||
731 | g = p[1]; | ||
732 | r = p[2]; | ||
733 | a = p[3]; | ||
734 | p += 4; | ||
735 | if (a) none_zero_alpha = 1; | ||
736 | *pix = ARGB_JOIN(a, r, g, b); | ||
737 | pix++; | ||
738 | } | ||
739 | } | ||
740 | } | ||
741 | if (!none_zero_alpha) | ||
742 | { | ||
743 | if (!read_mem(map, fsize, &position, maskbuf, stride * 4 * h)) goto close_file; | ||
744 | // apply mask | ||
745 | pix = surface; | ||
746 | for (i = 0; i < h; i++) | ||
747 | { | ||
748 | unsigned char *m; | ||
749 | |||
750 | pix = surface + (i * ie->w); | ||
751 | if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w); | ||
752 | m = maskbuf + (stride * i * 4); | ||
753 | if (i >= (int)ie->h) continue; | ||
754 | for (j = 0; j < w; j++) | ||
755 | { | ||
756 | if (j >= (int)ie->w) break; | ||
757 | if (*m & (1 << (7 - (j & 0x7)))) | ||
758 | A_VAL(pix) = 0x00; | ||
759 | else | ||
760 | A_VAL(pix) = 0xff; | ||
761 | if ((j & 0x7) == 0x7) m++; | ||
762 | pix++; | ||
763 | } | ||
764 | } | ||
765 | } | ||
766 | |||
767 | eina_file_map_free(f, map); | ||
768 | eina_file_close(f); | ||
769 | |||
770 | evas_common_image_premul(ie); | ||
771 | *error = EVAS_LOAD_ERROR_NONE; | ||
772 | return EINA_TRUE; | ||
773 | |||
774 | close_file: | ||
775 | if (map) eina_file_map_free(f, map); | ||
776 | eina_file_close(f); | ||
777 | return EINA_FALSE; | ||
778 | } | ||
779 | |||
780 | static int | ||
781 | module_open(Evas_Module *em) | ||
782 | { | ||
783 | if (!em) return 0; | ||
784 | em->functions = (void *)(&evas_image_load_ico_func); | ||
785 | return 1; | ||
786 | } | ||
787 | |||
788 | static void | ||
789 | module_close(Evas_Module *em __UNUSED__) | ||
790 | { | ||
791 | } | ||
792 | |||
793 | static Evas_Module_Api evas_modapi = | ||
794 | { | ||
795 | EVAS_MODULE_API_VERSION, | ||
796 | "ico", | ||
797 | "none", | ||
798 | { | ||
799 | module_open, | ||
800 | module_close | ||
801 | } | ||
802 | }; | ||
803 | |||
804 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, ico); | ||
805 | |||
806 | #ifndef EVAS_STATIC_BUILD_ICO | ||
807 | EVAS_EINA_MODULE_DEFINE(image_loader, ico); | ||
808 | #endif | ||
diff --git a/libraries/evas/src/modules/loaders/jpeg/Makefile.am b/libraries/evas/src/modules/loaders/jpeg/Makefile.am deleted file mode 100644 index a7a19ab..0000000 --- a/libraries/evas/src/modules/loaders/jpeg/Makefile.am +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
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 | @EINA_CFLAGS@ \ | ||
11 | @evas_image_loader_jpeg_cflags@ \ | ||
12 | @EVIL_CFLAGS@ | ||
13 | |||
14 | if BUILD_LOADER_JPEG | ||
15 | if !EVAS_STATIC_BUILD_JPEG | ||
16 | |||
17 | pkgdir = $(libdir)/evas/modules/loaders/jpeg/$(MODULE_ARCH) | ||
18 | pkg_LTLIBRARIES = module.la | ||
19 | |||
20 | module_la_SOURCES = evas_image_load_jpeg.c | ||
21 | |||
22 | module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ @evas_image_loader_jpeg_libs@ $(top_builddir)/src/lib/libevas.la | ||
23 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
24 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
25 | |||
26 | else | ||
27 | |||
28 | noinst_LTLIBRARIES = libevas_loader_jpeg.la | ||
29 | libevas_loader_jpeg_la_SOURCES = evas_image_load_jpeg.c | ||
30 | libevas_loader_jpeg_la_LIBADD = @evas_image_loader_jpeg_libs@ | ||
31 | |||
32 | endif | ||
33 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/jpeg/Makefile.in b/libraries/evas/src/modules/loaders/jpeg/Makefile.in deleted file mode 100644 index 4945f85..0000000 --- a/libraries/evas/src/modules/loaders/jpeg/Makefile.in +++ /dev/null | |||
@@ -1,762 +0,0 @@ | |||
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/jpeg | ||
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_jpeg_la_DEPENDENCIES = | ||
83 | am__libevas_loader_jpeg_la_SOURCES_DIST = evas_image_load_jpeg.c | ||
84 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_TRUE@am_libevas_loader_jpeg_la_OBJECTS = evas_image_load_jpeg.lo | ||
85 | libevas_loader_jpeg_la_OBJECTS = $(am_libevas_loader_jpeg_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_TRUE@am_libevas_loader_jpeg_la_rpath = | ||
90 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
91 | am__module_la_SOURCES_DIST = evas_image_load_jpeg.c | ||
92 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_jpeg.lo | ||
93 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
94 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
95 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
96 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@am_module_la_rpath = \ | ||
98 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@ -rpath \ | ||
99 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@ $(pkgdir) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_jpeg_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_jpeg_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
185 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
186 | FGREP = @FGREP@ | ||
187 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
188 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
189 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
190 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
191 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
192 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
193 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
194 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
195 | GREP = @GREP@ | ||
196 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
197 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
198 | INSTALL = @INSTALL@ | ||
199 | INSTALL_DATA = @INSTALL_DATA@ | ||
200 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
201 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
202 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
203 | LD = @LD@ | ||
204 | LDFLAGS = @LDFLAGS@ | ||
205 | LIBOBJS = @LIBOBJS@ | ||
206 | LIBS = @LIBS@ | ||
207 | LIBTOOL = @LIBTOOL@ | ||
208 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
209 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
210 | LIPO = @LIPO@ | ||
211 | LN_S = @LN_S@ | ||
212 | LTLIBOBJS = @LTLIBOBJS@ | ||
213 | MAKEINFO = @MAKEINFO@ | ||
214 | MKDIR_P = @MKDIR_P@ | ||
215 | MODULE_ARCH = @MODULE_ARCH@ | ||
216 | NM = @NM@ | ||
217 | NMEDIT = @NMEDIT@ | ||
218 | OBJC = @OBJC@ | ||
219 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
220 | OBJCFLAGS = @OBJCFLAGS@ | ||
221 | OBJDUMP = @OBJDUMP@ | ||
222 | OBJEXT = @OBJEXT@ | ||
223 | OTOOL = @OTOOL@ | ||
224 | OTOOL64 = @OTOOL64@ | ||
225 | PACKAGE = @PACKAGE@ | ||
226 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
227 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
228 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
229 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
230 | PACKAGE_URL = @PACKAGE_URL@ | ||
231 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
232 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
233 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
234 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
235 | PKG_CONFIG = @PKG_CONFIG@ | ||
236 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
237 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
238 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
239 | PNG_LIBS = @PNG_LIBS@ | ||
240 | RANLIB = @RANLIB@ | ||
241 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
242 | SDL_LIBS = @SDL_LIBS@ | ||
243 | SED = @SED@ | ||
244 | SET_MAKE = @SET_MAKE@ | ||
245 | SHELL = @SHELL@ | ||
246 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
247 | STRIP = @STRIP@ | ||
248 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
249 | SVG_LIBS = @SVG_LIBS@ | ||
250 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
251 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
252 | VERSION = @VERSION@ | ||
253 | VMAJ = @VMAJ@ | ||
254 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
255 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
256 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
257 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
258 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
259 | XCB_LIBS = @XCB_LIBS@ | ||
260 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
261 | XEXT_LIBS = @XEXT_LIBS@ | ||
262 | XMKMF = @XMKMF@ | ||
263 | X_CFLAGS = @X_CFLAGS@ | ||
264 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
265 | X_LIBS = @X_LIBS@ | ||
266 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
267 | abs_builddir = @abs_builddir@ | ||
268 | abs_srcdir = @abs_srcdir@ | ||
269 | abs_top_builddir = @abs_top_builddir@ | ||
270 | abs_top_srcdir = @abs_top_srcdir@ | ||
271 | ac_ct_CC = @ac_ct_CC@ | ||
272 | ac_ct_CXX = @ac_ct_CXX@ | ||
273 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
274 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
275 | altivec_cflags = @altivec_cflags@ | ||
276 | am__include = @am__include@ | ||
277 | am__leading_dot = @am__leading_dot@ | ||
278 | am__quote = @am__quote@ | ||
279 | am__tar = @am__tar@ | ||
280 | am__untar = @am__untar@ | ||
281 | bindir = @bindir@ | ||
282 | build = @build@ | ||
283 | build_alias = @build_alias@ | ||
284 | build_cpu = @build_cpu@ | ||
285 | build_os = @build_os@ | ||
286 | build_vendor = @build_vendor@ | ||
287 | builddir = @builddir@ | ||
288 | datadir = @datadir@ | ||
289 | datarootdir = @datarootdir@ | ||
290 | dlopen_libs = @dlopen_libs@ | ||
291 | docdir = @docdir@ | ||
292 | dvidir = @dvidir@ | ||
293 | edje_cc = @edje_cc@ | ||
294 | efl_doxygen = @efl_doxygen@ | ||
295 | efl_have_doxygen = @efl_have_doxygen@ | ||
296 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
297 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
298 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
299 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
300 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
301 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
302 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
303 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
304 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
305 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
306 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
307 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
308 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
309 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
310 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
311 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
312 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
313 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
314 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
315 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
316 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
317 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
318 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
319 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
320 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
321 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
322 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
323 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
324 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
325 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
326 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
327 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
328 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
329 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
330 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
331 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
332 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
333 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
334 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
335 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
336 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
337 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
338 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
339 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
340 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
341 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
342 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
343 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
344 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
345 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
346 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
347 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
348 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
349 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
350 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
351 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
352 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
353 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
354 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
355 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
356 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
357 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
358 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
359 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
360 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
361 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
362 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
363 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
364 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
365 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
366 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
367 | exec_prefix = @exec_prefix@ | ||
368 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
369 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
370 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
371 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
372 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
373 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
374 | have_lcov = @have_lcov@ | ||
375 | host = @host@ | ||
376 | host_alias = @host_alias@ | ||
377 | host_cpu = @host_cpu@ | ||
378 | host_os = @host_os@ | ||
379 | host_vendor = @host_vendor@ | ||
380 | htmldir = @htmldir@ | ||
381 | includedir = @includedir@ | ||
382 | infodir = @infodir@ | ||
383 | install_sh = @install_sh@ | ||
384 | libdir = @libdir@ | ||
385 | libexecdir = @libexecdir@ | ||
386 | localedir = @localedir@ | ||
387 | localstatedir = @localstatedir@ | ||
388 | lt_ECHO = @lt_ECHO@ | ||
389 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
390 | mandir = @mandir@ | ||
391 | mkdir_p = @mkdir_p@ | ||
392 | oldincludedir = @oldincludedir@ | ||
393 | pdfdir = @pdfdir@ | ||
394 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
395 | prefix = @prefix@ | ||
396 | program_transform_name = @program_transform_name@ | ||
397 | psdir = @psdir@ | ||
398 | pthread_cflags = @pthread_cflags@ | ||
399 | pthread_libs = @pthread_libs@ | ||
400 | release_info = @release_info@ | ||
401 | requirement_evas = @requirement_evas@ | ||
402 | sbindir = @sbindir@ | ||
403 | sharedstatedir = @sharedstatedir@ | ||
404 | srcdir = @srcdir@ | ||
405 | sysconfdir = @sysconfdir@ | ||
406 | target_alias = @target_alias@ | ||
407 | top_build_prefix = @top_build_prefix@ | ||
408 | top_builddir = @top_builddir@ | ||
409 | top_srcdir = @top_srcdir@ | ||
410 | version_info = @version_info@ | ||
411 | MAINTAINERCLEANFILES = Makefile.in | ||
412 | AM_CPPFLAGS = \ | ||
413 | -I. \ | ||
414 | -I$(top_srcdir)/src/lib \ | ||
415 | -I$(top_srcdir)/src/lib/include \ | ||
416 | @FREETYPE_CFLAGS@ \ | ||
417 | @PIXMAN_CFLAGS@ \ | ||
418 | @EINA_CFLAGS@ \ | ||
419 | @evas_image_loader_jpeg_cflags@ \ | ||
420 | @EVIL_CFLAGS@ | ||
421 | |||
422 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@pkgdir = $(libdir)/evas/modules/loaders/jpeg/$(MODULE_ARCH) | ||
423 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@pkg_LTLIBRARIES = module.la | ||
424 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@module_la_SOURCES = evas_image_load_jpeg.c | ||
425 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ @evas_image_loader_jpeg_libs@ $(top_builddir)/src/lib/libevas.la | ||
426 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
427 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
428 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_TRUE@noinst_LTLIBRARIES = libevas_loader_jpeg.la | ||
429 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_TRUE@libevas_loader_jpeg_la_SOURCES = evas_image_load_jpeg.c | ||
430 | @BUILD_LOADER_JPEG_TRUE@@EVAS_STATIC_BUILD_JPEG_TRUE@libevas_loader_jpeg_la_LIBADD = @evas_image_loader_jpeg_libs@ | ||
431 | all: all-am | ||
432 | |||
433 | .SUFFIXES: | ||
434 | .SUFFIXES: .c .lo .o .obj | ||
435 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
436 | @for dep in $?; do \ | ||
437 | case '$(am__configure_deps)' in \ | ||
438 | *$$dep*) \ | ||
439 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
440 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
441 | exit 1;; \ | ||
442 | esac; \ | ||
443 | done; \ | ||
444 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/jpeg/Makefile'; \ | ||
445 | $(am__cd) $(top_srcdir) && \ | ||
446 | $(AUTOMAKE) --gnu src/modules/loaders/jpeg/Makefile | ||
447 | .PRECIOUS: Makefile | ||
448 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
449 | @case '$?' in \ | ||
450 | *config.status*) \ | ||
451 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
452 | *) \ | ||
453 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
454 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
455 | esac; | ||
456 | |||
457 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
458 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
459 | |||
460 | $(top_srcdir)/configure: $(am__configure_deps) | ||
461 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
462 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
463 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
464 | $(am__aclocal_m4_deps): | ||
465 | |||
466 | clean-noinstLTLIBRARIES: | ||
467 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) | ||
468 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | ||
469 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
470 | test "$$dir" != "$$p" || dir=.; \ | ||
471 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
472 | rm -f "$${dir}/so_locations"; \ | ||
473 | done | ||
474 | install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) | ||
475 | @$(NORMAL_INSTALL) | ||
476 | test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)" | ||
477 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
478 | list2=; for p in $$list; do \ | ||
479 | if test -f $$p; then \ | ||
480 | list2="$$list2 $$p"; \ | ||
481 | else :; fi; \ | ||
482 | done; \ | ||
483 | test -z "$$list2" || { \ | ||
484 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ | ||
485 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ | ||
486 | } | ||
487 | |||
488 | uninstall-pkgLTLIBRARIES: | ||
489 | @$(NORMAL_UNINSTALL) | ||
490 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
491 | for p in $$list; do \ | ||
492 | $(am__strip_dir) \ | ||
493 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ | ||
494 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ | ||
495 | done | ||
496 | |||
497 | clean-pkgLTLIBRARIES: | ||
498 | -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) | ||
499 | @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \ | ||
500 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
501 | test "$$dir" != "$$p" || dir=.; \ | ||
502 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
503 | rm -f "$${dir}/so_locations"; \ | ||
504 | done | ||
505 | libevas_loader_jpeg.la: $(libevas_loader_jpeg_la_OBJECTS) $(libevas_loader_jpeg_la_DEPENDENCIES) | ||
506 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_jpeg_la_rpath) $(libevas_loader_jpeg_la_OBJECTS) $(libevas_loader_jpeg_la_LIBADD) $(LIBS) | ||
507 | module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES) | ||
508 | $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS) | ||
509 | |||
510 | mostlyclean-compile: | ||
511 | -rm -f *.$(OBJEXT) | ||
512 | |||
513 | distclean-compile: | ||
514 | -rm -f *.tab.c | ||
515 | |||
516 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_jpeg.Plo@am__quote@ | ||
517 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_jpeg.Plo@am__quote@ | ||
518 | |||
519 | .c.o: | ||
520 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
521 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
522 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
523 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
524 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
525 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
526 | |||
527 | .c.obj: | ||
528 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
529 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
530 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
531 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
532 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
533 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
534 | |||
535 | .c.lo: | ||
536 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
537 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
538 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
539 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
540 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
541 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
542 | |||
543 | module_la-evas_image_load_jpeg.lo: evas_image_load_jpeg.c | ||
544 | @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_jpeg.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_jpeg.Tpo -c -o module_la-evas_image_load_jpeg.lo `test -f 'evas_image_load_jpeg.c' || echo '$(srcdir)/'`evas_image_load_jpeg.c | ||
545 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_jpeg.Tpo $(DEPDIR)/module_la-evas_image_load_jpeg.Plo | ||
546 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
547 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_jpeg.c' object='module_la-evas_image_load_jpeg.lo' libtool=yes @AMDEPBACKSLASH@ | ||
548 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
549 | @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_jpeg.lo `test -f 'evas_image_load_jpeg.c' || echo '$(srcdir)/'`evas_image_load_jpeg.c | ||
550 | |||
551 | mostlyclean-libtool: | ||
552 | -rm -f *.lo | ||
553 | |||
554 | clean-libtool: | ||
555 | -rm -rf .libs _libs | ||
556 | |||
557 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
558 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
559 | unique=`for i in $$list; do \ | ||
560 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
561 | done | \ | ||
562 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
563 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
564 | mkid -fID $$unique | ||
565 | tags: TAGS | ||
566 | |||
567 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
568 | $(TAGS_FILES) $(LISP) | ||
569 | set x; \ | ||
570 | here=`pwd`; \ | ||
571 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
572 | unique=`for i in $$list; do \ | ||
573 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
574 | done | \ | ||
575 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
576 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
577 | shift; \ | ||
578 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
579 | test -n "$$unique" || unique=$$empty_fix; \ | ||
580 | if test $$# -gt 0; then \ | ||
581 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
582 | "$$@" $$unique; \ | ||
583 | else \ | ||
584 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
585 | $$unique; \ | ||
586 | fi; \ | ||
587 | fi | ||
588 | ctags: CTAGS | ||
589 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
590 | $(TAGS_FILES) $(LISP) | ||
591 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
592 | unique=`for i in $$list; do \ | ||
593 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
594 | done | \ | ||
595 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
596 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
597 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
598 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
599 | $$unique | ||
600 | |||
601 | GTAGS: | ||
602 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
603 | && $(am__cd) $(top_srcdir) \ | ||
604 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
605 | |||
606 | distclean-tags: | ||
607 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
608 | |||
609 | distdir: $(DISTFILES) | ||
610 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
611 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
612 | list='$(DISTFILES)'; \ | ||
613 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
614 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
615 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
616 | case $$dist_files in \ | ||
617 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
618 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
619 | sort -u` ;; \ | ||
620 | esac; \ | ||
621 | for file in $$dist_files; do \ | ||
622 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
623 | if test -d $$d/$$file; then \ | ||
624 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
625 | if test -d "$(distdir)/$$file"; then \ | ||
626 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
627 | fi; \ | ||
628 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
629 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
630 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
631 | fi; \ | ||
632 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
633 | else \ | ||
634 | test -f "$(distdir)/$$file" \ | ||
635 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
636 | || exit 1; \ | ||
637 | fi; \ | ||
638 | done | ||
639 | check-am: all-am | ||
640 | check: check-am | ||
641 | all-am: Makefile $(LTLIBRARIES) | ||
642 | installdirs: | ||
643 | for dir in "$(DESTDIR)$(pkgdir)"; do \ | ||
644 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
645 | done | ||
646 | install: install-am | ||
647 | install-exec: install-exec-am | ||
648 | install-data: install-data-am | ||
649 | uninstall: uninstall-am | ||
650 | |||
651 | install-am: all-am | ||
652 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
653 | |||
654 | installcheck: installcheck-am | ||
655 | install-strip: | ||
656 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
657 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
658 | `test -z '$(STRIP)' || \ | ||
659 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
660 | mostlyclean-generic: | ||
661 | |||
662 | clean-generic: | ||
663 | |||
664 | distclean-generic: | ||
665 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
666 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
667 | |||
668 | maintainer-clean-generic: | ||
669 | @echo "This command is intended for maintainers to use" | ||
670 | @echo "it deletes files that may require special tools to rebuild." | ||
671 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
672 | clean: clean-am | ||
673 | |||
674 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ | ||
675 | clean-pkgLTLIBRARIES mostlyclean-am | ||
676 | |||
677 | distclean: distclean-am | ||
678 | -rm -rf ./$(DEPDIR) | ||
679 | -rm -f Makefile | ||
680 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
681 | distclean-tags | ||
682 | |||
683 | dvi: dvi-am | ||
684 | |||
685 | dvi-am: | ||
686 | |||
687 | html: html-am | ||
688 | |||
689 | html-am: | ||
690 | |||
691 | info: info-am | ||
692 | |||
693 | info-am: | ||
694 | |||
695 | install-data-am: install-pkgLTLIBRARIES | ||
696 | |||
697 | install-dvi: install-dvi-am | ||
698 | |||
699 | install-dvi-am: | ||
700 | |||
701 | install-exec-am: | ||
702 | |||
703 | install-html: install-html-am | ||
704 | |||
705 | install-html-am: | ||
706 | |||
707 | install-info: install-info-am | ||
708 | |||
709 | install-info-am: | ||
710 | |||
711 | install-man: | ||
712 | |||
713 | install-pdf: install-pdf-am | ||
714 | |||
715 | install-pdf-am: | ||
716 | |||
717 | install-ps: install-ps-am | ||
718 | |||
719 | install-ps-am: | ||
720 | |||
721 | installcheck-am: | ||
722 | |||
723 | maintainer-clean: maintainer-clean-am | ||
724 | -rm -rf ./$(DEPDIR) | ||
725 | -rm -f Makefile | ||
726 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
727 | |||
728 | mostlyclean: mostlyclean-am | ||
729 | |||
730 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
731 | mostlyclean-libtool | ||
732 | |||
733 | pdf: pdf-am | ||
734 | |||
735 | pdf-am: | ||
736 | |||
737 | ps: ps-am | ||
738 | |||
739 | ps-am: | ||
740 | |||
741 | uninstall-am: uninstall-pkgLTLIBRARIES | ||
742 | |||
743 | .MAKE: install-am install-strip | ||
744 | |||
745 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
746 | clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \ | ||
747 | ctags distclean distclean-compile distclean-generic \ | ||
748 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
749 | html-am info info-am install install-am install-data \ | ||
750 | install-data-am install-dvi install-dvi-am install-exec \ | ||
751 | install-exec-am install-html install-html-am install-info \ | ||
752 | install-info-am install-man install-pdf install-pdf-am \ | ||
753 | install-pkgLTLIBRARIES install-ps install-ps-am install-strip \ | ||
754 | installcheck installcheck-am installdirs maintainer-clean \ | ||
755 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
756 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
757 | tags uninstall uninstall-am uninstall-pkgLTLIBRARIES | ||
758 | |||
759 | |||
760 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
761 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
762 | .NOEXPORT: | ||
diff --git a/libraries/evas/src/modules/loaders/jpeg/evas_image_load_jpeg.c b/libraries/evas/src/modules/loaders/jpeg/evas_image_load_jpeg.c deleted file mode 100644 index 73a7310..0000000 --- a/libraries/evas/src/modules/loaders/jpeg/evas_image_load_jpeg.c +++ /dev/null | |||
@@ -1,1275 +0,0 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
5 | #include <stdio.h> | ||
6 | |||
7 | #ifdef HAVE_EVIL | ||
8 | # include <Evil.h> | ||
9 | #endif | ||
10 | |||
11 | #include <setjmp.h> | ||
12 | #include <jpeglib.h> | ||
13 | |||
14 | #include "evas_common.h" | ||
15 | #include "evas_private.h" | ||
16 | |||
17 | |||
18 | typedef struct _JPEG_error_mgr *emptr; | ||
19 | struct _JPEG_error_mgr | ||
20 | { | ||
21 | struct jpeg_error_mgr pub; | ||
22 | jmp_buf setjmp_buffer; | ||
23 | }; | ||
24 | |||
25 | static void _JPEGFatalErrorHandler(j_common_ptr cinfo); | ||
26 | static void _JPEGErrorHandler(j_common_ptr cinfo); | ||
27 | static void _JPEGErrorHandler2(j_common_ptr cinfo, int msg_level); | ||
28 | |||
29 | static Eina_Bool evas_image_load_file_head_jpeg_internal(Image_Entry *ie, | ||
30 | void *map, | ||
31 | size_t len, | ||
32 | int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
33 | static Eina_Bool evas_image_load_file_data_jpeg_internal(Image_Entry *ie, | ||
34 | void *map, | ||
35 | size_t len, | ||
36 | int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
37 | #if 0 /* not used at the moment */ | ||
38 | static int evas_image_load_file_data_jpeg_alpha_internal(Image_Entry *ie, FILE *f) EINA_ARG_NONNULL(1, 2); | ||
39 | #endif | ||
40 | |||
41 | static Eina_Bool evas_image_load_file_head_jpeg(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
42 | static Eina_Bool evas_image_load_file_data_jpeg(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
43 | |||
44 | static Evas_Image_Load_Func evas_image_load_jpeg_func = | ||
45 | { | ||
46 | EINA_TRUE, | ||
47 | evas_image_load_file_head_jpeg, | ||
48 | evas_image_load_file_data_jpeg, | ||
49 | NULL, | ||
50 | EINA_TRUE | ||
51 | }; | ||
52 | |||
53 | |||
54 | static void | ||
55 | _JPEGFatalErrorHandler(j_common_ptr cinfo) | ||
56 | { | ||
57 | emptr errmgr; | ||
58 | |||
59 | errmgr = (emptr) cinfo->err; | ||
60 | /* cinfo->err->output_message(cinfo);*/ | ||
61 | longjmp(errmgr->setjmp_buffer, 1); | ||
62 | return; | ||
63 | } | ||
64 | |||
65 | static void | ||
66 | _JPEGErrorHandler(j_common_ptr cinfo __UNUSED__) | ||
67 | { | ||
68 | /* emptr errmgr; */ | ||
69 | |||
70 | /* errmgr = (emptr) cinfo->err; */ | ||
71 | /* cinfo->err->output_message(cinfo);*/ | ||
72 | /* longjmp(errmgr->setjmp_buffer, 1);*/ | ||
73 | return; | ||
74 | } | ||
75 | |||
76 | static void | ||
77 | _JPEGErrorHandler2(j_common_ptr cinfo __UNUSED__, int msg_level __UNUSED__) | ||
78 | { | ||
79 | /* emptr errmgr; */ | ||
80 | |||
81 | /* errmgr = (emptr) cinfo->err; */ | ||
82 | /* cinfo->err->output_message(cinfo);*/ | ||
83 | /* longjmp(errmgr->setjmp_buffer, 1);*/ | ||
84 | return; | ||
85 | } | ||
86 | |||
87 | struct jpeg_membuf_src | ||
88 | { | ||
89 | struct jpeg_source_mgr pub; | ||
90 | |||
91 | const unsigned char *buf; | ||
92 | size_t len; | ||
93 | struct jpeg_membuf_src *self; | ||
94 | }; | ||
95 | |||
96 | static void | ||
97 | _evas_jpeg_membuf_src_init(j_decompress_ptr cinfo __UNUSED__) | ||
98 | { | ||
99 | } | ||
100 | |||
101 | static boolean | ||
102 | _evas_jpeg_membuf_src_fill(j_decompress_ptr cinfo) | ||
103 | { | ||
104 | static const JOCTET jpeg_eoi[2] = { 0xFF, JPEG_EOI }; | ||
105 | struct jpeg_membuf_src *src = (struct jpeg_membuf_src *)cinfo->src; | ||
106 | |||
107 | src->pub.bytes_in_buffer = sizeof(jpeg_eoi); | ||
108 | src->pub.next_input_byte = jpeg_eoi; | ||
109 | |||
110 | return TRUE; | ||
111 | } | ||
112 | |||
113 | static void | ||
114 | _evas_jpeg_membuf_src_skip(j_decompress_ptr cinfo, | ||
115 | long num_bytes) | ||
116 | { | ||
117 | struct jpeg_membuf_src *src = (struct jpeg_membuf_src *)cinfo->src; | ||
118 | |||
119 | if ((((long)src->pub.bytes_in_buffer - (long)src->len) > num_bytes) || | ||
120 | ((long)src->pub.bytes_in_buffer < num_bytes)) | ||
121 | { | ||
122 | (*(cinfo)->err->error_exit) ((j_common_ptr) (cinfo)); | ||
123 | return; | ||
124 | } | ||
125 | src->pub.bytes_in_buffer -= num_bytes; | ||
126 | src->pub.next_input_byte += num_bytes; | ||
127 | } | ||
128 | |||
129 | static void | ||
130 | _evas_jpeg_membuf_src_term(j_decompress_ptr cinfo) | ||
131 | { | ||
132 | struct jpeg_membuf_src *src = (struct jpeg_membuf_src *)cinfo->src; | ||
133 | if (!src) return; | ||
134 | free(src); | ||
135 | cinfo->src = NULL; | ||
136 | } | ||
137 | |||
138 | static int | ||
139 | _evas_jpeg_membuf_src(j_decompress_ptr cinfo, | ||
140 | void *map, size_t length) | ||
141 | { | ||
142 | struct jpeg_membuf_src *src; | ||
143 | |||
144 | src = calloc(1, sizeof(*src)); | ||
145 | if (!src) | ||
146 | return -1; | ||
147 | |||
148 | src->self = src; | ||
149 | |||
150 | cinfo->src = &src->pub; | ||
151 | src->buf = map; | ||
152 | src->len = length; | ||
153 | src->pub.init_source = _evas_jpeg_membuf_src_init; | ||
154 | src->pub.fill_input_buffer = _evas_jpeg_membuf_src_fill; | ||
155 | src->pub.skip_input_data = _evas_jpeg_membuf_src_skip; | ||
156 | src->pub.resync_to_restart = jpeg_resync_to_restart; | ||
157 | src->pub.term_source = _evas_jpeg_membuf_src_term; | ||
158 | src->pub.bytes_in_buffer = src->len; | ||
159 | src->pub.next_input_byte = src->buf; | ||
160 | |||
161 | return 0; | ||
162 | } | ||
163 | |||
164 | /*! Magic number for EXIF header & App1*/ | ||
165 | static const unsigned char ExifHeader[] = {0x45, 0x78, 0x69, 0x66, 0x00, 0x00}; | ||
166 | static const unsigned char App1[] = {0xff, 0xe1}; | ||
167 | typedef enum { | ||
168 | EXIF_BYTE_ALIGN_II, | ||
169 | EXIF_BYTE_ALIGN_MM | ||
170 | } ExifByteAlign; | ||
171 | |||
172 | static int | ||
173 | _get_orientation(void *map, size_t length) | ||
174 | { | ||
175 | char *buf; | ||
176 | char orientation[2]; | ||
177 | ExifByteAlign byte_align; | ||
178 | unsigned int num_directory = 0; | ||
179 | unsigned int i, j; | ||
180 | int direction; | ||
181 | |||
182 | /* open file and get 22 byte frome file */ | ||
183 | if (!map) return 0; | ||
184 | /* 1. read 22byte */ | ||
185 | if (length < 22) return 0; | ||
186 | buf = (char *)map; | ||
187 | |||
188 | /* 2. check 2,3 bypte with APP1(0xFFE1) */ | ||
189 | if (memcmp(buf + 2, App1, sizeof (App1))) return 0; | ||
190 | |||
191 | /* 3. check 6~11bype with Exif Header (0x45786966 0000) */ | ||
192 | if (memcmp(buf + 6, ExifHeader, sizeof (ExifHeader))) return 0; | ||
193 | |||
194 | /* 4. get 12&13 byte get info of "II(0x4949)" or "MM(0x4d4d)" */ | ||
195 | /* 5. get [20]&[21] get directory entry # */ | ||
196 | if (!strncmp(buf + 12, "MM", 2)) | ||
197 | { | ||
198 | byte_align = EXIF_BYTE_ALIGN_MM; | ||
199 | num_directory = ((*(buf + 20) << 8) + *(buf + 21)); | ||
200 | orientation[0] = 0x01; | ||
201 | orientation[1] = 0x12; | ||
202 | } | ||
203 | else if (!strncmp(buf + 12, "II", 2)) | ||
204 | { | ||
205 | byte_align = EXIF_BYTE_ALIGN_II; | ||
206 | num_directory = ((*(buf + 21) << 8) + *(buf + 20)); | ||
207 | orientation[0] = 0x12; | ||
208 | orientation[1] = 0x01; | ||
209 | } | ||
210 | else return 0; | ||
211 | |||
212 | buf = map + 22; | ||
213 | |||
214 | if (length < (12 * num_directory + 22)) return 0; | ||
215 | |||
216 | j = 0; | ||
217 | |||
218 | for (i = 0; i < num_directory; i++ ) | ||
219 | { | ||
220 | if (!strncmp(buf + j, orientation, 2)) | ||
221 | { | ||
222 | /*get orientation tag */ | ||
223 | if (byte_align == EXIF_BYTE_ALIGN_MM) | ||
224 | direction = *(buf+ j + 11); | ||
225 | else direction = *(buf+ j + 8); | ||
226 | switch (direction) | ||
227 | { | ||
228 | case 3: | ||
229 | case 4: | ||
230 | return 180; | ||
231 | case 6: | ||
232 | case 7: | ||
233 | return 90; | ||
234 | case 5: | ||
235 | case 8: | ||
236 | return 270; | ||
237 | default: | ||
238 | return 0; | ||
239 | } | ||
240 | } | ||
241 | else | ||
242 | j = j + 12; | ||
243 | } | ||
244 | return 0; | ||
245 | } | ||
246 | |||
247 | static Eina_Bool | ||
248 | evas_image_load_file_head_jpeg_internal(Image_Entry *ie, | ||
249 | void *map, size_t length, | ||
250 | int *error) | ||
251 | { | ||
252 | unsigned int w, h, scalew, scaleh; | ||
253 | struct jpeg_decompress_struct cinfo; | ||
254 | struct _JPEG_error_mgr jerr; | ||
255 | |||
256 | /* for rotation decoding */ | ||
257 | int degree = 0; | ||
258 | Eina_Bool change_wh = EINA_FALSE; | ||
259 | unsigned int load_opts_w = 0, load_opts_h = 0; | ||
260 | |||
261 | cinfo.err = jpeg_std_error(&(jerr.pub)); | ||
262 | jerr.pub.error_exit = _JPEGFatalErrorHandler; | ||
263 | jerr.pub.emit_message = _JPEGErrorHandler2; | ||
264 | jerr.pub.output_message = _JPEGErrorHandler; | ||
265 | if (setjmp(jerr.setjmp_buffer)) | ||
266 | { | ||
267 | jpeg_destroy_decompress(&cinfo); | ||
268 | _evas_jpeg_membuf_src_term(&cinfo); | ||
269 | if (cinfo.saw_JFIF_marker) | ||
270 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
271 | else | ||
272 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
273 | return EINA_FALSE; | ||
274 | } | ||
275 | jpeg_create_decompress(&cinfo); | ||
276 | |||
277 | if (_evas_jpeg_membuf_src(&cinfo, map, length)) | ||
278 | { | ||
279 | jpeg_destroy_decompress(&cinfo); | ||
280 | _evas_jpeg_membuf_src_term(&cinfo); | ||
281 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
282 | return EINA_FALSE; | ||
283 | } | ||
284 | |||
285 | jpeg_read_header(&cinfo, TRUE); | ||
286 | cinfo.do_fancy_upsampling = FALSE; | ||
287 | cinfo.do_block_smoothing = FALSE; | ||
288 | cinfo.dct_method = JDCT_ISLOW; // JDCT_FLOAT JDCT_IFAST(quality loss) | ||
289 | cinfo.dither_mode = JDITHER_ORDERED; | ||
290 | jpeg_start_decompress(&cinfo); | ||
291 | |||
292 | /* rotation decoding */ | ||
293 | if (ie->load_opts.orientation) | ||
294 | { | ||
295 | degree = _get_orientation(map, length); | ||
296 | if (degree != 0) | ||
297 | { | ||
298 | ie->load_opts.degree = degree; | ||
299 | ie->flags.rotated = EINA_TRUE; | ||
300 | |||
301 | if (degree == 90 || degree == 270) | ||
302 | change_wh = EINA_TRUE; | ||
303 | } | ||
304 | |||
305 | } | ||
306 | |||
307 | /* head decoding */ | ||
308 | w = cinfo.output_width; | ||
309 | h = cinfo.output_height; | ||
310 | if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) || | ||
311 | (IMG_TOO_BIG(w, h))) | ||
312 | { | ||
313 | jpeg_destroy_decompress(&cinfo); | ||
314 | _evas_jpeg_membuf_src_term(&cinfo); | ||
315 | if (IMG_TOO_BIG(w, h)) | ||
316 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
317 | else | ||
318 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
319 | return EINA_FALSE; | ||
320 | } | ||
321 | if (ie->load_opts.scale_down_by > 1) | ||
322 | { | ||
323 | w /= ie->load_opts.scale_down_by; | ||
324 | h /= ie->load_opts.scale_down_by; | ||
325 | } | ||
326 | else if (ie->load_opts.dpi > 0.0) | ||
327 | { | ||
328 | w = (w * ie->load_opts.dpi) / 90.0; | ||
329 | h = (h * ie->load_opts.dpi) / 90.0; | ||
330 | } | ||
331 | else if ((ie->load_opts.w > 0) && (ie->load_opts.h > 0)) | ||
332 | { | ||
333 | unsigned int w2 = w, h2 = h; | ||
334 | /* user set load_opts' w,h on the assumption | ||
335 | that image already rotated according to it's orientation info */ | ||
336 | if (change_wh) | ||
337 | { | ||
338 | load_opts_w = ie->load_opts.w; | ||
339 | load_opts_h = ie->load_opts.h; | ||
340 | ie->load_opts.w = load_opts_h; | ||
341 | ie->load_opts.h = load_opts_w; | ||
342 | } | ||
343 | |||
344 | if (ie->load_opts.w > 0) | ||
345 | { | ||
346 | w2 = ie->load_opts.w; | ||
347 | h2 = (ie->load_opts.w * h) / w; | ||
348 | if ((ie->load_opts.h > 0) && (h2 > ie->load_opts.h)) | ||
349 | { | ||
350 | unsigned int w3; | ||
351 | h2 = ie->load_opts.h; | ||
352 | w3 = (ie->load_opts.h * w) / h; | ||
353 | if (w3 > w2) | ||
354 | w2 = w3; | ||
355 | } | ||
356 | } | ||
357 | else if (ie->load_opts.h > 0) | ||
358 | { | ||
359 | h2 = ie->load_opts.h; | ||
360 | w2 = (ie->load_opts.h * w) / h; | ||
361 | } | ||
362 | w = w2; | ||
363 | h = h2; | ||
364 | if (change_wh) | ||
365 | { | ||
366 | ie->load_opts.w = load_opts_w; | ||
367 | ie->load_opts.h = load_opts_h; | ||
368 | } | ||
369 | } | ||
370 | if (w < 1) w = 1; | ||
371 | if (h < 1) h = 1; | ||
372 | |||
373 | if ((w != cinfo.output_width) || (h != cinfo.output_height)) | ||
374 | { | ||
375 | scalew = cinfo.output_width / w; | ||
376 | scaleh = cinfo.output_height / h; | ||
377 | |||
378 | ie->scale = scalew; | ||
379 | if (scaleh < scalew) ie->scale = scaleh; | ||
380 | |||
381 | if (ie->scale > 8) ie->scale = 8; | ||
382 | else if (ie->scale < 1) ie->scale = 1; | ||
383 | |||
384 | if (ie->scale == 3) ie->scale = 2; | ||
385 | else if (ie->scale == 5) ie->scale = 4; | ||
386 | else if (ie->scale == 6) ie->scale = 4; | ||
387 | else if (ie->scale == 7) ie->scale = 4; | ||
388 | } | ||
389 | |||
390 | if (ie->scale > 1) | ||
391 | { | ||
392 | jpeg_destroy_decompress(&cinfo); | ||
393 | _evas_jpeg_membuf_src_term(&cinfo); | ||
394 | jpeg_create_decompress(&cinfo); | ||
395 | |||
396 | if (_evas_jpeg_membuf_src(&cinfo, map, length)) | ||
397 | { | ||
398 | jpeg_destroy_decompress(&cinfo); | ||
399 | _evas_jpeg_membuf_src_term(&cinfo); | ||
400 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
401 | return EINA_FALSE; | ||
402 | } | ||
403 | |||
404 | jpeg_read_header(&cinfo, TRUE); | ||
405 | cinfo.do_fancy_upsampling = FALSE; | ||
406 | cinfo.do_block_smoothing = FALSE; | ||
407 | cinfo.scale_num = 1; | ||
408 | cinfo.scale_denom = ie->scale; | ||
409 | jpeg_calc_output_dimensions(&(cinfo)); | ||
410 | jpeg_start_decompress(&cinfo); | ||
411 | } | ||
412 | |||
413 | ie->w = cinfo.output_width; | ||
414 | ie->h = cinfo.output_height; | ||
415 | |||
416 | // be nice and clip region to image. if its totally outside, fail load | ||
417 | if ((ie->load_opts.region.w > 0) && (ie->load_opts.region.h > 0)) | ||
418 | { | ||
419 | unsigned int load_region_x = 0, load_region_y = 0; | ||
420 | unsigned int load_region_w = 0, load_region_h = 0; | ||
421 | if (ie->flags.rotated) | ||
422 | { | ||
423 | load_region_x = ie->load_opts.region.x; | ||
424 | load_region_y = ie->load_opts.region.y; | ||
425 | load_region_w = ie->load_opts.region.w; | ||
426 | load_region_h = ie->load_opts.region.h; | ||
427 | |||
428 | switch (degree) | ||
429 | { | ||
430 | case 90: | ||
431 | ie->load_opts.region.x = load_region_y; | ||
432 | ie->load_opts.region.y = h - (load_region_x + load_region_w); | ||
433 | ie->load_opts.region.w = load_region_h; | ||
434 | ie->load_opts.region.h = load_region_w; | ||
435 | break; | ||
436 | case 180: | ||
437 | ie->load_opts.region.x = w - (load_region_x+ load_region_w); | ||
438 | ie->load_opts.region.y = h - (load_region_y + load_region_h); | ||
439 | |||
440 | break; | ||
441 | case 270: | ||
442 | ie->load_opts.region.x = w - (load_region_y + load_region_h); | ||
443 | ie->load_opts.region.y = load_region_x; | ||
444 | ie->load_opts.region.w = load_region_h; | ||
445 | ie->load_opts.region.h = load_region_w; | ||
446 | break; | ||
447 | default: | ||
448 | break; | ||
449 | } | ||
450 | |||
451 | } | ||
452 | RECTS_CLIP_TO_RECT(ie->load_opts.region.x, ie->load_opts.region.y, | ||
453 | ie->load_opts.region.w, ie->load_opts.region.h, | ||
454 | 0, 0, ie->w, ie->h); | ||
455 | if ((ie->load_opts.region.w <= 0) || (ie->load_opts.region.h <= 0)) | ||
456 | { | ||
457 | jpeg_destroy_decompress(&cinfo); | ||
458 | _evas_jpeg_membuf_src_term(&cinfo); | ||
459 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
460 | return EINA_FALSE; | ||
461 | } | ||
462 | ie->w = ie->load_opts.region.w; | ||
463 | ie->h = ie->load_opts.region.h; | ||
464 | if (ie->flags.rotated) | ||
465 | { | ||
466 | ie->load_opts.region.x = load_region_x; | ||
467 | ie->load_opts.region.y = load_region_y; | ||
468 | ie->load_opts.region.w = load_region_w; | ||
469 | ie->load_opts.region.h = load_region_h; | ||
470 | } | ||
471 | } | ||
472 | /* end head decoding */ | ||
473 | |||
474 | if (change_wh) | ||
475 | { | ||
476 | unsigned int tmp; | ||
477 | tmp = ie->w; | ||
478 | ie->w = ie->h; | ||
479 | ie->h = tmp; | ||
480 | } | ||
481 | jpeg_destroy_decompress(&cinfo); | ||
482 | _evas_jpeg_membuf_src_term(&cinfo); | ||
483 | *error = EVAS_LOAD_ERROR_NONE; | ||
484 | return EINA_TRUE; | ||
485 | } | ||
486 | |||
487 | /* | ||
488 | static double | ||
489 | get_time(void) | ||
490 | { | ||
491 | struct timeval timev; | ||
492 | |||
493 | gettimeofday(&timev, NULL); | ||
494 | return (double)timev.tv_sec + (((double)timev.tv_usec) / 1000000); | ||
495 | } | ||
496 | */ | ||
497 | |||
498 | static Eina_Bool | ||
499 | evas_image_load_file_data_jpeg_internal(Image_Entry *ie, | ||
500 | void *map, size_t size, | ||
501 | int *error) | ||
502 | { | ||
503 | unsigned int w, h; | ||
504 | struct jpeg_decompress_struct cinfo; | ||
505 | struct _JPEG_error_mgr jerr; | ||
506 | DATA8 *ptr, *line[16], *data; | ||
507 | DATA32 *ptr2, *ptr_rotate = NULL; | ||
508 | unsigned int x, y, l, i, scans; | ||
509 | int region = 0; | ||
510 | /* rotation setting */ | ||
511 | unsigned int ie_w = 0, ie_h = 0; | ||
512 | unsigned int load_region_x = 0, load_region_y = 0; | ||
513 | unsigned int load_region_w = 0, load_region_h = 0; | ||
514 | volatile int degree = 0; | ||
515 | volatile Eina_Bool change_wh = EINA_FALSE; | ||
516 | Eina_Bool line_done = EINA_FALSE; | ||
517 | |||
518 | if (ie->flags.rotated) | ||
519 | { | ||
520 | degree = ie->load_opts.degree; | ||
521 | if (degree == 90 || degree == 270) | ||
522 | change_wh = EINA_TRUE; | ||
523 | } | ||
524 | |||
525 | cinfo.err = jpeg_std_error(&(jerr.pub)); | ||
526 | jerr.pub.error_exit = _JPEGFatalErrorHandler; | ||
527 | jerr.pub.emit_message = _JPEGErrorHandler2; | ||
528 | jerr.pub.output_message = _JPEGErrorHandler; | ||
529 | if (setjmp(jerr.setjmp_buffer)) | ||
530 | { | ||
531 | jpeg_destroy_decompress(&cinfo); | ||
532 | _evas_jpeg_membuf_src_term(&cinfo); | ||
533 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
534 | return EINA_FALSE; | ||
535 | } | ||
536 | jpeg_create_decompress(&cinfo); | ||
537 | |||
538 | if (_evas_jpeg_membuf_src(&cinfo, map, size)) | ||
539 | { | ||
540 | jpeg_destroy_decompress(&cinfo); | ||
541 | _evas_jpeg_membuf_src_term(&cinfo); | ||
542 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
543 | return 0; | ||
544 | } | ||
545 | |||
546 | jpeg_read_header(&cinfo, TRUE); | ||
547 | cinfo.do_fancy_upsampling = FALSE; | ||
548 | cinfo.do_block_smoothing = FALSE; | ||
549 | cinfo.dct_method = JDCT_ISLOW; // JDCT_FLOAT JDCT_IFAST(quality loss) | ||
550 | cinfo.dither_mode = JDITHER_ORDERED; | ||
551 | |||
552 | if (ie->scale > 1) | ||
553 | { | ||
554 | cinfo.scale_num = 1; | ||
555 | cinfo.scale_denom = ie->scale; | ||
556 | } | ||
557 | |||
558 | /* Colorspace conversion options */ | ||
559 | /* libjpeg can do the following conversions: */ | ||
560 | /* GRAYSCLAE => RGB YCbCr => RGB and YCCK => CMYK */ | ||
561 | switch (cinfo.jpeg_color_space) | ||
562 | { | ||
563 | case JCS_UNKNOWN: | ||
564 | break; | ||
565 | case JCS_GRAYSCALE: | ||
566 | case JCS_RGB: | ||
567 | case JCS_YCbCr: | ||
568 | cinfo.out_color_space = JCS_RGB; | ||
569 | break; | ||
570 | case JCS_CMYK: | ||
571 | case JCS_YCCK: | ||
572 | cinfo.out_color_space = JCS_CMYK; | ||
573 | break; | ||
574 | } | ||
575 | |||
576 | /* head decoding */ | ||
577 | jpeg_calc_output_dimensions(&(cinfo)); | ||
578 | jpeg_start_decompress(&cinfo); | ||
579 | |||
580 | w = cinfo.output_width; | ||
581 | h = cinfo.output_height; | ||
582 | |||
583 | if (change_wh) | ||
584 | { | ||
585 | ie_w = ie->h; | ||
586 | ie_h = ie->w; | ||
587 | } | ||
588 | else | ||
589 | { | ||
590 | ie_w = ie->w; | ||
591 | ie_h = ie->h; | ||
592 | } | ||
593 | |||
594 | if ((ie->load_opts.region.w > 0) && (ie->load_opts.region.h > 0)) | ||
595 | { | ||
596 | region = 1; | ||
597 | |||
598 | if (ie->flags.rotated) | ||
599 | { | ||
600 | load_region_x = ie->load_opts.region.x; | ||
601 | load_region_y = ie->load_opts.region.y; | ||
602 | load_region_w = ie->load_opts.region.w; | ||
603 | load_region_h = ie->load_opts.region.h; | ||
604 | |||
605 | switch (degree) | ||
606 | { | ||
607 | case 90: | ||
608 | ie->load_opts.region.x = load_region_y; | ||
609 | ie->load_opts.region.y = h - (load_region_x + load_region_w); | ||
610 | ie->load_opts.region.w = load_region_h; | ||
611 | ie->load_opts.region.h = load_region_w; | ||
612 | break; | ||
613 | case 180: | ||
614 | ie->load_opts.region.x = w - (load_region_x+ load_region_w); | ||
615 | ie->load_opts.region.y = h - (load_region_y + load_region_h); | ||
616 | |||
617 | break; | ||
618 | case 270: | ||
619 | ie->load_opts.region.x = w - (load_region_y + load_region_h); | ||
620 | ie->load_opts.region.y = load_region_x; | ||
621 | ie->load_opts.region.w = load_region_h; | ||
622 | ie->load_opts.region.h = load_region_w; | ||
623 | break; | ||
624 | default: | ||
625 | break; | ||
626 | } | ||
627 | |||
628 | } | ||
629 | #ifdef BUILD_LOADER_JPEG_REGION | ||
630 | cinfo.region_x = ie->load_opts.region.x; | ||
631 | cinfo.region_y = ie->load_opts.region.y; | ||
632 | cinfo.region_w = ie->load_opts.region.w; | ||
633 | cinfo.region_h = ie->load_opts.region.h; | ||
634 | #endif | ||
635 | } | ||
636 | if ((!region) && ((w != ie_w) || (h != ie_h))) | ||
637 | { | ||
638 | // race condition, the file could have change from when we call header | ||
639 | // this test will not solve the problem with region code. | ||
640 | jpeg_destroy_decompress(&cinfo); | ||
641 | _evas_jpeg_membuf_src_term(&cinfo); | ||
642 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
643 | return EINA_FALSE; | ||
644 | } | ||
645 | if ((region) && | ||
646 | ((ie_w != ie->load_opts.region.w) || (ie_h != ie->load_opts.region.h))) | ||
647 | { | ||
648 | ie_w = ie->load_opts.region.w; | ||
649 | ie_h = ie->load_opts.region.h; | ||
650 | if (change_wh) | ||
651 | { | ||
652 | ie->w = ie_h; | ||
653 | ie->h = ie_w; | ||
654 | } | ||
655 | else | ||
656 | { | ||
657 | ie->w = ie_w; | ||
658 | ie->h = ie_h; | ||
659 | } | ||
660 | |||
661 | } | ||
662 | |||
663 | if (!(((cinfo.out_color_space == JCS_RGB) && | ||
664 | ((cinfo.output_components == 3) || (cinfo.output_components == 1))) || | ||
665 | ((cinfo.out_color_space == JCS_CMYK) && (cinfo.output_components == 4)))) | ||
666 | { | ||
667 | jpeg_destroy_decompress(&cinfo); | ||
668 | _evas_jpeg_membuf_src_term(&cinfo); | ||
669 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
670 | return EINA_FALSE; | ||
671 | } | ||
672 | |||
673 | /* end head decoding */ | ||
674 | /* data decoding */ | ||
675 | if (cinfo.rec_outbuf_height > 16) | ||
676 | { | ||
677 | jpeg_destroy_decompress(&cinfo); | ||
678 | _evas_jpeg_membuf_src_term(&cinfo); | ||
679 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
680 | return EINA_FALSE; | ||
681 | } | ||
682 | data = alloca(w * 16 * cinfo.output_components); | ||
683 | evas_cache_image_surface_alloc(ie, ie->w, ie->h); | ||
684 | if (ie->flags.loaded) | ||
685 | { | ||
686 | jpeg_destroy_decompress(&cinfo); | ||
687 | _evas_jpeg_membuf_src_term(&cinfo); | ||
688 | *error = EVAS_LOAD_ERROR_NONE; | ||
689 | if (region && ie->flags.rotated) | ||
690 | { | ||
691 | ie->load_opts.region.x = load_region_x; | ||
692 | ie->load_opts.region.y = load_region_y; | ||
693 | ie->load_opts.region.w = load_region_w; | ||
694 | ie->load_opts.region.h = load_region_h; | ||
695 | } | ||
696 | return EINA_TRUE; | ||
697 | } | ||
698 | if ((ie->flags.rotated) && change_wh) | ||
699 | { | ||
700 | ptr2 = malloc(ie->w * ie->h * sizeof(DATA32)); | ||
701 | ptr_rotate = ptr2; | ||
702 | } | ||
703 | else | ||
704 | ptr2 = evas_cache_image_pixels(ie); | ||
705 | |||
706 | if (!ptr2) | ||
707 | { | ||
708 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
709 | return EINA_FALSE; | ||
710 | } | ||
711 | |||
712 | /* We handle first CMYK (4 components) */ | ||
713 | if (cinfo.output_components == 4) | ||
714 | { | ||
715 | // FIXME: handle region | ||
716 | for (i = 0; (int)i < cinfo.rec_outbuf_height; i++) | ||
717 | line[i] = data + (i * w * 4); | ||
718 | for (l = 0; l < h; l += cinfo.rec_outbuf_height) | ||
719 | { | ||
720 | jpeg_read_scanlines(&cinfo, line, cinfo.rec_outbuf_height); | ||
721 | scans = cinfo.rec_outbuf_height; | ||
722 | if ((h - l) < scans) scans = h - l; | ||
723 | ptr = data; | ||
724 | if (!region) | ||
725 | { | ||
726 | for (y = 0; y < scans; y++) | ||
727 | { | ||
728 | if (cinfo.saw_Adobe_marker) | ||
729 | { | ||
730 | for (x = 0; x < w; x++) | ||
731 | { | ||
732 | /* According to libjpeg doc, Photoshop inverse the values of C, M, Y and K, */ | ||
733 | /* that is C is replaces by 255 - C, etc...*/ | ||
734 | /* See the comment below for the computation of RGB values from CMYK ones. */ | ||
735 | *ptr2 = | ||
736 | (0xff000000) | | ||
737 | ((ptr[0] * ptr[3] / 255) << 16) | | ||
738 | ((ptr[1] * ptr[3] / 255) << 8) | | ||
739 | ((ptr[2] * ptr[3] / 255)); | ||
740 | ptr += 4; | ||
741 | ptr2++; | ||
742 | } | ||
743 | } | ||
744 | else | ||
745 | { | ||
746 | for (x = 0; x < w; x++) | ||
747 | { | ||
748 | /* Conversion from CMYK to RGB is done in 2 steps: */ | ||
749 | /* CMYK => CMY => RGB (see http://www.easyrgb.com/index.php?X=MATH) */ | ||
750 | /* after computation, if C, M, Y and K are between 0 and 1, we have: */ | ||
751 | /* R = (1 - C) * (1 - K) * 255 */ | ||
752 | /* G = (1 - M) * (1 - K) * 255 */ | ||
753 | /* B = (1 - Y) * (1 - K) * 255 */ | ||
754 | /* libjpeg stores CMYK values between 0 and 255, */ | ||
755 | /* so we replace C by C * 255 / 255, etc... and we obtain: */ | ||
756 | /* R = (255 - C) * (255 - K) / 255 */ | ||
757 | /* G = (255 - M) * (255 - K) / 255 */ | ||
758 | /* B = (255 - Y) * (255 - K) / 255 */ | ||
759 | /* with C, M, Y and K between 0 and 255. */ | ||
760 | *ptr2 = | ||
761 | (0xff000000) | | ||
762 | (((255 - ptr[0]) * (255 - ptr[3]) / 255) << 16) | | ||
763 | (((255 - ptr[1]) * (255 - ptr[3]) / 255) << 8) | | ||
764 | (((255 - ptr[2]) * (255 - ptr[3]) / 255)); | ||
765 | ptr += 4; | ||
766 | ptr2++; | ||
767 | } | ||
768 | } | ||
769 | } | ||
770 | } | ||
771 | else | ||
772 | { | ||
773 | // if line # > region last line, break | ||
774 | if (l >= (ie->load_opts.region.y + ie->load_opts.region.h)) | ||
775 | { | ||
776 | line_done = EINA_TRUE; | ||
777 | /* if rotation flag is set , we have to rotate image */ | ||
778 | goto done; | ||
779 | /*jpeg_destroy_decompress(&cinfo); | ||
780 | _evas_jpeg_membuf_src_term(&cinfo); | ||
781 | *error = EVAS_LOAD_ERROR_NONE; | ||
782 | return EINA_FALSE;*/ | ||
783 | } | ||
784 | // els if scan block intersects region start or later | ||
785 | else if ((l + scans) > | ||
786 | (ie->load_opts.region.y)) | ||
787 | { | ||
788 | for (y = 0; y < scans; y++) | ||
789 | { | ||
790 | if (((y + l) >= ie->load_opts.region.y) && | ||
791 | ((y + l) < (ie->load_opts.region.y + ie->load_opts.region.h))) | ||
792 | { | ||
793 | ptr += ie->load_opts.region.x; | ||
794 | if (cinfo.saw_Adobe_marker) | ||
795 | { | ||
796 | for (x = 0; x < ie->load_opts.region.w; x++) | ||
797 | { | ||
798 | /* According to libjpeg doc, Photoshop inverse the values of C, M, Y and K, */ | ||
799 | /* that is C is replaces by 255 - C, etc...*/ | ||
800 | /* See the comment below for the computation of RGB values from CMYK ones. */ | ||
801 | *ptr2 = | ||
802 | (0xff000000) | | ||
803 | ((ptr[0] * ptr[3] / 255) << 16) | | ||
804 | ((ptr[1] * ptr[3] / 255) << 8) | | ||
805 | ((ptr[2] * ptr[3] / 255)); | ||
806 | ptr += 4; | ||
807 | ptr2++; | ||
808 | } | ||
809 | } | ||
810 | else | ||
811 | { | ||
812 | for (x = 0; x < ie->load_opts.region.w; x++) | ||
813 | { | ||
814 | /* Conversion from CMYK to RGB is done in 2 steps: */ | ||
815 | /* CMYK => CMY => RGB (see http://www.easyrgb.com/index.php?X=MATH) */ | ||
816 | /* after computation, if C, M, Y and K are between 0 and 1, we have: */ | ||
817 | /* R = (1 - C) * (1 - K) * 255 */ | ||
818 | /* G = (1 - M) * (1 - K) * 255 */ | ||
819 | /* B = (1 - Y) * (1 - K) * 255 */ | ||
820 | /* libjpeg stores CMYK values between 0 and 255, */ | ||
821 | /* so we replace C by C * 255 / 255, etc... and we obtain: */ | ||
822 | /* R = (255 - C) * (255 - K) / 255 */ | ||
823 | /* G = (255 - M) * (255 - K) / 255 */ | ||
824 | /* B = (255 - Y) * (255 - K) / 255 */ | ||
825 | /* with C, M, Y and K between 0 and 255. */ | ||
826 | *ptr2 = | ||
827 | (0xff000000) | | ||
828 | (((255 - ptr[0]) * (255 - ptr[3]) / 255) << 16) | | ||
829 | (((255 - ptr[1]) * (255 - ptr[3]) / 255) << 8) | | ||
830 | (((255 - ptr[2]) * (255 - ptr[3]) / 255)); | ||
831 | ptr += 4; | ||
832 | ptr2++; | ||
833 | } | ||
834 | } | ||
835 | ptr += (4 * (w - (ie->load_opts.region.x + ie->load_opts.region.w))); | ||
836 | } | ||
837 | else | ||
838 | ptr += (4 * w); | ||
839 | } | ||
840 | } | ||
841 | } | ||
842 | } | ||
843 | } | ||
844 | /* We handle then RGB with 3 components */ | ||
845 | else if (cinfo.output_components == 3) | ||
846 | { | ||
847 | /* | ||
848 | double t; | ||
849 | if (region) | ||
850 | { | ||
851 | // debug for now | ||
852 | printf("R| %p %5ix%5i %s: %5i %5i %5ix%5i - ", | ||
853 | ie, | ||
854 | ie->w, ie->h, | ||
855 | ie->file, | ||
856 | ie->load_opts.region.x, | ||
857 | ie->load_opts.region.y, | ||
858 | ie->load_opts.region.w, | ||
859 | ie->load_opts.region.h); | ||
860 | } | ||
861 | t = get_time(); | ||
862 | */ | ||
863 | for (i = 0; (int)i < cinfo.rec_outbuf_height; i++) | ||
864 | line[i] = data + (i * w * 3); | ||
865 | for (l = 0; l < h; l += cinfo.rec_outbuf_height) | ||
866 | { | ||
867 | jpeg_read_scanlines(&cinfo, line, cinfo.rec_outbuf_height); | ||
868 | scans = cinfo.rec_outbuf_height; | ||
869 | if ((h - l) < scans) scans = h - l; | ||
870 | ptr = data; | ||
871 | if (!region) | ||
872 | { | ||
873 | for (y = 0; y < scans; y++) | ||
874 | { | ||
875 | for (x = 0; x < w; x++) | ||
876 | { | ||
877 | *ptr2 = ARGB_JOIN(0xff, ptr[0], ptr[1], ptr[2]); | ||
878 | ptr += 3; | ||
879 | ptr2++; | ||
880 | } | ||
881 | } | ||
882 | } | ||
883 | else | ||
884 | { | ||
885 | // if line # > region last line, break | ||
886 | // but not return immediately for rotation job | ||
887 | if (l >= (ie->load_opts.region.y + ie->load_opts.region.h)) | ||
888 | { | ||
889 | line_done = EINA_TRUE; | ||
890 | /* if rotation flag is set , we have to rotate image */ | ||
891 | goto done; | ||
892 | } | ||
893 | // else if scan block intersects region start or later | ||
894 | else if ((l + scans) > | ||
895 | (ie->load_opts.region.y)) | ||
896 | { | ||
897 | for (y = 0; y < scans; y++) | ||
898 | { | ||
899 | if (((y + l) >= ie->load_opts.region.y) && | ||
900 | ((y + l) < (ie->load_opts.region.y + ie->load_opts.region.h))) | ||
901 | { | ||
902 | ptr += (3 * ie->load_opts.region.x); | ||
903 | for (x = 0; x < ie->load_opts.region.w; x++) | ||
904 | { | ||
905 | *ptr2 = ARGB_JOIN(0xff, ptr[0], ptr[1], ptr[2]); | ||
906 | ptr += 3; | ||
907 | ptr2++; | ||
908 | } | ||
909 | ptr += (3 * (w - (ie->load_opts.region.x + ie->load_opts.region.w))); | ||
910 | } | ||
911 | else | ||
912 | ptr += (3 * w); | ||
913 | } | ||
914 | } | ||
915 | } | ||
916 | } | ||
917 | /* | ||
918 | t = get_time() - t; | ||
919 | printf("%3.3f\n", t); | ||
920 | */ | ||
921 | } | ||
922 | /* We finally handle RGB with 1 component */ | ||
923 | else if (cinfo.output_components == 1) | ||
924 | { | ||
925 | for (i = 0; (int)i < cinfo.rec_outbuf_height; i++) | ||
926 | line[i] = data + (i * w); | ||
927 | for (l = 0; l < h; l += cinfo.rec_outbuf_height) | ||
928 | { | ||
929 | jpeg_read_scanlines(&cinfo, line, cinfo.rec_outbuf_height); | ||
930 | scans = cinfo.rec_outbuf_height; | ||
931 | if ((h - l) < scans) scans = h - l; | ||
932 | ptr = data; | ||
933 | if (!region) | ||
934 | { | ||
935 | for (y = 0; y < scans; y++) | ||
936 | { | ||
937 | for (x = 0; x < w; x++) | ||
938 | { | ||
939 | *ptr2 = ARGB_JOIN(0xff, ptr[0], ptr[0], ptr[0]); | ||
940 | ptr++; | ||
941 | ptr2++; | ||
942 | } | ||
943 | } | ||
944 | } | ||
945 | else | ||
946 | { | ||
947 | // if line # > region last line, break | ||
948 | if (l >= (ie->load_opts.region.y + ie->load_opts.region.h)) | ||
949 | { | ||
950 | line_done = EINA_TRUE; | ||
951 | /* if rotation flag is set , we have to rotate image */ | ||
952 | goto done; | ||
953 | /*jpeg_destroy_decompress(&cinfo); | ||
954 | _evas_jpeg_membuf_src_term(&cinfo); | ||
955 | *error = EVAS_LOAD_ERROR_NONE; | ||
956 | return EINA_TRUE;*/ | ||
957 | } | ||
958 | // els if scan block intersects region start or later | ||
959 | else if ((l + scans) > | ||
960 | (ie->load_opts.region.y)) | ||
961 | { | ||
962 | for (y = 0; y < scans; y++) | ||
963 | { | ||
964 | if (((y + l) >= ie->load_opts.region.y) && | ||
965 | ((y + l) < (ie->load_opts.region.y + ie->load_opts.region.h))) | ||
966 | { | ||
967 | ptr += ie->load_opts.region.x; | ||
968 | for (x = 0; x < ie->load_opts.region.w; x++) | ||
969 | { | ||
970 | *ptr2 = ARGB_JOIN(0xff, ptr[0], ptr[0], ptr[0]); | ||
971 | ptr++; | ||
972 | ptr2++; | ||
973 | } | ||
974 | ptr += w - (ie->load_opts.region.x + ie->load_opts.region.w); | ||
975 | } | ||
976 | else | ||
977 | ptr += w; | ||
978 | } | ||
979 | } | ||
980 | } | ||
981 | } | ||
982 | } | ||
983 | /* if rotation operation need, rotate it */ | ||
984 | done: | ||
985 | |||
986 | if (ie->flags.rotated) | ||
987 | { | ||
988 | DATA32 *data1, *data2, *to, *from; | ||
989 | int lx, ly, lw, lh, hw; | ||
990 | |||
991 | lw = ie->w; | ||
992 | lh = ie->h; | ||
993 | hw =lw * lh; | ||
994 | |||
995 | data1 = evas_cache_image_pixels(ie); | ||
996 | |||
997 | if (degree == 180) | ||
998 | { | ||
999 | DATA32 tmpd; | ||
1000 | |||
1001 | data2 = data1 + (lh * lw) -1; | ||
1002 | for (lx = (lw * lh) / 2; --lx >= 0;) | ||
1003 | { | ||
1004 | tmpd = *data1; | ||
1005 | *data1 = *data2; | ||
1006 | *data2 = tmpd; | ||
1007 | data1++; | ||
1008 | data2--; | ||
1009 | } | ||
1010 | } | ||
1011 | else | ||
1012 | { | ||
1013 | data2 = NULL; | ||
1014 | to = NULL; | ||
1015 | if (ptr_rotate) data2 = ptr_rotate; | ||
1016 | |||
1017 | if (degree == 90) | ||
1018 | { | ||
1019 | to = data1 + lw - 1; | ||
1020 | hw = -hw - 1; | ||
1021 | } | ||
1022 | else if (degree == 270) | ||
1023 | { | ||
1024 | to = data1 + hw - lw; | ||
1025 | lw = -lw; | ||
1026 | hw = hw + 1; | ||
1027 | } | ||
1028 | |||
1029 | if (to) | ||
1030 | { | ||
1031 | from = data2; | ||
1032 | for (lx = ie->w; --lx >= 0;) | ||
1033 | { | ||
1034 | for (ly =ie->h; --ly >= 0;) | ||
1035 | { | ||
1036 | *to = *from; | ||
1037 | from++; | ||
1038 | to += lw; | ||
1039 | } | ||
1040 | to += hw; | ||
1041 | } | ||
1042 | } | ||
1043 | if (ptr_rotate) | ||
1044 | { | ||
1045 | free(ptr_rotate); | ||
1046 | ptr_rotate = NULL; | ||
1047 | } | ||
1048 | } | ||
1049 | if (region) | ||
1050 | { | ||
1051 | ie->load_opts.region.x = load_region_x; | ||
1052 | ie->load_opts.region.y = load_region_y; | ||
1053 | ie->load_opts.region.w = load_region_w; | ||
1054 | ie->load_opts.region.h = load_region_h; | ||
1055 | } | ||
1056 | } | ||
1057 | |||
1058 | if (line_done) | ||
1059 | { | ||
1060 | jpeg_destroy_decompress(&cinfo); | ||
1061 | _evas_jpeg_membuf_src_term(&cinfo); | ||
1062 | *error = EVAS_LOAD_ERROR_NONE; | ||
1063 | return EINA_FALSE; | ||
1064 | } | ||
1065 | /* end data decoding */ | ||
1066 | jpeg_finish_decompress(&cinfo); | ||
1067 | jpeg_destroy_decompress(&cinfo); | ||
1068 | _evas_jpeg_membuf_src_term(&cinfo); | ||
1069 | *error = EVAS_LOAD_ERROR_NONE; | ||
1070 | return EINA_TRUE; | ||
1071 | } | ||
1072 | |||
1073 | #if 0 /* not used at the moment */ | ||
1074 | static Eina_Bool | ||
1075 | evas_image_load_file_data_jpeg_alpha_internal(Image_Entry *ie, FILE *f, int *error) | ||
1076 | { | ||
1077 | int w, h; | ||
1078 | struct jpeg_decompress_struct cinfo; | ||
1079 | struct _JPEG_error_mgr jerr; | ||
1080 | DATA8 *ptr, *line[16], *data; | ||
1081 | DATA32 *ptr2; | ||
1082 | int x, y, l, i, scans, prevy; | ||
1083 | |||
1084 | if (!f) | ||
1085 | { | ||
1086 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
1087 | return EINA_FALSE; | ||
1088 | } | ||
1089 | cinfo.err = jpeg_std_error(&(jerr.pub)); | ||
1090 | jerr.pub.error_exit = _JPEGFatalErrorHandler; | ||
1091 | jerr.pub.emit_message = _JPEGErrorHandler2; | ||
1092 | jerr.pub.output_message = _JPEGErrorHandler; | ||
1093 | if (setjmp(jerr.setjmp_buffer)) | ||
1094 | { | ||
1095 | jpeg_destroy_decompress(&cinfo); | ||
1096 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
1097 | return EINA_FALSE; | ||
1098 | } | ||
1099 | jpeg_create_decompress(&cinfo); | ||
1100 | jpeg_stdio_src(&cinfo, f); | ||
1101 | jpeg_read_header(&cinfo, TRUE); | ||
1102 | cinfo.do_fancy_upsampling = FALSE; | ||
1103 | cinfo.do_block_smoothing = FALSE; | ||
1104 | jpeg_start_decompress(&cinfo); | ||
1105 | |||
1106 | /* head decoding */ | ||
1107 | ie->w = w = cinfo.output_width; | ||
1108 | ie->h = h = cinfo.output_height; | ||
1109 | /* end head decoding */ | ||
1110 | /* data decoding */ | ||
1111 | if (cinfo.rec_outbuf_height > 16) | ||
1112 | { | ||
1113 | jpeg_destroy_decompress(&cinfo); | ||
1114 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
1115 | return EINA_FALSE;; | ||
1116 | } | ||
1117 | data = alloca(w * 16 * 3); | ||
1118 | if (!ie->flags.loaded) | ||
1119 | { | ||
1120 | jpeg_destroy_decompress(&cinfo); | ||
1121 | *error = EVAS_LOAD_ERROR_NONE; | ||
1122 | return EINA_TRUE; | ||
1123 | } | ||
1124 | ptr2 = evas_cache_image_pixels(ie); | ||
1125 | prevy = 0; | ||
1126 | if (cinfo.output_components == 3) | ||
1127 | { | ||
1128 | for (i = 0; i < cinfo.rec_outbuf_height; i++) | ||
1129 | line[i] = data + (i * w * 3); | ||
1130 | for (l = 0; l < h; l += cinfo.rec_outbuf_height) | ||
1131 | { | ||
1132 | jpeg_read_scanlines(&cinfo, line, cinfo.rec_outbuf_height); | ||
1133 | scans = cinfo.rec_outbuf_height; | ||
1134 | if ((h - l) < scans) scans = h - l; | ||
1135 | ptr = data; | ||
1136 | for (y = 0; y < scans; y++) | ||
1137 | { | ||
1138 | for (x = 0; x < w; x++) | ||
1139 | { | ||
1140 | *ptr2 = | ||
1141 | ((*ptr2) & 0x00ffffff) | | ||
1142 | (((ptr[0] + ptr[1] + ptr[2]) / 3) << 24); | ||
1143 | ptr += 3; | ||
1144 | ptr2++; | ||
1145 | } | ||
1146 | } | ||
1147 | } | ||
1148 | } | ||
1149 | else if (cinfo.output_components == 1) | ||
1150 | { | ||
1151 | for (i = 0; i < cinfo.rec_outbuf_height; i++) | ||
1152 | line[i] = data + (i * w); | ||
1153 | for (l = 0; l < h; l += cinfo.rec_outbuf_height) | ||
1154 | { | ||
1155 | jpeg_read_scanlines(&cinfo, line, cinfo.rec_outbuf_height); | ||
1156 | scans = cinfo.rec_outbuf_height; | ||
1157 | if ((h - l) < scans) scans = h - l; | ||
1158 | ptr = data; | ||
1159 | for (y = 0; y < scans; y++) | ||
1160 | { | ||
1161 | for (x = 0; x < w; x++) | ||
1162 | { | ||
1163 | *ptr2 = | ||
1164 | ((*ptr2) & 0x00ffffff) | | ||
1165 | ((ptr[0]) << 24); | ||
1166 | ptr++; | ||
1167 | ptr2++; | ||
1168 | } | ||
1169 | } | ||
1170 | } | ||
1171 | } | ||
1172 | /* end data decoding */ | ||
1173 | jpeg_finish_decompress(&cinfo); | ||
1174 | jpeg_destroy_decompress(&cinfo); | ||
1175 | *error = EVAS_LOAD_ERROR_NONE; | ||
1176 | return EINA_TRUE; | ||
1177 | } | ||
1178 | #endif | ||
1179 | |||
1180 | static Eina_Bool | ||
1181 | evas_image_load_file_head_jpeg(Image_Entry *ie, | ||
1182 | const char *file, const char *key __UNUSED__, | ||
1183 | int *error) | ||
1184 | { | ||
1185 | Eina_File *f; | ||
1186 | void *map; | ||
1187 | Eina_Bool val = EINA_FALSE; | ||
1188 | |||
1189 | f = eina_file_open(file, EINA_FALSE); | ||
1190 | if (!f) | ||
1191 | { | ||
1192 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
1193 | return EINA_FALSE; | ||
1194 | } | ||
1195 | map = eina_file_map_all(f, EINA_FILE_WILLNEED); | ||
1196 | if (!map) | ||
1197 | { | ||
1198 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
1199 | goto on_error; | ||
1200 | } | ||
1201 | |||
1202 | val = evas_image_load_file_head_jpeg_internal(ie, | ||
1203 | map, eina_file_size_get(f), | ||
1204 | error); | ||
1205 | |||
1206 | eina_file_map_free(f, map); | ||
1207 | |||
1208 | on_error: | ||
1209 | eina_file_close(f); | ||
1210 | return val; | ||
1211 | } | ||
1212 | |||
1213 | static Eina_Bool | ||
1214 | evas_image_load_file_data_jpeg(Image_Entry *ie, | ||
1215 | const char *file, const char *key __UNUSED__, | ||
1216 | int *error) | ||
1217 | { | ||
1218 | Eina_File *f; | ||
1219 | void *map; | ||
1220 | Eina_Bool val = EINA_FALSE; | ||
1221 | |||
1222 | f = eina_file_open(file, EINA_FALSE); | ||
1223 | if (!f) | ||
1224 | { | ||
1225 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
1226 | return EINA_FALSE; | ||
1227 | } | ||
1228 | map = eina_file_map_all(f, EINA_FILE_WILLNEED); | ||
1229 | if (!map) | ||
1230 | { | ||
1231 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
1232 | goto on_error; | ||
1233 | } | ||
1234 | |||
1235 | val = evas_image_load_file_data_jpeg_internal(ie, | ||
1236 | map, eina_file_size_get(f), | ||
1237 | error); | ||
1238 | |||
1239 | eina_file_map_free(f, map); | ||
1240 | |||
1241 | on_error: | ||
1242 | eina_file_close(f); | ||
1243 | return val; | ||
1244 | } | ||
1245 | |||
1246 | static int | ||
1247 | module_open(Evas_Module *em) | ||
1248 | { | ||
1249 | if (!em) return 0; | ||
1250 | em->functions = (void *)(&evas_image_load_jpeg_func); | ||
1251 | return 1; | ||
1252 | } | ||
1253 | |||
1254 | static void | ||
1255 | module_close(Evas_Module *em __UNUSED__) | ||
1256 | { | ||
1257 | } | ||
1258 | |||
1259 | static Evas_Module_Api evas_modapi = | ||
1260 | { | ||
1261 | EVAS_MODULE_API_VERSION, | ||
1262 | "jpeg", | ||
1263 | "none", | ||
1264 | { | ||
1265 | module_open, | ||
1266 | module_close | ||
1267 | } | ||
1268 | }; | ||
1269 | |||
1270 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, jpeg); | ||
1271 | |||
1272 | #ifndef EVAS_STATIC_BUILD_JPEG | ||
1273 | EVAS_EINA_MODULE_DEFINE(image_loader, jpeg); | ||
1274 | #endif | ||
1275 | |||
diff --git a/libraries/evas/src/modules/loaders/pmaps/Makefile.am b/libraries/evas/src/modules/loaders/pmaps/Makefile.am deleted file mode 100644 index 6fc3d6d..0000000 --- a/libraries/evas/src/modules/loaders/pmaps/Makefile.am +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
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 | @EINA_CFLAGS@ \ | ||
11 | @evas_image_loader_pmaps_cflags@ \ | ||
12 | @EVIL_CFLAGS@ | ||
13 | |||
14 | if BUILD_LOADER_PMAPS | ||
15 | if !EVAS_STATIC_BUILD_PMAPS | ||
16 | |||
17 | pkgdir = $(libdir)/evas/modules/loaders/pmaps/$(MODULE_ARCH) | ||
18 | pkg_LTLIBRARIES = module.la | ||
19 | |||
20 | module_la_SOURCES = evas_image_load_pmaps.c | ||
21 | |||
22 | module_la_LIBADD = @evas_image_loader_pmaps_libs@ @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
23 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
24 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
25 | |||
26 | else | ||
27 | |||
28 | noinst_LTLIBRARIES = libevas_loader_pmaps.la | ||
29 | libevas_loader_pmaps_la_SOURCES = evas_image_load_pmaps.c | ||
30 | libevas_loader_pmaps_la_LIBADD = @evas_image_loader_pmaps_libs@ | ||
31 | |||
32 | endif | ||
33 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/pmaps/Makefile.in b/libraries/evas/src/modules/loaders/pmaps/Makefile.in deleted file mode 100644 index c44904a..0000000 --- a/libraries/evas/src/modules/loaders/pmaps/Makefile.in +++ /dev/null | |||
@@ -1,762 +0,0 @@ | |||
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/pmaps | ||
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_pmaps_la_DEPENDENCIES = | ||
83 | am__libevas_loader_pmaps_la_SOURCES_DIST = evas_image_load_pmaps.c | ||
84 | @BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_TRUE@am_libevas_loader_pmaps_la_OBJECTS = evas_image_load_pmaps.lo | ||
85 | libevas_loader_pmaps_la_OBJECTS = \ | ||
86 | $(am_libevas_loader_pmaps_la_OBJECTS) | ||
87 | AM_V_lt = $(am__v_lt_$(V)) | ||
88 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
89 | am__v_lt_0 = --silent | ||
90 | @BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_TRUE@am_libevas_loader_pmaps_la_rpath = | ||
91 | @BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
92 | am__module_la_SOURCES_DIST = evas_image_load_pmaps.c | ||
93 | @BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_pmaps.lo | ||
94 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
95 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
96 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
97 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
98 | @BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@am_module_la_rpath = -rpath \ | ||
99 | @BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@ $(pkgdir) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_pmaps_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_pmaps_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
185 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
186 | FGREP = @FGREP@ | ||
187 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
188 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
189 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
190 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
191 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
192 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
193 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
194 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
195 | GREP = @GREP@ | ||
196 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
197 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
198 | INSTALL = @INSTALL@ | ||
199 | INSTALL_DATA = @INSTALL_DATA@ | ||
200 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
201 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
202 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
203 | LD = @LD@ | ||
204 | LDFLAGS = @LDFLAGS@ | ||
205 | LIBOBJS = @LIBOBJS@ | ||
206 | LIBS = @LIBS@ | ||
207 | LIBTOOL = @LIBTOOL@ | ||
208 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
209 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
210 | LIPO = @LIPO@ | ||
211 | LN_S = @LN_S@ | ||
212 | LTLIBOBJS = @LTLIBOBJS@ | ||
213 | MAKEINFO = @MAKEINFO@ | ||
214 | MKDIR_P = @MKDIR_P@ | ||
215 | MODULE_ARCH = @MODULE_ARCH@ | ||
216 | NM = @NM@ | ||
217 | NMEDIT = @NMEDIT@ | ||
218 | OBJC = @OBJC@ | ||
219 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
220 | OBJCFLAGS = @OBJCFLAGS@ | ||
221 | OBJDUMP = @OBJDUMP@ | ||
222 | OBJEXT = @OBJEXT@ | ||
223 | OTOOL = @OTOOL@ | ||
224 | OTOOL64 = @OTOOL64@ | ||
225 | PACKAGE = @PACKAGE@ | ||
226 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
227 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
228 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
229 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
230 | PACKAGE_URL = @PACKAGE_URL@ | ||
231 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
232 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
233 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
234 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
235 | PKG_CONFIG = @PKG_CONFIG@ | ||
236 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
237 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
238 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
239 | PNG_LIBS = @PNG_LIBS@ | ||
240 | RANLIB = @RANLIB@ | ||
241 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
242 | SDL_LIBS = @SDL_LIBS@ | ||
243 | SED = @SED@ | ||
244 | SET_MAKE = @SET_MAKE@ | ||
245 | SHELL = @SHELL@ | ||
246 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
247 | STRIP = @STRIP@ | ||
248 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
249 | SVG_LIBS = @SVG_LIBS@ | ||
250 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
251 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
252 | VERSION = @VERSION@ | ||
253 | VMAJ = @VMAJ@ | ||
254 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
255 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
256 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
257 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
258 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
259 | XCB_LIBS = @XCB_LIBS@ | ||
260 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
261 | XEXT_LIBS = @XEXT_LIBS@ | ||
262 | XMKMF = @XMKMF@ | ||
263 | X_CFLAGS = @X_CFLAGS@ | ||
264 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
265 | X_LIBS = @X_LIBS@ | ||
266 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
267 | abs_builddir = @abs_builddir@ | ||
268 | abs_srcdir = @abs_srcdir@ | ||
269 | abs_top_builddir = @abs_top_builddir@ | ||
270 | abs_top_srcdir = @abs_top_srcdir@ | ||
271 | ac_ct_CC = @ac_ct_CC@ | ||
272 | ac_ct_CXX = @ac_ct_CXX@ | ||
273 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
274 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
275 | altivec_cflags = @altivec_cflags@ | ||
276 | am__include = @am__include@ | ||
277 | am__leading_dot = @am__leading_dot@ | ||
278 | am__quote = @am__quote@ | ||
279 | am__tar = @am__tar@ | ||
280 | am__untar = @am__untar@ | ||
281 | bindir = @bindir@ | ||
282 | build = @build@ | ||
283 | build_alias = @build_alias@ | ||
284 | build_cpu = @build_cpu@ | ||
285 | build_os = @build_os@ | ||
286 | build_vendor = @build_vendor@ | ||
287 | builddir = @builddir@ | ||
288 | datadir = @datadir@ | ||
289 | datarootdir = @datarootdir@ | ||
290 | dlopen_libs = @dlopen_libs@ | ||
291 | docdir = @docdir@ | ||
292 | dvidir = @dvidir@ | ||
293 | edje_cc = @edje_cc@ | ||
294 | efl_doxygen = @efl_doxygen@ | ||
295 | efl_have_doxygen = @efl_have_doxygen@ | ||
296 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
297 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
298 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
299 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
300 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
301 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
302 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
303 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
304 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
305 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
306 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
307 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
308 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
309 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
310 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
311 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
312 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
313 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
314 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
315 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
316 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
317 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
318 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
319 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
320 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
321 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
322 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
323 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
324 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
325 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
326 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
327 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
328 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
329 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
330 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
331 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
332 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
333 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
334 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
335 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
336 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
337 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
338 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
339 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
340 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
341 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
342 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
343 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
344 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
345 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
346 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
347 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
348 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
349 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
350 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
351 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
352 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
353 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
354 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
355 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
356 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
357 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
358 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
359 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
360 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
361 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
362 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
363 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
364 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
365 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
366 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
367 | exec_prefix = @exec_prefix@ | ||
368 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
369 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
370 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
371 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
372 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
373 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
374 | have_lcov = @have_lcov@ | ||
375 | host = @host@ | ||
376 | host_alias = @host_alias@ | ||
377 | host_cpu = @host_cpu@ | ||
378 | host_os = @host_os@ | ||
379 | host_vendor = @host_vendor@ | ||
380 | htmldir = @htmldir@ | ||
381 | includedir = @includedir@ | ||
382 | infodir = @infodir@ | ||
383 | install_sh = @install_sh@ | ||
384 | libdir = @libdir@ | ||
385 | libexecdir = @libexecdir@ | ||
386 | localedir = @localedir@ | ||
387 | localstatedir = @localstatedir@ | ||
388 | lt_ECHO = @lt_ECHO@ | ||
389 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
390 | mandir = @mandir@ | ||
391 | mkdir_p = @mkdir_p@ | ||
392 | oldincludedir = @oldincludedir@ | ||
393 | pdfdir = @pdfdir@ | ||
394 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
395 | prefix = @prefix@ | ||
396 | program_transform_name = @program_transform_name@ | ||
397 | psdir = @psdir@ | ||
398 | pthread_cflags = @pthread_cflags@ | ||
399 | pthread_libs = @pthread_libs@ | ||
400 | release_info = @release_info@ | ||
401 | requirement_evas = @requirement_evas@ | ||
402 | sbindir = @sbindir@ | ||
403 | sharedstatedir = @sharedstatedir@ | ||
404 | srcdir = @srcdir@ | ||
405 | sysconfdir = @sysconfdir@ | ||
406 | target_alias = @target_alias@ | ||
407 | top_build_prefix = @top_build_prefix@ | ||
408 | top_builddir = @top_builddir@ | ||
409 | top_srcdir = @top_srcdir@ | ||
410 | version_info = @version_info@ | ||
411 | MAINTAINERCLEANFILES = Makefile.in | ||
412 | AM_CPPFLAGS = \ | ||
413 | -I. \ | ||
414 | -I$(top_srcdir)/src/lib \ | ||
415 | -I$(top_srcdir)/src/lib/include \ | ||
416 | @FREETYPE_CFLAGS@ \ | ||
417 | @PIXMAN_CFLAGS@ \ | ||
418 | @EINA_CFLAGS@ \ | ||
419 | @evas_image_loader_pmaps_cflags@ \ | ||
420 | @EVIL_CFLAGS@ | ||
421 | |||
422 | @BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@pkgdir = $(libdir)/evas/modules/loaders/pmaps/$(MODULE_ARCH) | ||
423 | @BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@pkg_LTLIBRARIES = module.la | ||
424 | @BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@module_la_SOURCES = evas_image_load_pmaps.c | ||
425 | @BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@module_la_LIBADD = @evas_image_loader_pmaps_libs@ @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
426 | @BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
427 | @BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
428 | @BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_TRUE@noinst_LTLIBRARIES = libevas_loader_pmaps.la | ||
429 | @BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_TRUE@libevas_loader_pmaps_la_SOURCES = evas_image_load_pmaps.c | ||
430 | @BUILD_LOADER_PMAPS_TRUE@@EVAS_STATIC_BUILD_PMAPS_TRUE@libevas_loader_pmaps_la_LIBADD = @evas_image_loader_pmaps_libs@ | ||
431 | all: all-am | ||
432 | |||
433 | .SUFFIXES: | ||
434 | .SUFFIXES: .c .lo .o .obj | ||
435 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
436 | @for dep in $?; do \ | ||
437 | case '$(am__configure_deps)' in \ | ||
438 | *$$dep*) \ | ||
439 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
440 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
441 | exit 1;; \ | ||
442 | esac; \ | ||
443 | done; \ | ||
444 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/pmaps/Makefile'; \ | ||
445 | $(am__cd) $(top_srcdir) && \ | ||
446 | $(AUTOMAKE) --gnu src/modules/loaders/pmaps/Makefile | ||
447 | .PRECIOUS: Makefile | ||
448 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
449 | @case '$?' in \ | ||
450 | *config.status*) \ | ||
451 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
452 | *) \ | ||
453 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
454 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
455 | esac; | ||
456 | |||
457 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
458 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
459 | |||
460 | $(top_srcdir)/configure: $(am__configure_deps) | ||
461 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
462 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
463 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
464 | $(am__aclocal_m4_deps): | ||
465 | |||
466 | clean-noinstLTLIBRARIES: | ||
467 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) | ||
468 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | ||
469 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
470 | test "$$dir" != "$$p" || dir=.; \ | ||
471 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
472 | rm -f "$${dir}/so_locations"; \ | ||
473 | done | ||
474 | install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) | ||
475 | @$(NORMAL_INSTALL) | ||
476 | test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)" | ||
477 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
478 | list2=; for p in $$list; do \ | ||
479 | if test -f $$p; then \ | ||
480 | list2="$$list2 $$p"; \ | ||
481 | else :; fi; \ | ||
482 | done; \ | ||
483 | test -z "$$list2" || { \ | ||
484 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ | ||
485 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ | ||
486 | } | ||
487 | |||
488 | uninstall-pkgLTLIBRARIES: | ||
489 | @$(NORMAL_UNINSTALL) | ||
490 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
491 | for p in $$list; do \ | ||
492 | $(am__strip_dir) \ | ||
493 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ | ||
494 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ | ||
495 | done | ||
496 | |||
497 | clean-pkgLTLIBRARIES: | ||
498 | -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) | ||
499 | @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \ | ||
500 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
501 | test "$$dir" != "$$p" || dir=.; \ | ||
502 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
503 | rm -f "$${dir}/so_locations"; \ | ||
504 | done | ||
505 | libevas_loader_pmaps.la: $(libevas_loader_pmaps_la_OBJECTS) $(libevas_loader_pmaps_la_DEPENDENCIES) | ||
506 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_pmaps_la_rpath) $(libevas_loader_pmaps_la_OBJECTS) $(libevas_loader_pmaps_la_LIBADD) $(LIBS) | ||
507 | module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES) | ||
508 | $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS) | ||
509 | |||
510 | mostlyclean-compile: | ||
511 | -rm -f *.$(OBJEXT) | ||
512 | |||
513 | distclean-compile: | ||
514 | -rm -f *.tab.c | ||
515 | |||
516 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_pmaps.Plo@am__quote@ | ||
517 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_pmaps.Plo@am__quote@ | ||
518 | |||
519 | .c.o: | ||
520 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
521 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
522 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
523 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
524 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
525 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
526 | |||
527 | .c.obj: | ||
528 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
529 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
530 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
531 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
532 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
533 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
534 | |||
535 | .c.lo: | ||
536 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
537 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
538 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
539 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
540 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
541 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
542 | |||
543 | module_la-evas_image_load_pmaps.lo: evas_image_load_pmaps.c | ||
544 | @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_pmaps.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_pmaps.Tpo -c -o module_la-evas_image_load_pmaps.lo `test -f 'evas_image_load_pmaps.c' || echo '$(srcdir)/'`evas_image_load_pmaps.c | ||
545 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_pmaps.Tpo $(DEPDIR)/module_la-evas_image_load_pmaps.Plo | ||
546 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
547 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_pmaps.c' object='module_la-evas_image_load_pmaps.lo' libtool=yes @AMDEPBACKSLASH@ | ||
548 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
549 | @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_pmaps.lo `test -f 'evas_image_load_pmaps.c' || echo '$(srcdir)/'`evas_image_load_pmaps.c | ||
550 | |||
551 | mostlyclean-libtool: | ||
552 | -rm -f *.lo | ||
553 | |||
554 | clean-libtool: | ||
555 | -rm -rf .libs _libs | ||
556 | |||
557 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
558 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
559 | unique=`for i in $$list; do \ | ||
560 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
561 | done | \ | ||
562 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
563 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
564 | mkid -fID $$unique | ||
565 | tags: TAGS | ||
566 | |||
567 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
568 | $(TAGS_FILES) $(LISP) | ||
569 | set x; \ | ||
570 | here=`pwd`; \ | ||
571 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
572 | unique=`for i in $$list; do \ | ||
573 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
574 | done | \ | ||
575 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
576 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
577 | shift; \ | ||
578 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
579 | test -n "$$unique" || unique=$$empty_fix; \ | ||
580 | if test $$# -gt 0; then \ | ||
581 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
582 | "$$@" $$unique; \ | ||
583 | else \ | ||
584 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
585 | $$unique; \ | ||
586 | fi; \ | ||
587 | fi | ||
588 | ctags: CTAGS | ||
589 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
590 | $(TAGS_FILES) $(LISP) | ||
591 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
592 | unique=`for i in $$list; do \ | ||
593 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
594 | done | \ | ||
595 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
596 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
597 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
598 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
599 | $$unique | ||
600 | |||
601 | GTAGS: | ||
602 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
603 | && $(am__cd) $(top_srcdir) \ | ||
604 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
605 | |||
606 | distclean-tags: | ||
607 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
608 | |||
609 | distdir: $(DISTFILES) | ||
610 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
611 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
612 | list='$(DISTFILES)'; \ | ||
613 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
614 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
615 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
616 | case $$dist_files in \ | ||
617 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
618 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
619 | sort -u` ;; \ | ||
620 | esac; \ | ||
621 | for file in $$dist_files; do \ | ||
622 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
623 | if test -d $$d/$$file; then \ | ||
624 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
625 | if test -d "$(distdir)/$$file"; then \ | ||
626 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
627 | fi; \ | ||
628 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
629 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
630 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
631 | fi; \ | ||
632 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
633 | else \ | ||
634 | test -f "$(distdir)/$$file" \ | ||
635 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
636 | || exit 1; \ | ||
637 | fi; \ | ||
638 | done | ||
639 | check-am: all-am | ||
640 | check: check-am | ||
641 | all-am: Makefile $(LTLIBRARIES) | ||
642 | installdirs: | ||
643 | for dir in "$(DESTDIR)$(pkgdir)"; do \ | ||
644 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
645 | done | ||
646 | install: install-am | ||
647 | install-exec: install-exec-am | ||
648 | install-data: install-data-am | ||
649 | uninstall: uninstall-am | ||
650 | |||
651 | install-am: all-am | ||
652 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
653 | |||
654 | installcheck: installcheck-am | ||
655 | install-strip: | ||
656 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
657 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
658 | `test -z '$(STRIP)' || \ | ||
659 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
660 | mostlyclean-generic: | ||
661 | |||
662 | clean-generic: | ||
663 | |||
664 | distclean-generic: | ||
665 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
666 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
667 | |||
668 | maintainer-clean-generic: | ||
669 | @echo "This command is intended for maintainers to use" | ||
670 | @echo "it deletes files that may require special tools to rebuild." | ||
671 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
672 | clean: clean-am | ||
673 | |||
674 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ | ||
675 | clean-pkgLTLIBRARIES mostlyclean-am | ||
676 | |||
677 | distclean: distclean-am | ||
678 | -rm -rf ./$(DEPDIR) | ||
679 | -rm -f Makefile | ||
680 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
681 | distclean-tags | ||
682 | |||
683 | dvi: dvi-am | ||
684 | |||
685 | dvi-am: | ||
686 | |||
687 | html: html-am | ||
688 | |||
689 | html-am: | ||
690 | |||
691 | info: info-am | ||
692 | |||
693 | info-am: | ||
694 | |||
695 | install-data-am: install-pkgLTLIBRARIES | ||
696 | |||
697 | install-dvi: install-dvi-am | ||
698 | |||
699 | install-dvi-am: | ||
700 | |||
701 | install-exec-am: | ||
702 | |||
703 | install-html: install-html-am | ||
704 | |||
705 | install-html-am: | ||
706 | |||
707 | install-info: install-info-am | ||
708 | |||
709 | install-info-am: | ||
710 | |||
711 | install-man: | ||
712 | |||
713 | install-pdf: install-pdf-am | ||
714 | |||
715 | install-pdf-am: | ||
716 | |||
717 | install-ps: install-ps-am | ||
718 | |||
719 | install-ps-am: | ||
720 | |||
721 | installcheck-am: | ||
722 | |||
723 | maintainer-clean: maintainer-clean-am | ||
724 | -rm -rf ./$(DEPDIR) | ||
725 | -rm -f Makefile | ||
726 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
727 | |||
728 | mostlyclean: mostlyclean-am | ||
729 | |||
730 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
731 | mostlyclean-libtool | ||
732 | |||
733 | pdf: pdf-am | ||
734 | |||
735 | pdf-am: | ||
736 | |||
737 | ps: ps-am | ||
738 | |||
739 | ps-am: | ||
740 | |||
741 | uninstall-am: uninstall-pkgLTLIBRARIES | ||
742 | |||
743 | .MAKE: install-am install-strip | ||
744 | |||
745 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
746 | clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \ | ||
747 | ctags distclean distclean-compile distclean-generic \ | ||
748 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
749 | html-am info info-am install install-am install-data \ | ||
750 | install-data-am install-dvi install-dvi-am install-exec \ | ||
751 | install-exec-am install-html install-html-am install-info \ | ||
752 | install-info-am install-man install-pdf install-pdf-am \ | ||
753 | install-pkgLTLIBRARIES install-ps install-ps-am install-strip \ | ||
754 | installcheck installcheck-am installdirs maintainer-clean \ | ||
755 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
756 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
757 | tags uninstall uninstall-am uninstall-pkgLTLIBRARIES | ||
758 | |||
759 | |||
760 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
761 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
762 | .NOEXPORT: | ||
diff --git a/libraries/evas/src/modules/loaders/pmaps/evas_image_load_pmaps.c b/libraries/evas/src/modules/loaders/pmaps/evas_image_load_pmaps.c deleted file mode 100644 index 393e407..0000000 --- a/libraries/evas/src/modules/loaders/pmaps/evas_image_load_pmaps.c +++ /dev/null | |||
@@ -1,590 +0,0 @@ | |||
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 | #define FILE_BUFFER_SIZE 1024 * 32 | ||
13 | #define FILE_BUFFER_UNREAD_SIZE 16 | ||
14 | |||
15 | static Eina_Bool evas_image_load_file_head_pmaps(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
16 | static Eina_Bool evas_image_load_file_data_pmaps(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
17 | |||
18 | Evas_Image_Load_Func evas_image_load_pmaps_func = { | ||
19 | EINA_TRUE, | ||
20 | evas_image_load_file_head_pmaps, | ||
21 | evas_image_load_file_data_pmaps, | ||
22 | NULL, | ||
23 | EINA_FALSE | ||
24 | }; | ||
25 | |||
26 | /* The buffer to load pmaps images */ | ||
27 | typedef struct Pmaps_Buffer Pmaps_Buffer; | ||
28 | |||
29 | struct Pmaps_Buffer | ||
30 | { | ||
31 | Eina_File *file; | ||
32 | void *map; | ||
33 | size_t position; | ||
34 | |||
35 | /* the buffer */ | ||
36 | DATA8 buffer[FILE_BUFFER_SIZE]; | ||
37 | DATA8 unread[FILE_BUFFER_UNREAD_SIZE]; | ||
38 | DATA8 *current; | ||
39 | DATA8 *end; | ||
40 | char type[3]; | ||
41 | unsigned char unread_len:7; | ||
42 | unsigned char last_buffer:1; | ||
43 | |||
44 | /* image properties */ | ||
45 | int w; | ||
46 | int h; | ||
47 | int max; | ||
48 | |||
49 | /* interface */ | ||
50 | int (*int_get) (Pmaps_Buffer *b, int *val); | ||
51 | int (*color_get) (Pmaps_Buffer *b, DATA32 *color); | ||
52 | }; | ||
53 | |||
54 | /* internal used functions */ | ||
55 | static Eina_Bool pmaps_buffer_open(Pmaps_Buffer *b, const char *filename, int *error); | ||
56 | static void pmaps_buffer_close(Pmaps_Buffer *b); | ||
57 | static Eina_Bool pmaps_buffer_header_parse(Pmaps_Buffer *b, int *error); | ||
58 | static int pmaps_buffer_plain_int_get(Pmaps_Buffer *b, int *val); | ||
59 | static int pmaps_buffer_1byte_int_get(Pmaps_Buffer *b, int *val); | ||
60 | static int pmaps_buffer_2byte_int_get(Pmaps_Buffer *b, int *val); | ||
61 | static int pmaps_buffer_gray_get(Pmaps_Buffer *b, DATA32 *color); | ||
62 | static int pmaps_buffer_rgb_get(Pmaps_Buffer *b, DATA32 *color); | ||
63 | static int pmaps_buffer_plain_bw_get(Pmaps_Buffer *b, DATA32 *color); | ||
64 | |||
65 | static size_t pmaps_buffer_plain_update(Pmaps_Buffer *b); | ||
66 | static size_t pmaps_buffer_raw_update(Pmaps_Buffer *b); | ||
67 | static int pmaps_buffer_comment_skip(Pmaps_Buffer *b); | ||
68 | |||
69 | static Eina_Bool | ||
70 | evas_image_load_file_head_pmaps(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error) | ||
71 | { | ||
72 | Pmaps_Buffer b; | ||
73 | |||
74 | if (!pmaps_buffer_open(&b, file, error)) | ||
75 | { | ||
76 | pmaps_buffer_close(&b); | ||
77 | return EINA_FALSE; | ||
78 | } | ||
79 | |||
80 | if (!pmaps_buffer_header_parse(&b, error)) | ||
81 | { | ||
82 | pmaps_buffer_close(&b); | ||
83 | return EINA_FALSE; | ||
84 | } | ||
85 | |||
86 | ie->w = b.w; | ||
87 | ie->h = b.h; | ||
88 | |||
89 | pmaps_buffer_close(&b); | ||
90 | *error = EVAS_LOAD_ERROR_NONE; | ||
91 | return EINA_TRUE; | ||
92 | } | ||
93 | |||
94 | static Eina_Bool | ||
95 | evas_image_load_file_data_pmaps(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error) | ||
96 | { | ||
97 | Pmaps_Buffer b; | ||
98 | int pixels; | ||
99 | DATA32 *ptr; | ||
100 | |||
101 | if (!pmaps_buffer_open(&b, file, error)) | ||
102 | { | ||
103 | pmaps_buffer_close(&b); | ||
104 | return EINA_FALSE; | ||
105 | } | ||
106 | |||
107 | if (!pmaps_buffer_header_parse(&b, error)) | ||
108 | { | ||
109 | pmaps_buffer_close(&b); | ||
110 | return EINA_FALSE; | ||
111 | } | ||
112 | |||
113 | pixels = b.w * b.h; | ||
114 | |||
115 | evas_cache_image_surface_alloc(ie, b.w, b.h); | ||
116 | ptr = evas_cache_image_pixels(ie); | ||
117 | if (!ptr) | ||
118 | { | ||
119 | pmaps_buffer_close(&b); | ||
120 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
121 | return EINA_FALSE; | ||
122 | } | ||
123 | |||
124 | if (b.type[1] != '4') | ||
125 | { | ||
126 | while (pixels > 0 && b.color_get(&b, ptr)) | ||
127 | { | ||
128 | pixels--; | ||
129 | ptr++; | ||
130 | } | ||
131 | } | ||
132 | else | ||
133 | { | ||
134 | while (pixels > 0 | ||
135 | && (b.current != b.end || pmaps_buffer_raw_update(&b))) | ||
136 | { | ||
137 | int i; | ||
138 | |||
139 | for (i = 7; i >= 0 && pixels > 0; i--) | ||
140 | { | ||
141 | if (*b.current & (1 << i)) | ||
142 | *ptr = 0xff000000; | ||
143 | else | ||
144 | *ptr = 0xffffffff; | ||
145 | ptr++; | ||
146 | pixels--; | ||
147 | } | ||
148 | b.current++; | ||
149 | } | ||
150 | } | ||
151 | |||
152 | /* if there are some pix missing, give them a proper default */ | ||
153 | memset(ptr, 0xff, 4 * pixels); | ||
154 | pmaps_buffer_close(&b); | ||
155 | |||
156 | *error = EVAS_LOAD_ERROR_NONE; | ||
157 | return EINA_TRUE; | ||
158 | } | ||
159 | |||
160 | /* internal used functions */ | ||
161 | static Eina_Bool | ||
162 | pmaps_buffer_open(Pmaps_Buffer *b, const char *filename, int *error) | ||
163 | { | ||
164 | size_t len; | ||
165 | |||
166 | b->file = eina_file_open(filename, EINA_FALSE); | ||
167 | if (!b->file) | ||
168 | { | ||
169 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
170 | return EINA_FALSE; | ||
171 | } | ||
172 | |||
173 | b->map = eina_file_map_all(b->file, EINA_FILE_SEQUENTIAL); | ||
174 | if (!b->map) | ||
175 | { | ||
176 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
177 | eina_file_close(b->file); | ||
178 | b->file = NULL; | ||
179 | return EINA_FALSE; | ||
180 | } | ||
181 | |||
182 | b->position = 0; | ||
183 | *b->buffer = 0; | ||
184 | *b->unread = 0; | ||
185 | b->last_buffer = 0; | ||
186 | b->unread_len = 0; | ||
187 | |||
188 | len = pmaps_buffer_plain_update(b); | ||
189 | |||
190 | if (len < 3) | ||
191 | { | ||
192 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
193 | eina_file_map_free(b->file, b->map); | ||
194 | eina_file_close(b->file); | ||
195 | b->map = NULL; | ||
196 | b->file = NULL; | ||
197 | return EINA_FALSE; | ||
198 | } | ||
199 | |||
200 | /* copy the type */ | ||
201 | b->type[0] = b->buffer[0]; | ||
202 | b->type[1] = b->buffer[1]; | ||
203 | b->type[2] = 0; | ||
204 | /* skip the PX */ | ||
205 | b->current = b->buffer + 2; | ||
206 | |||
207 | *error = EVAS_LOAD_ERROR_NONE; | ||
208 | return EINA_TRUE; | ||
209 | } | ||
210 | |||
211 | static void | ||
212 | pmaps_buffer_close(Pmaps_Buffer *b) | ||
213 | { | ||
214 | if (b->file) | ||
215 | { | ||
216 | if (b->map) eina_file_map_free(b->file, b->map); | ||
217 | b->map = NULL; | ||
218 | eina_file_close(b->file); | ||
219 | b->file = NULL; | ||
220 | } | ||
221 | } | ||
222 | |||
223 | static Eina_Bool | ||
224 | pmaps_buffer_header_parse(Pmaps_Buffer *b, int *error) | ||
225 | { | ||
226 | /* if there is no P at the beginning it is not a file we can parse */ | ||
227 | if (b->type[0] != 'P') | ||
228 | { | ||
229 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
230 | return EINA_FALSE; | ||
231 | } | ||
232 | |||
233 | /* get the width */ | ||
234 | if (!pmaps_buffer_plain_int_get(b, &(b->w)) || b->w < 1) | ||
235 | { | ||
236 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
237 | return EINA_FALSE; | ||
238 | } | ||
239 | |||
240 | /* get the height */ | ||
241 | if (!pmaps_buffer_plain_int_get(b, &(b->h)) || b->h < 1) | ||
242 | { | ||
243 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
244 | return EINA_FALSE; | ||
245 | } | ||
246 | |||
247 | /* get the maximum value. P1 and P4 don't have a maximum value. */ | ||
248 | if (!(b->type[1] == '1' || b->type[1] == '4') | ||
249 | && (!pmaps_buffer_plain_int_get(b, &(b->max)) || b->max < 1)) | ||
250 | { | ||
251 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
252 | return EINA_FALSE; | ||
253 | } | ||
254 | |||
255 | /* set up the color get callback */ | ||
256 | switch (b->type[1]) | ||
257 | { | ||
258 | /* Black and White */ | ||
259 | case '1': | ||
260 | b->color_get = pmaps_buffer_plain_bw_get; | ||
261 | break; | ||
262 | case '4': | ||
263 | /* Binary black and white use another format */ | ||
264 | b->color_get = NULL; | ||
265 | break; | ||
266 | case '2': | ||
267 | case '5': | ||
268 | b->color_get = pmaps_buffer_gray_get; | ||
269 | break; | ||
270 | case '3': | ||
271 | case '6': | ||
272 | b->color_get = pmaps_buffer_rgb_get; | ||
273 | break; | ||
274 | case '7': | ||
275 | /* XXX write me */ | ||
276 | return 0; | ||
277 | break; | ||
278 | default: | ||
279 | return 0; | ||
280 | } | ||
281 | /* set up the int get callback */ | ||
282 | switch (b->type[1]) | ||
283 | { | ||
284 | /* RAW */ | ||
285 | case '5': | ||
286 | case '6': | ||
287 | if (b->max < 256) | ||
288 | b->int_get = pmaps_buffer_1byte_int_get; | ||
289 | else | ||
290 | b->int_get = pmaps_buffer_2byte_int_get; | ||
291 | |||
292 | if (b->current == b->end && !pmaps_buffer_raw_update(b)) | ||
293 | return 0; | ||
294 | |||
295 | b->current++; | ||
296 | break; | ||
297 | /* Plain */ | ||
298 | case '2': | ||
299 | case '3': | ||
300 | b->int_get = pmaps_buffer_plain_int_get; | ||
301 | break; | ||
302 | /* Black and White Bitmaps don't use that callback */ | ||
303 | case '1': | ||
304 | case '4': | ||
305 | b->int_get = NULL; | ||
306 | /* we need to skip the next character fpr P4 it | ||
307 | * doesn't hurt if we do it for the P1 as well */ | ||
308 | b->current++; | ||
309 | break; | ||
310 | } | ||
311 | return 1; | ||
312 | } | ||
313 | |||
314 | static size_t | ||
315 | pmaps_buffer_plain_update(Pmaps_Buffer *b) | ||
316 | { | ||
317 | size_t r; | ||
318 | size_t max; | ||
319 | |||
320 | /* if we already are in the last buffer we can not update it */ | ||
321 | if (b->last_buffer) | ||
322 | return 0; | ||
323 | |||
324 | /* if we have unread bytes we need to put them before the new read | ||
325 | * stuff */ | ||
326 | if (b->unread_len) | ||
327 | memcpy(b->buffer, b->unread, b->unread_len); | ||
328 | |||
329 | max = FILE_BUFFER_SIZE - b->unread_len - 1; | ||
330 | if (b->position + max > eina_file_size_get(b->file)) | ||
331 | max = eina_file_size_get(b->file) - b->position; | ||
332 | |||
333 | memcpy(&b->buffer[b->unread_len], b->map + b->position, max); | ||
334 | b->position += max; | ||
335 | r = max + b->unread_len; | ||
336 | |||
337 | /* we haven't read anything nor have we bytes in the unread buffer */ | ||
338 | if (r == 0) | ||
339 | { | ||
340 | b->buffer[0] = '\0'; | ||
341 | b->end = b->buffer; | ||
342 | b->last_buffer = 1; | ||
343 | return 0; | ||
344 | } | ||
345 | |||
346 | if (r < FILE_BUFFER_SIZE - 1) | ||
347 | { | ||
348 | /*we reached eof */ ; | ||
349 | b->last_buffer = 1; | ||
350 | } | ||
351 | |||
352 | b->buffer[r] = 0; | ||
353 | |||
354 | b->unread[0] = '\0'; | ||
355 | b->unread_len = 0; | ||
356 | |||
357 | b->buffer[r] = '\0'; | ||
358 | b->current = b->buffer; | ||
359 | b->end = b->buffer + r; | ||
360 | |||
361 | return r; | ||
362 | } | ||
363 | |||
364 | static size_t | ||
365 | pmaps_buffer_raw_update(Pmaps_Buffer *b) | ||
366 | { | ||
367 | size_t r; | ||
368 | size_t max; | ||
369 | |||
370 | if (b->last_buffer) | ||
371 | return 0; | ||
372 | |||
373 | if (b->unread_len) | ||
374 | memcpy(b->buffer, b->unread, b->unread_len); | ||
375 | |||
376 | max = FILE_BUFFER_SIZE - b->unread_len; | ||
377 | if (b->position + max > eina_file_size_get(b->file)) | ||
378 | max = eina_file_size_get(b->file) - b->position; | ||
379 | |||
380 | memcpy(&b->buffer[b->unread_len], b->map + b->position, max); | ||
381 | b->position += max; | ||
382 | r = max + b->unread_len; | ||
383 | |||
384 | if (r < FILE_BUFFER_SIZE) | ||
385 | { | ||
386 | /*we reached eof */ | ||
387 | b->last_buffer = 1; | ||
388 | } | ||
389 | |||
390 | b->end = b->buffer + r; | ||
391 | b->current = b->buffer; | ||
392 | |||
393 | if (b->unread_len) | ||
394 | { | ||
395 | /* the buffer is now read */ | ||
396 | *b->unread = 0; | ||
397 | b->unread_len = 0; | ||
398 | } | ||
399 | |||
400 | return r; | ||
401 | } | ||
402 | |||
403 | static int | ||
404 | pmaps_buffer_plain_int_get(Pmaps_Buffer *b, int *val) | ||
405 | { | ||
406 | char *start; | ||
407 | DATA8 lastc; | ||
408 | |||
409 | /* first skip all white space | ||
410 | * Note: we are skipping here actually every character than is not | ||
411 | * a digit */ | ||
412 | while (!isdigit(*b->current)) | ||
413 | { | ||
414 | if (*b->current == '\0') | ||
415 | { | ||
416 | if (!pmaps_buffer_plain_update(b)) | ||
417 | return 0; | ||
418 | |||
419 | continue; | ||
420 | } | ||
421 | if (*b->current == '#' && !pmaps_buffer_comment_skip(b)) | ||
422 | return 0; | ||
423 | b->current++; | ||
424 | } | ||
425 | |||
426 | start = (char *)b->current; | ||
427 | /* now find the end of the number */ | ||
428 | while (isdigit(*b->current)) | ||
429 | b->current++; | ||
430 | |||
431 | lastc = *b->current; | ||
432 | *b->current = '\0'; | ||
433 | *val = atoi(start); | ||
434 | *b->current = lastc; | ||
435 | |||
436 | return 1; | ||
437 | } | ||
438 | |||
439 | static int | ||
440 | pmaps_buffer_1byte_int_get(Pmaps_Buffer *b, int *val) | ||
441 | { | ||
442 | /* are we at the end of the buffer? */ | ||
443 | if (b->current == b->end && !pmaps_buffer_raw_update(b)) | ||
444 | return 0; | ||
445 | |||
446 | *val = *b->current; | ||
447 | b->current++; | ||
448 | |||
449 | return 1; | ||
450 | } | ||
451 | static int | ||
452 | pmaps_buffer_2byte_int_get(Pmaps_Buffer *b, int *val) | ||
453 | { | ||
454 | /* are we at the end of the buffer? */ | ||
455 | if (b->current == b->end && !pmaps_buffer_raw_update(b)) | ||
456 | return 0; | ||
457 | |||
458 | *val = (int)(*b->current << 8); | ||
459 | b->current++; | ||
460 | |||
461 | /* are we at the end of the buffer? */ | ||
462 | if (b->current == b->end && !pmaps_buffer_raw_update(b)) | ||
463 | return 0; | ||
464 | |||
465 | *val |= *b->current; | ||
466 | b->current++; | ||
467 | |||
468 | return 1; | ||
469 | } | ||
470 | |||
471 | static int | ||
472 | pmaps_buffer_comment_skip(Pmaps_Buffer *b) | ||
473 | { | ||
474 | while (*b->current != '\n') | ||
475 | { | ||
476 | if (*b->current == '\0') | ||
477 | { | ||
478 | if (!pmaps_buffer_plain_update(b)) | ||
479 | return 0; | ||
480 | |||
481 | continue; | ||
482 | } | ||
483 | b->current++; | ||
484 | } | ||
485 | return 1; | ||
486 | } | ||
487 | |||
488 | static int | ||
489 | pmaps_buffer_rgb_get(Pmaps_Buffer *b, DATA32 *color) | ||
490 | { | ||
491 | int vr, vg, vb; | ||
492 | |||
493 | if (!b->int_get(b, &vr) || !b->int_get(b, &vg) || !b->int_get(b, &vb)) | ||
494 | return 0; | ||
495 | |||
496 | if (b->max != 255) | ||
497 | { | ||
498 | vr = (vr * 255) / b->max; | ||
499 | vg = (vg * 255) / b->max; | ||
500 | vb = (vb * 255) / b->max; | ||
501 | } | ||
502 | if (vr > 255) | ||
503 | vr = 255; | ||
504 | if (vg > 255) | ||
505 | vg = 255; | ||
506 | if (vb > 255) | ||
507 | vb = 255; | ||
508 | |||
509 | *color = ARGB_JOIN(0xff, vr, vg, vb); | ||
510 | |||
511 | return 1; | ||
512 | } | ||
513 | |||
514 | static int | ||
515 | pmaps_buffer_gray_get(Pmaps_Buffer *b, DATA32 *color) | ||
516 | { | ||
517 | int val; | ||
518 | |||
519 | if (!b->int_get(b, &val)) | ||
520 | return 0; | ||
521 | |||
522 | if (b->max != 255) | ||
523 | val = (val * 255) / b->max; | ||
524 | if (val > 255) | ||
525 | val = 255; | ||
526 | *color = ARGB_JOIN(0xff, val, val, val); | ||
527 | |||
528 | return 1; | ||
529 | } | ||
530 | |||
531 | static int | ||
532 | pmaps_buffer_plain_bw_get(Pmaps_Buffer *b, DATA32 *val) | ||
533 | { | ||
534 | /* first skip all white space | ||
535 | * Note: we are skipping here actually every character than is not | ||
536 | * a digit */ | ||
537 | while (!isdigit(*b->current)) | ||
538 | { | ||
539 | if (*b->current == '\0') | ||
540 | { | ||
541 | if (!pmaps_buffer_raw_update(b)) | ||
542 | return 0; | ||
543 | |||
544 | continue; | ||
545 | } | ||
546 | if (*b->current == '#' && !pmaps_buffer_comment_skip(b)) | ||
547 | return 0; | ||
548 | b->current++; | ||
549 | } | ||
550 | |||
551 | if (*b->current == '0') | ||
552 | *val = 0xffffffff; | ||
553 | else | ||
554 | *val = 0xff000000; | ||
555 | |||
556 | b->current++; | ||
557 | |||
558 | return 1; | ||
559 | } | ||
560 | |||
561 | /* external functions */ | ||
562 | static int | ||
563 | module_open(Evas_Module *em) | ||
564 | { | ||
565 | if (!em) | ||
566 | return 0; | ||
567 | em->functions = (void *)(&evas_image_load_pmaps_func); | ||
568 | return 1; | ||
569 | } | ||
570 | |||
571 | static void | ||
572 | module_close(Evas_Module *em __UNUSED__) | ||
573 | { | ||
574 | } | ||
575 | |||
576 | static Evas_Module_Api evas_modapi = { | ||
577 | EVAS_MODULE_API_VERSION, | ||
578 | "pmaps", | ||
579 | "none", | ||
580 | { | ||
581 | module_open, | ||
582 | module_close | ||
583 | } | ||
584 | }; | ||
585 | |||
586 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, pmaps); | ||
587 | |||
588 | #ifndef EVAS_STATIC_BUILD_PMAPS | ||
589 | EVAS_EINA_MODULE_DEFINE(image_loader, pmaps); | ||
590 | #endif | ||
diff --git a/libraries/evas/src/modules/loaders/png/Makefile.am b/libraries/evas/src/modules/loaders/png/Makefile.am deleted file mode 100644 index 884cdec..0000000 --- a/libraries/evas/src/modules/loaders/png/Makefile.am +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
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 | @EINA_CFLAGS@ \ | ||
11 | @evas_image_loader_png_cflags@ \ | ||
12 | @EVIL_CFLAGS@ | ||
13 | |||
14 | if BUILD_LOADER_PNG | ||
15 | if !EVAS_STATIC_BUILD_PNG | ||
16 | |||
17 | pkgdir = $(libdir)/evas/modules/loaders/png/$(MODULE_ARCH) | ||
18 | pkg_LTLIBRARIES = module.la | ||
19 | |||
20 | module_la_SOURCES = evas_image_load_png.c | ||
21 | |||
22 | module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_png_libs@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
23 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
24 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
25 | |||
26 | else | ||
27 | |||
28 | noinst_LTLIBRARIES = libevas_loader_png.la | ||
29 | libevas_loader_png_la_SOURCES = evas_image_load_png.c | ||
30 | libevas_loader_png_la_LIBADD = @evas_image_loader_png_libs@ | ||
31 | |||
32 | endif | ||
33 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/png/Makefile.in b/libraries/evas/src/modules/loaders/png/Makefile.in deleted file mode 100644 index 13352bc..0000000 --- a/libraries/evas/src/modules/loaders/png/Makefile.in +++ /dev/null | |||
@@ -1,762 +0,0 @@ | |||
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/png | ||
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_png_la_DEPENDENCIES = | ||
83 | am__libevas_loader_png_la_SOURCES_DIST = evas_image_load_png.c | ||
84 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_TRUE@am_libevas_loader_png_la_OBJECTS = evas_image_load_png.lo | ||
85 | libevas_loader_png_la_OBJECTS = $(am_libevas_loader_png_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_TRUE@am_libevas_loader_png_la_rpath = | ||
90 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
91 | am__module_la_SOURCES_DIST = evas_image_load_png.c | ||
92 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_png.lo | ||
93 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
94 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
95 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
96 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@am_module_la_rpath = \ | ||
98 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@ -rpath \ | ||
99 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@ $(pkgdir) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_png_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_png_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
185 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
186 | FGREP = @FGREP@ | ||
187 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
188 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
189 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
190 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
191 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
192 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
193 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
194 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
195 | GREP = @GREP@ | ||
196 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
197 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
198 | INSTALL = @INSTALL@ | ||
199 | INSTALL_DATA = @INSTALL_DATA@ | ||
200 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
201 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
202 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
203 | LD = @LD@ | ||
204 | LDFLAGS = @LDFLAGS@ | ||
205 | LIBOBJS = @LIBOBJS@ | ||
206 | LIBS = @LIBS@ | ||
207 | LIBTOOL = @LIBTOOL@ | ||
208 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
209 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
210 | LIPO = @LIPO@ | ||
211 | LN_S = @LN_S@ | ||
212 | LTLIBOBJS = @LTLIBOBJS@ | ||
213 | MAKEINFO = @MAKEINFO@ | ||
214 | MKDIR_P = @MKDIR_P@ | ||
215 | MODULE_ARCH = @MODULE_ARCH@ | ||
216 | NM = @NM@ | ||
217 | NMEDIT = @NMEDIT@ | ||
218 | OBJC = @OBJC@ | ||
219 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
220 | OBJCFLAGS = @OBJCFLAGS@ | ||
221 | OBJDUMP = @OBJDUMP@ | ||
222 | OBJEXT = @OBJEXT@ | ||
223 | OTOOL = @OTOOL@ | ||
224 | OTOOL64 = @OTOOL64@ | ||
225 | PACKAGE = @PACKAGE@ | ||
226 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
227 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
228 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
229 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
230 | PACKAGE_URL = @PACKAGE_URL@ | ||
231 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
232 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
233 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
234 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
235 | PKG_CONFIG = @PKG_CONFIG@ | ||
236 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
237 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
238 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
239 | PNG_LIBS = @PNG_LIBS@ | ||
240 | RANLIB = @RANLIB@ | ||
241 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
242 | SDL_LIBS = @SDL_LIBS@ | ||
243 | SED = @SED@ | ||
244 | SET_MAKE = @SET_MAKE@ | ||
245 | SHELL = @SHELL@ | ||
246 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
247 | STRIP = @STRIP@ | ||
248 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
249 | SVG_LIBS = @SVG_LIBS@ | ||
250 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
251 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
252 | VERSION = @VERSION@ | ||
253 | VMAJ = @VMAJ@ | ||
254 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
255 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
256 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
257 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
258 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
259 | XCB_LIBS = @XCB_LIBS@ | ||
260 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
261 | XEXT_LIBS = @XEXT_LIBS@ | ||
262 | XMKMF = @XMKMF@ | ||
263 | X_CFLAGS = @X_CFLAGS@ | ||
264 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
265 | X_LIBS = @X_LIBS@ | ||
266 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
267 | abs_builddir = @abs_builddir@ | ||
268 | abs_srcdir = @abs_srcdir@ | ||
269 | abs_top_builddir = @abs_top_builddir@ | ||
270 | abs_top_srcdir = @abs_top_srcdir@ | ||
271 | ac_ct_CC = @ac_ct_CC@ | ||
272 | ac_ct_CXX = @ac_ct_CXX@ | ||
273 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
274 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
275 | altivec_cflags = @altivec_cflags@ | ||
276 | am__include = @am__include@ | ||
277 | am__leading_dot = @am__leading_dot@ | ||
278 | am__quote = @am__quote@ | ||
279 | am__tar = @am__tar@ | ||
280 | am__untar = @am__untar@ | ||
281 | bindir = @bindir@ | ||
282 | build = @build@ | ||
283 | build_alias = @build_alias@ | ||
284 | build_cpu = @build_cpu@ | ||
285 | build_os = @build_os@ | ||
286 | build_vendor = @build_vendor@ | ||
287 | builddir = @builddir@ | ||
288 | datadir = @datadir@ | ||
289 | datarootdir = @datarootdir@ | ||
290 | dlopen_libs = @dlopen_libs@ | ||
291 | docdir = @docdir@ | ||
292 | dvidir = @dvidir@ | ||
293 | edje_cc = @edje_cc@ | ||
294 | efl_doxygen = @efl_doxygen@ | ||
295 | efl_have_doxygen = @efl_have_doxygen@ | ||
296 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
297 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
298 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
299 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
300 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
301 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
302 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
303 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
304 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
305 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
306 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
307 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
308 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
309 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
310 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
311 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
312 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
313 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
314 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
315 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
316 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
317 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
318 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
319 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
320 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
321 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
322 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
323 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
324 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
325 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
326 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
327 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
328 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
329 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
330 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
331 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
332 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
333 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
334 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
335 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
336 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
337 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
338 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
339 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
340 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
341 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
342 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
343 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
344 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
345 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
346 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
347 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
348 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
349 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
350 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
351 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
352 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
353 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
354 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
355 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
356 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
357 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
358 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
359 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
360 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
361 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
362 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
363 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
364 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
365 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
366 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
367 | exec_prefix = @exec_prefix@ | ||
368 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
369 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
370 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
371 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
372 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
373 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
374 | have_lcov = @have_lcov@ | ||
375 | host = @host@ | ||
376 | host_alias = @host_alias@ | ||
377 | host_cpu = @host_cpu@ | ||
378 | host_os = @host_os@ | ||
379 | host_vendor = @host_vendor@ | ||
380 | htmldir = @htmldir@ | ||
381 | includedir = @includedir@ | ||
382 | infodir = @infodir@ | ||
383 | install_sh = @install_sh@ | ||
384 | libdir = @libdir@ | ||
385 | libexecdir = @libexecdir@ | ||
386 | localedir = @localedir@ | ||
387 | localstatedir = @localstatedir@ | ||
388 | lt_ECHO = @lt_ECHO@ | ||
389 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
390 | mandir = @mandir@ | ||
391 | mkdir_p = @mkdir_p@ | ||
392 | oldincludedir = @oldincludedir@ | ||
393 | pdfdir = @pdfdir@ | ||
394 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
395 | prefix = @prefix@ | ||
396 | program_transform_name = @program_transform_name@ | ||
397 | psdir = @psdir@ | ||
398 | pthread_cflags = @pthread_cflags@ | ||
399 | pthread_libs = @pthread_libs@ | ||
400 | release_info = @release_info@ | ||
401 | requirement_evas = @requirement_evas@ | ||
402 | sbindir = @sbindir@ | ||
403 | sharedstatedir = @sharedstatedir@ | ||
404 | srcdir = @srcdir@ | ||
405 | sysconfdir = @sysconfdir@ | ||
406 | target_alias = @target_alias@ | ||
407 | top_build_prefix = @top_build_prefix@ | ||
408 | top_builddir = @top_builddir@ | ||
409 | top_srcdir = @top_srcdir@ | ||
410 | version_info = @version_info@ | ||
411 | MAINTAINERCLEANFILES = Makefile.in | ||
412 | AM_CPPFLAGS = \ | ||
413 | -I. \ | ||
414 | -I$(top_srcdir)/src/lib \ | ||
415 | -I$(top_srcdir)/src/lib/include \ | ||
416 | @FREETYPE_CFLAGS@ \ | ||
417 | @PIXMAN_CFLAGS@ \ | ||
418 | @EINA_CFLAGS@ \ | ||
419 | @evas_image_loader_png_cflags@ \ | ||
420 | @EVIL_CFLAGS@ | ||
421 | |||
422 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@pkgdir = $(libdir)/evas/modules/loaders/png/$(MODULE_ARCH) | ||
423 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@pkg_LTLIBRARIES = module.la | ||
424 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@module_la_SOURCES = evas_image_load_png.c | ||
425 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_png_libs@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
426 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
427 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
428 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_TRUE@noinst_LTLIBRARIES = libevas_loader_png.la | ||
429 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_TRUE@libevas_loader_png_la_SOURCES = evas_image_load_png.c | ||
430 | @BUILD_LOADER_PNG_TRUE@@EVAS_STATIC_BUILD_PNG_TRUE@libevas_loader_png_la_LIBADD = @evas_image_loader_png_libs@ | ||
431 | all: all-am | ||
432 | |||
433 | .SUFFIXES: | ||
434 | .SUFFIXES: .c .lo .o .obj | ||
435 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
436 | @for dep in $?; do \ | ||
437 | case '$(am__configure_deps)' in \ | ||
438 | *$$dep*) \ | ||
439 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
440 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
441 | exit 1;; \ | ||
442 | esac; \ | ||
443 | done; \ | ||
444 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/png/Makefile'; \ | ||
445 | $(am__cd) $(top_srcdir) && \ | ||
446 | $(AUTOMAKE) --gnu src/modules/loaders/png/Makefile | ||
447 | .PRECIOUS: Makefile | ||
448 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
449 | @case '$?' in \ | ||
450 | *config.status*) \ | ||
451 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
452 | *) \ | ||
453 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
454 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
455 | esac; | ||
456 | |||
457 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
458 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
459 | |||
460 | $(top_srcdir)/configure: $(am__configure_deps) | ||
461 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
462 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
463 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
464 | $(am__aclocal_m4_deps): | ||
465 | |||
466 | clean-noinstLTLIBRARIES: | ||
467 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) | ||
468 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | ||
469 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
470 | test "$$dir" != "$$p" || dir=.; \ | ||
471 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
472 | rm -f "$${dir}/so_locations"; \ | ||
473 | done | ||
474 | install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) | ||
475 | @$(NORMAL_INSTALL) | ||
476 | test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)" | ||
477 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
478 | list2=; for p in $$list; do \ | ||
479 | if test -f $$p; then \ | ||
480 | list2="$$list2 $$p"; \ | ||
481 | else :; fi; \ | ||
482 | done; \ | ||
483 | test -z "$$list2" || { \ | ||
484 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ | ||
485 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ | ||
486 | } | ||
487 | |||
488 | uninstall-pkgLTLIBRARIES: | ||
489 | @$(NORMAL_UNINSTALL) | ||
490 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
491 | for p in $$list; do \ | ||
492 | $(am__strip_dir) \ | ||
493 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ | ||
494 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ | ||
495 | done | ||
496 | |||
497 | clean-pkgLTLIBRARIES: | ||
498 | -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) | ||
499 | @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \ | ||
500 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
501 | test "$$dir" != "$$p" || dir=.; \ | ||
502 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
503 | rm -f "$${dir}/so_locations"; \ | ||
504 | done | ||
505 | libevas_loader_png.la: $(libevas_loader_png_la_OBJECTS) $(libevas_loader_png_la_DEPENDENCIES) | ||
506 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_png_la_rpath) $(libevas_loader_png_la_OBJECTS) $(libevas_loader_png_la_LIBADD) $(LIBS) | ||
507 | module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES) | ||
508 | $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS) | ||
509 | |||
510 | mostlyclean-compile: | ||
511 | -rm -f *.$(OBJEXT) | ||
512 | |||
513 | distclean-compile: | ||
514 | -rm -f *.tab.c | ||
515 | |||
516 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_png.Plo@am__quote@ | ||
517 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_png.Plo@am__quote@ | ||
518 | |||
519 | .c.o: | ||
520 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
521 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
522 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
523 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
524 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
525 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
526 | |||
527 | .c.obj: | ||
528 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
529 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
530 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
531 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
532 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
533 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
534 | |||
535 | .c.lo: | ||
536 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
537 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
538 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
539 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
540 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
541 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
542 | |||
543 | module_la-evas_image_load_png.lo: evas_image_load_png.c | ||
544 | @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_png.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_png.Tpo -c -o module_la-evas_image_load_png.lo `test -f 'evas_image_load_png.c' || echo '$(srcdir)/'`evas_image_load_png.c | ||
545 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_png.Tpo $(DEPDIR)/module_la-evas_image_load_png.Plo | ||
546 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
547 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_png.c' object='module_la-evas_image_load_png.lo' libtool=yes @AMDEPBACKSLASH@ | ||
548 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
549 | @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_png.lo `test -f 'evas_image_load_png.c' || echo '$(srcdir)/'`evas_image_load_png.c | ||
550 | |||
551 | mostlyclean-libtool: | ||
552 | -rm -f *.lo | ||
553 | |||
554 | clean-libtool: | ||
555 | -rm -rf .libs _libs | ||
556 | |||
557 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
558 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
559 | unique=`for i in $$list; do \ | ||
560 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
561 | done | \ | ||
562 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
563 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
564 | mkid -fID $$unique | ||
565 | tags: TAGS | ||
566 | |||
567 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
568 | $(TAGS_FILES) $(LISP) | ||
569 | set x; \ | ||
570 | here=`pwd`; \ | ||
571 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
572 | unique=`for i in $$list; do \ | ||
573 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
574 | done | \ | ||
575 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
576 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
577 | shift; \ | ||
578 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
579 | test -n "$$unique" || unique=$$empty_fix; \ | ||
580 | if test $$# -gt 0; then \ | ||
581 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
582 | "$$@" $$unique; \ | ||
583 | else \ | ||
584 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
585 | $$unique; \ | ||
586 | fi; \ | ||
587 | fi | ||
588 | ctags: CTAGS | ||
589 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
590 | $(TAGS_FILES) $(LISP) | ||
591 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
592 | unique=`for i in $$list; do \ | ||
593 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
594 | done | \ | ||
595 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
596 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
597 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
598 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
599 | $$unique | ||
600 | |||
601 | GTAGS: | ||
602 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
603 | && $(am__cd) $(top_srcdir) \ | ||
604 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
605 | |||
606 | distclean-tags: | ||
607 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
608 | |||
609 | distdir: $(DISTFILES) | ||
610 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
611 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
612 | list='$(DISTFILES)'; \ | ||
613 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
614 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
615 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
616 | case $$dist_files in \ | ||
617 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
618 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
619 | sort -u` ;; \ | ||
620 | esac; \ | ||
621 | for file in $$dist_files; do \ | ||
622 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
623 | if test -d $$d/$$file; then \ | ||
624 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
625 | if test -d "$(distdir)/$$file"; then \ | ||
626 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
627 | fi; \ | ||
628 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
629 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
630 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
631 | fi; \ | ||
632 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
633 | else \ | ||
634 | test -f "$(distdir)/$$file" \ | ||
635 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
636 | || exit 1; \ | ||
637 | fi; \ | ||
638 | done | ||
639 | check-am: all-am | ||
640 | check: check-am | ||
641 | all-am: Makefile $(LTLIBRARIES) | ||
642 | installdirs: | ||
643 | for dir in "$(DESTDIR)$(pkgdir)"; do \ | ||
644 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
645 | done | ||
646 | install: install-am | ||
647 | install-exec: install-exec-am | ||
648 | install-data: install-data-am | ||
649 | uninstall: uninstall-am | ||
650 | |||
651 | install-am: all-am | ||
652 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
653 | |||
654 | installcheck: installcheck-am | ||
655 | install-strip: | ||
656 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
657 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
658 | `test -z '$(STRIP)' || \ | ||
659 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
660 | mostlyclean-generic: | ||
661 | |||
662 | clean-generic: | ||
663 | |||
664 | distclean-generic: | ||
665 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
666 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
667 | |||
668 | maintainer-clean-generic: | ||
669 | @echo "This command is intended for maintainers to use" | ||
670 | @echo "it deletes files that may require special tools to rebuild." | ||
671 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
672 | clean: clean-am | ||
673 | |||
674 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ | ||
675 | clean-pkgLTLIBRARIES mostlyclean-am | ||
676 | |||
677 | distclean: distclean-am | ||
678 | -rm -rf ./$(DEPDIR) | ||
679 | -rm -f Makefile | ||
680 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
681 | distclean-tags | ||
682 | |||
683 | dvi: dvi-am | ||
684 | |||
685 | dvi-am: | ||
686 | |||
687 | html: html-am | ||
688 | |||
689 | html-am: | ||
690 | |||
691 | info: info-am | ||
692 | |||
693 | info-am: | ||
694 | |||
695 | install-data-am: install-pkgLTLIBRARIES | ||
696 | |||
697 | install-dvi: install-dvi-am | ||
698 | |||
699 | install-dvi-am: | ||
700 | |||
701 | install-exec-am: | ||
702 | |||
703 | install-html: install-html-am | ||
704 | |||
705 | install-html-am: | ||
706 | |||
707 | install-info: install-info-am | ||
708 | |||
709 | install-info-am: | ||
710 | |||
711 | install-man: | ||
712 | |||
713 | install-pdf: install-pdf-am | ||
714 | |||
715 | install-pdf-am: | ||
716 | |||
717 | install-ps: install-ps-am | ||
718 | |||
719 | install-ps-am: | ||
720 | |||
721 | installcheck-am: | ||
722 | |||
723 | maintainer-clean: maintainer-clean-am | ||
724 | -rm -rf ./$(DEPDIR) | ||
725 | -rm -f Makefile | ||
726 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
727 | |||
728 | mostlyclean: mostlyclean-am | ||
729 | |||
730 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
731 | mostlyclean-libtool | ||
732 | |||
733 | pdf: pdf-am | ||
734 | |||
735 | pdf-am: | ||
736 | |||
737 | ps: ps-am | ||
738 | |||
739 | ps-am: | ||
740 | |||
741 | uninstall-am: uninstall-pkgLTLIBRARIES | ||
742 | |||
743 | .MAKE: install-am install-strip | ||
744 | |||
745 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
746 | clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \ | ||
747 | ctags distclean distclean-compile distclean-generic \ | ||
748 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
749 | html-am info info-am install install-am install-data \ | ||
750 | install-data-am install-dvi install-dvi-am install-exec \ | ||
751 | install-exec-am install-html install-html-am install-info \ | ||
752 | install-info-am install-man install-pdf install-pdf-am \ | ||
753 | install-pkgLTLIBRARIES install-ps install-ps-am install-strip \ | ||
754 | installcheck installcheck-am installdirs maintainer-clean \ | ||
755 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
756 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
757 | tags uninstall uninstall-am uninstall-pkgLTLIBRARIES | ||
758 | |||
759 | |||
760 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
761 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
762 | .NOEXPORT: | ||
diff --git a/libraries/evas/src/modules/loaders/png/evas_image_load_png.c b/libraries/evas/src/modules/loaders/png/evas_image_load_png.c deleted file mode 100644 index 3007a57..0000000 --- a/libraries/evas/src/modules/loaders/png/evas_image_load_png.c +++ /dev/null | |||
@@ -1,329 +0,0 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
5 | #include <stdio.h> | ||
6 | #include <png.h> | ||
7 | #include <setjmp.h> | ||
8 | |||
9 | #ifdef HAVE_EVIL | ||
10 | # include <Evil.h> | ||
11 | #endif | ||
12 | |||
13 | #ifdef _WIN32_WCE | ||
14 | # define E_FOPEN(file, mode) evil_fopen_native((file), (mode)) | ||
15 | # define E_FREAD(buffer, size, count, stream) evil_fread_native(buffer, size, count, stream) | ||
16 | # define E_FCLOSE(stream) evil_fclose_native(stream) | ||
17 | #else | ||
18 | # define E_FOPEN(file, mode) fopen((file), (mode)) | ||
19 | # define E_FREAD(buffer, size, count, stream) fread(buffer, size, count, stream) | ||
20 | # define E_FCLOSE(stream) fclose(stream) | ||
21 | #endif | ||
22 | |||
23 | #include "evas_common.h" | ||
24 | #include "evas_private.h" | ||
25 | |||
26 | |||
27 | #define PNG_BYTES_TO_CHECK 4 | ||
28 | |||
29 | |||
30 | static Eina_Bool evas_image_load_file_head_png(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
31 | static Eina_Bool evas_image_load_file_data_png(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
32 | |||
33 | static Evas_Image_Load_Func evas_image_load_png_func = | ||
34 | { | ||
35 | EINA_TRUE, | ||
36 | evas_image_load_file_head_png, | ||
37 | evas_image_load_file_data_png, | ||
38 | NULL, | ||
39 | EINA_FALSE | ||
40 | }; | ||
41 | |||
42 | static Eina_Bool | ||
43 | evas_image_load_file_head_png(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error) | ||
44 | { | ||
45 | png_uint_32 w32, h32; | ||
46 | FILE *f; | ||
47 | png_structp png_ptr = NULL; | ||
48 | png_infop info_ptr = NULL; | ||
49 | int bit_depth, color_type, interlace_type; | ||
50 | unsigned char buf[PNG_BYTES_TO_CHECK]; | ||
51 | char hasa; | ||
52 | |||
53 | hasa = 0; | ||
54 | f = E_FOPEN(file, "rb"); | ||
55 | if (!f) | ||
56 | { | ||
57 | ERR("File: '%s' does not exist\n", file); | ||
58 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
59 | return EINA_FALSE; | ||
60 | } | ||
61 | |||
62 | /* if we havent read the header before, set the header data */ | ||
63 | if (E_FREAD(buf, PNG_BYTES_TO_CHECK, 1, f) != 1) | ||
64 | { | ||
65 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
66 | goto close_file; | ||
67 | } | ||
68 | |||
69 | if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK)) | ||
70 | { | ||
71 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
72 | goto close_file; | ||
73 | } | ||
74 | |||
75 | png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); | ||
76 | if (!png_ptr) | ||
77 | { | ||
78 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
79 | goto close_file; | ||
80 | } | ||
81 | |||
82 | info_ptr = png_create_info_struct(png_ptr); | ||
83 | if (!info_ptr) | ||
84 | { | ||
85 | png_destroy_read_struct(&png_ptr, NULL, NULL); | ||
86 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
87 | goto close_file; | ||
88 | } | ||
89 | if (setjmp(png_jmpbuf(png_ptr))) | ||
90 | { | ||
91 | png_destroy_read_struct(&png_ptr, &info_ptr, NULL); | ||
92 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
93 | goto close_file; | ||
94 | } | ||
95 | png_init_io(png_ptr, f); | ||
96 | png_set_sig_bytes(png_ptr, PNG_BYTES_TO_CHECK); | ||
97 | png_read_info(png_ptr, info_ptr); | ||
98 | png_get_IHDR(png_ptr, info_ptr, (png_uint_32 *) (&w32), | ||
99 | (png_uint_32 *) (&h32), &bit_depth, &color_type, | ||
100 | &interlace_type, NULL, NULL); | ||
101 | if ((w32 < 1) || (h32 < 1) || (w32 > IMG_MAX_SIZE) || (h32 > IMG_MAX_SIZE) || | ||
102 | IMG_TOO_BIG(w32, h32)) | ||
103 | { | ||
104 | png_destroy_read_struct(&png_ptr, &info_ptr, NULL); | ||
105 | if (IMG_TOO_BIG(w32, h32)) | ||
106 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
107 | else | ||
108 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
109 | goto close_file; | ||
110 | } | ||
111 | if (ie->load_opts.scale_down_by > 1) | ||
112 | { | ||
113 | ie->w = (int) w32 / ie->load_opts.scale_down_by; | ||
114 | ie->h = (int) h32 / ie->load_opts.scale_down_by; | ||
115 | if ((ie->w < 1) || (ie->h < 1)) | ||
116 | { | ||
117 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
118 | goto close_file; | ||
119 | } | ||
120 | } | ||
121 | else | ||
122 | { | ||
123 | ie->w = (int) w32; | ||
124 | ie->h = (int) h32; | ||
125 | } | ||
126 | if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) hasa = 1; | ||
127 | if (color_type == PNG_COLOR_TYPE_RGB_ALPHA) hasa = 1; | ||
128 | if (color_type == PNG_COLOR_TYPE_GRAY_ALPHA) hasa = 1; | ||
129 | if (hasa) ie->flags.alpha = 1; | ||
130 | png_destroy_read_struct(&png_ptr, &info_ptr, NULL); | ||
131 | E_FCLOSE(f); | ||
132 | |||
133 | *error = EVAS_LOAD_ERROR_NONE; | ||
134 | return EINA_TRUE; | ||
135 | |||
136 | close_file: | ||
137 | E_FCLOSE(f); | ||
138 | return EINA_FALSE; | ||
139 | } | ||
140 | |||
141 | static Eina_Bool | ||
142 | evas_image_load_file_data_png(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error) | ||
143 | { | ||
144 | unsigned char *surface; | ||
145 | png_uint_32 w32, h32; | ||
146 | int w, h; | ||
147 | FILE *f; | ||
148 | png_structp png_ptr = NULL; | ||
149 | png_infop info_ptr = NULL; | ||
150 | int bit_depth, color_type, interlace_type; | ||
151 | unsigned char buf[PNG_BYTES_TO_CHECK]; | ||
152 | unsigned char **lines; | ||
153 | char hasa; | ||
154 | int i, j; | ||
155 | int scale_ratio = 1, image_w = 0; | ||
156 | unsigned char *tmp_line; | ||
157 | DATA32 *src_ptr, *dst_ptr; | ||
158 | |||
159 | hasa = 0; | ||
160 | f = E_FOPEN(file, "rb"); | ||
161 | if (!f) | ||
162 | { | ||
163 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
164 | return EINA_FALSE; | ||
165 | } | ||
166 | |||
167 | /* if we havent read the header before, set the header data */ | ||
168 | if (E_FREAD(buf, PNG_BYTES_TO_CHECK, 1, f) != 1) | ||
169 | { | ||
170 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
171 | goto close_file; | ||
172 | } | ||
173 | if (png_sig_cmp(buf, 0, PNG_BYTES_TO_CHECK)) | ||
174 | { | ||
175 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
176 | goto close_file; | ||
177 | } | ||
178 | png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); | ||
179 | if (!png_ptr) | ||
180 | { | ||
181 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
182 | goto close_file; | ||
183 | } | ||
184 | |||
185 | info_ptr = png_create_info_struct(png_ptr); | ||
186 | if (!info_ptr) | ||
187 | { | ||
188 | png_destroy_read_struct(&png_ptr, NULL, NULL); | ||
189 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
190 | goto close_file; | ||
191 | } | ||
192 | if (setjmp(png_jmpbuf(png_ptr))) | ||
193 | { | ||
194 | png_destroy_read_struct(&png_ptr, &info_ptr, NULL); | ||
195 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
196 | goto close_file; | ||
197 | } | ||
198 | png_init_io(png_ptr, f); | ||
199 | png_set_sig_bytes(png_ptr, PNG_BYTES_TO_CHECK); | ||
200 | png_read_info(png_ptr, info_ptr); | ||
201 | png_get_IHDR(png_ptr, info_ptr, (png_uint_32 *) (&w32), | ||
202 | (png_uint_32 *) (&h32), &bit_depth, &color_type, | ||
203 | &interlace_type, NULL, NULL); | ||
204 | image_w = w32; | ||
205 | if (ie->load_opts.scale_down_by > 1) | ||
206 | { | ||
207 | scale_ratio = ie->load_opts.scale_down_by; | ||
208 | w32 /= scale_ratio; | ||
209 | h32 /= scale_ratio; | ||
210 | } | ||
211 | evas_cache_image_surface_alloc(ie, w32, h32); | ||
212 | surface = (unsigned char *) evas_cache_image_pixels(ie); | ||
213 | if (!surface) | ||
214 | { | ||
215 | png_destroy_read_struct(&png_ptr, &info_ptr, NULL); | ||
216 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
217 | goto close_file; | ||
218 | } | ||
219 | if ((w32 != ie->w) || (h32 != ie->h)) | ||
220 | { | ||
221 | png_destroy_read_struct(&png_ptr, &info_ptr, NULL); | ||
222 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
223 | goto close_file; | ||
224 | } | ||
225 | if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) hasa = 1; | ||
226 | if (color_type == PNG_COLOR_TYPE_RGB_ALPHA) hasa = 1; | ||
227 | if (color_type == PNG_COLOR_TYPE_GRAY_ALPHA) hasa = 1; | ||
228 | if (hasa) ie->flags.alpha = 1; | ||
229 | |||
230 | /* Prep for transformations... ultimately we want ARGB */ | ||
231 | /* expand palette -> RGB if necessary */ | ||
232 | if (color_type == PNG_COLOR_TYPE_PALETTE) png_set_palette_to_rgb(png_ptr); | ||
233 | /* expand gray (w/reduced bits) -> 8-bit RGB if necessary */ | ||
234 | if ((color_type == PNG_COLOR_TYPE_GRAY) || | ||
235 | (color_type == PNG_COLOR_TYPE_GRAY_ALPHA)) | ||
236 | { | ||
237 | png_set_gray_to_rgb(png_ptr); | ||
238 | if (bit_depth < 8) png_set_expand_gray_1_2_4_to_8(png_ptr); | ||
239 | } | ||
240 | /* expand transparency entry -> alpha channel if present */ | ||
241 | if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) | ||
242 | png_set_tRNS_to_alpha(png_ptr); | ||
243 | /* reduce 16bit color -> 8bit color if necessary */ | ||
244 | if (bit_depth > 8) png_set_strip_16(png_ptr); | ||
245 | /* pack all pixels to byte boundaries */ | ||
246 | png_set_packing(png_ptr); | ||
247 | |||
248 | w = ie->w; | ||
249 | h = ie->h; | ||
250 | /* we want ARGB */ | ||
251 | #ifdef WORDS_BIGENDIAN | ||
252 | png_set_swap_alpha(png_ptr); | ||
253 | if (!hasa) png_set_filler(png_ptr, 0xff, PNG_FILLER_BEFORE); | ||
254 | #else | ||
255 | png_set_bgr(png_ptr); | ||
256 | if (!hasa) png_set_filler(png_ptr, 0xff, PNG_FILLER_AFTER); | ||
257 | #endif | ||
258 | |||
259 | /* we read image line by line if scale down was set */ | ||
260 | if (scale_ratio == 1) | ||
261 | { | ||
262 | lines = (unsigned char **) alloca(h * sizeof(unsigned char *)); | ||
263 | for (i = 0; i < h; i++) | ||
264 | lines[i] = surface + (i * w * sizeof(DATA32)); | ||
265 | png_read_image(png_ptr, lines); | ||
266 | png_read_end(png_ptr, info_ptr); | ||
267 | } | ||
268 | else | ||
269 | { | ||
270 | tmp_line = (unsigned char *) alloca(image_w * sizeof(DATA32)); | ||
271 | dst_ptr = (DATA32 *)surface; | ||
272 | for (i = 0; i < h; i++) | ||
273 | { | ||
274 | png_read_row(png_ptr, tmp_line, NULL); | ||
275 | src_ptr = (DATA32 *)tmp_line; | ||
276 | for (j = 0; j < w; j++) | ||
277 | { | ||
278 | *dst_ptr = *src_ptr; | ||
279 | dst_ptr++; | ||
280 | src_ptr += scale_ratio; | ||
281 | } | ||
282 | for (j = 0; j < (scale_ratio - 1); j++) | ||
283 | { | ||
284 | png_read_row(png_ptr, tmp_line, NULL); | ||
285 | } | ||
286 | } | ||
287 | } | ||
288 | |||
289 | png_destroy_read_struct(&png_ptr, &info_ptr, NULL); | ||
290 | E_FCLOSE(f); | ||
291 | evas_common_image_premul(ie); | ||
292 | |||
293 | *error = EVAS_LOAD_ERROR_NONE; | ||
294 | return EINA_TRUE; | ||
295 | |||
296 | close_file: | ||
297 | E_FCLOSE(f); | ||
298 | return EINA_FALSE; | ||
299 | } | ||
300 | |||
301 | static int | ||
302 | module_open(Evas_Module *em) | ||
303 | { | ||
304 | if (!em) return 0; | ||
305 | em->functions = (void *)(&evas_image_load_png_func); | ||
306 | return 1; | ||
307 | } | ||
308 | |||
309 | static void | ||
310 | module_close(Evas_Module *em __UNUSED__) | ||
311 | { | ||
312 | } | ||
313 | |||
314 | static Evas_Module_Api evas_modapi = | ||
315 | { | ||
316 | EVAS_MODULE_API_VERSION, | ||
317 | "png", | ||
318 | "none", | ||
319 | { | ||
320 | module_open, | ||
321 | module_close | ||
322 | } | ||
323 | }; | ||
324 | |||
325 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, png); | ||
326 | |||
327 | #ifndef EVAS_STATIC_BUILD_PNG | ||
328 | EVAS_EINA_MODULE_DEFINE(image_loader, png); | ||
329 | #endif | ||
diff --git a/libraries/evas/src/modules/loaders/psd/Makefile.am b/libraries/evas/src/modules/loaders/psd/Makefile.am deleted file mode 100644 index a87e492..0000000 --- a/libraries/evas/src/modules/loaders/psd/Makefile.am +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
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 | @EINA_CFLAGS@ \ | ||
11 | @EVIL_CFLAGS@ | ||
12 | |||
13 | if BUILD_LOADER_PSD | ||
14 | if !EVAS_STATIC_BUILD_PSD | ||
15 | |||
16 | pkgdir = $(libdir)/evas/modules/loaders/psd/$(MODULE_ARCH) | ||
17 | pkg_LTLIBRARIES = module.la | ||
18 | |||
19 | module_la_SOURCES = evas_image_load_psd.c | ||
20 | |||
21 | module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
22 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
23 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
24 | |||
25 | else | ||
26 | |||
27 | noinst_LTLIBRARIES = libevas_loader_psd.la | ||
28 | libevas_loader_psd_la_SOURCES = evas_image_load_psd.c | ||
29 | libevas_loader_psd_la_LIBADD = | ||
30 | |||
31 | endif | ||
32 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/psd/Makefile.in b/libraries/evas/src/modules/loaders/psd/Makefile.in deleted file mode 100644 index b1987c6..0000000 --- a/libraries/evas/src/modules/loaders/psd/Makefile.in +++ /dev/null | |||
@@ -1,761 +0,0 @@ | |||
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/psd | ||
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_psd_la_DEPENDENCIES = | ||
83 | am__libevas_loader_psd_la_SOURCES_DIST = evas_image_load_psd.c | ||
84 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_TRUE@am_libevas_loader_psd_la_OBJECTS = evas_image_load_psd.lo | ||
85 | libevas_loader_psd_la_OBJECTS = $(am_libevas_loader_psd_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_TRUE@am_libevas_loader_psd_la_rpath = | ||
90 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
91 | am__module_la_SOURCES_DIST = evas_image_load_psd.c | ||
92 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_psd.lo | ||
93 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
94 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
95 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
96 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@am_module_la_rpath = \ | ||
98 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@ -rpath \ | ||
99 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@ $(pkgdir) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_psd_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_psd_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
185 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
186 | FGREP = @FGREP@ | ||
187 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
188 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
189 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
190 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
191 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
192 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
193 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
194 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
195 | GREP = @GREP@ | ||
196 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
197 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
198 | INSTALL = @INSTALL@ | ||
199 | INSTALL_DATA = @INSTALL_DATA@ | ||
200 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
201 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
202 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
203 | LD = @LD@ | ||
204 | LDFLAGS = @LDFLAGS@ | ||
205 | LIBOBJS = @LIBOBJS@ | ||
206 | LIBS = @LIBS@ | ||
207 | LIBTOOL = @LIBTOOL@ | ||
208 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
209 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
210 | LIPO = @LIPO@ | ||
211 | LN_S = @LN_S@ | ||
212 | LTLIBOBJS = @LTLIBOBJS@ | ||
213 | MAKEINFO = @MAKEINFO@ | ||
214 | MKDIR_P = @MKDIR_P@ | ||
215 | MODULE_ARCH = @MODULE_ARCH@ | ||
216 | NM = @NM@ | ||
217 | NMEDIT = @NMEDIT@ | ||
218 | OBJC = @OBJC@ | ||
219 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
220 | OBJCFLAGS = @OBJCFLAGS@ | ||
221 | OBJDUMP = @OBJDUMP@ | ||
222 | OBJEXT = @OBJEXT@ | ||
223 | OTOOL = @OTOOL@ | ||
224 | OTOOL64 = @OTOOL64@ | ||
225 | PACKAGE = @PACKAGE@ | ||
226 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
227 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
228 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
229 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
230 | PACKAGE_URL = @PACKAGE_URL@ | ||
231 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
232 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
233 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
234 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
235 | PKG_CONFIG = @PKG_CONFIG@ | ||
236 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
237 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
238 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
239 | PNG_LIBS = @PNG_LIBS@ | ||
240 | RANLIB = @RANLIB@ | ||
241 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
242 | SDL_LIBS = @SDL_LIBS@ | ||
243 | SED = @SED@ | ||
244 | SET_MAKE = @SET_MAKE@ | ||
245 | SHELL = @SHELL@ | ||
246 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
247 | STRIP = @STRIP@ | ||
248 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
249 | SVG_LIBS = @SVG_LIBS@ | ||
250 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
251 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
252 | VERSION = @VERSION@ | ||
253 | VMAJ = @VMAJ@ | ||
254 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
255 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
256 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
257 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
258 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
259 | XCB_LIBS = @XCB_LIBS@ | ||
260 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
261 | XEXT_LIBS = @XEXT_LIBS@ | ||
262 | XMKMF = @XMKMF@ | ||
263 | X_CFLAGS = @X_CFLAGS@ | ||
264 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
265 | X_LIBS = @X_LIBS@ | ||
266 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
267 | abs_builddir = @abs_builddir@ | ||
268 | abs_srcdir = @abs_srcdir@ | ||
269 | abs_top_builddir = @abs_top_builddir@ | ||
270 | abs_top_srcdir = @abs_top_srcdir@ | ||
271 | ac_ct_CC = @ac_ct_CC@ | ||
272 | ac_ct_CXX = @ac_ct_CXX@ | ||
273 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
274 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
275 | altivec_cflags = @altivec_cflags@ | ||
276 | am__include = @am__include@ | ||
277 | am__leading_dot = @am__leading_dot@ | ||
278 | am__quote = @am__quote@ | ||
279 | am__tar = @am__tar@ | ||
280 | am__untar = @am__untar@ | ||
281 | bindir = @bindir@ | ||
282 | build = @build@ | ||
283 | build_alias = @build_alias@ | ||
284 | build_cpu = @build_cpu@ | ||
285 | build_os = @build_os@ | ||
286 | build_vendor = @build_vendor@ | ||
287 | builddir = @builddir@ | ||
288 | datadir = @datadir@ | ||
289 | datarootdir = @datarootdir@ | ||
290 | dlopen_libs = @dlopen_libs@ | ||
291 | docdir = @docdir@ | ||
292 | dvidir = @dvidir@ | ||
293 | edje_cc = @edje_cc@ | ||
294 | efl_doxygen = @efl_doxygen@ | ||
295 | efl_have_doxygen = @efl_have_doxygen@ | ||
296 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
297 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
298 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
299 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
300 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
301 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
302 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
303 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
304 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
305 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
306 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
307 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
308 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
309 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
310 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
311 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
312 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
313 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
314 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
315 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
316 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
317 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
318 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
319 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
320 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
321 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
322 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
323 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
324 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
325 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
326 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
327 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
328 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
329 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
330 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
331 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
332 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
333 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
334 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
335 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
336 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
337 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
338 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
339 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
340 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
341 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
342 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
343 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
344 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
345 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
346 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
347 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
348 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
349 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
350 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
351 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
352 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
353 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
354 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
355 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
356 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
357 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
358 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
359 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
360 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
361 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
362 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
363 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
364 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
365 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
366 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
367 | exec_prefix = @exec_prefix@ | ||
368 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
369 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
370 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
371 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
372 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
373 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
374 | have_lcov = @have_lcov@ | ||
375 | host = @host@ | ||
376 | host_alias = @host_alias@ | ||
377 | host_cpu = @host_cpu@ | ||
378 | host_os = @host_os@ | ||
379 | host_vendor = @host_vendor@ | ||
380 | htmldir = @htmldir@ | ||
381 | includedir = @includedir@ | ||
382 | infodir = @infodir@ | ||
383 | install_sh = @install_sh@ | ||
384 | libdir = @libdir@ | ||
385 | libexecdir = @libexecdir@ | ||
386 | localedir = @localedir@ | ||
387 | localstatedir = @localstatedir@ | ||
388 | lt_ECHO = @lt_ECHO@ | ||
389 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
390 | mandir = @mandir@ | ||
391 | mkdir_p = @mkdir_p@ | ||
392 | oldincludedir = @oldincludedir@ | ||
393 | pdfdir = @pdfdir@ | ||
394 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
395 | prefix = @prefix@ | ||
396 | program_transform_name = @program_transform_name@ | ||
397 | psdir = @psdir@ | ||
398 | pthread_cflags = @pthread_cflags@ | ||
399 | pthread_libs = @pthread_libs@ | ||
400 | release_info = @release_info@ | ||
401 | requirement_evas = @requirement_evas@ | ||
402 | sbindir = @sbindir@ | ||
403 | sharedstatedir = @sharedstatedir@ | ||
404 | srcdir = @srcdir@ | ||
405 | sysconfdir = @sysconfdir@ | ||
406 | target_alias = @target_alias@ | ||
407 | top_build_prefix = @top_build_prefix@ | ||
408 | top_builddir = @top_builddir@ | ||
409 | top_srcdir = @top_srcdir@ | ||
410 | version_info = @version_info@ | ||
411 | MAINTAINERCLEANFILES = Makefile.in | ||
412 | AM_CPPFLAGS = \ | ||
413 | -I. \ | ||
414 | -I$(top_srcdir)/src/lib \ | ||
415 | -I$(top_srcdir)/src/lib/include \ | ||
416 | @FREETYPE_CFLAGS@ \ | ||
417 | @PIXMAN_CFLAGS@ \ | ||
418 | @EINA_CFLAGS@ \ | ||
419 | @EVIL_CFLAGS@ | ||
420 | |||
421 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@pkgdir = $(libdir)/evas/modules/loaders/psd/$(MODULE_ARCH) | ||
422 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@pkg_LTLIBRARIES = module.la | ||
423 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@module_la_SOURCES = evas_image_load_psd.c | ||
424 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
425 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
426 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
427 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_TRUE@noinst_LTLIBRARIES = libevas_loader_psd.la | ||
428 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_TRUE@libevas_loader_psd_la_SOURCES = evas_image_load_psd.c | ||
429 | @BUILD_LOADER_PSD_TRUE@@EVAS_STATIC_BUILD_PSD_TRUE@libevas_loader_psd_la_LIBADD = | ||
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/psd/Makefile'; \ | ||
444 | $(am__cd) $(top_srcdir) && \ | ||
445 | $(AUTOMAKE) --gnu src/modules/loaders/psd/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_psd.la: $(libevas_loader_psd_la_OBJECTS) $(libevas_loader_psd_la_DEPENDENCIES) | ||
505 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_psd_la_rpath) $(libevas_loader_psd_la_OBJECTS) $(libevas_loader_psd_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_psd.Plo@am__quote@ | ||
516 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_psd.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_psd.lo: evas_image_load_psd.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_psd.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_psd.Tpo -c -o module_la-evas_image_load_psd.lo `test -f 'evas_image_load_psd.c' || echo '$(srcdir)/'`evas_image_load_psd.c | ||
544 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_psd.Tpo $(DEPDIR)/module_la-evas_image_load_psd.Plo | ||
545 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
546 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_psd.c' object='module_la-evas_image_load_psd.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_psd.lo `test -f 'evas_image_load_psd.c' || echo '$(srcdir)/'`evas_image_load_psd.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/psd/evas_image_load_psd.c b/libraries/evas/src/modules/loaders/psd/evas_image_load_psd.c deleted file mode 100644 index 4449db0..0000000 --- a/libraries/evas/src/modules/loaders/psd/evas_image_load_psd.c +++ /dev/null | |||
@@ -1,1002 +0,0 @@ | |||
1 | #define _XOPEN_SOURCE | ||
2 | |||
3 | #ifdef HAVE_CONFIG_H | ||
4 | # include <config.h> | ||
5 | #endif | ||
6 | |||
7 | #include <stdlib.h> | ||
8 | #include <stdio.h> | ||
9 | #include <string.h> | ||
10 | #include <errno.h> | ||
11 | |||
12 | #include <math.h> | ||
13 | #include <sys/types.h> | ||
14 | #include <sys/stat.h> | ||
15 | #include <fcntl.h> | ||
16 | |||
17 | #ifdef HAVE_NETINET_IN_H | ||
18 | # include <netinet/in.h> | ||
19 | #endif | ||
20 | |||
21 | #ifdef HAVE_UNISTD_H | ||
22 | # include <unistd.h> | ||
23 | #endif | ||
24 | |||
25 | #ifdef HAVE_EVIL | ||
26 | # include <Evil.h> | ||
27 | #endif | ||
28 | |||
29 | #include "evas_common.h" | ||
30 | #include "evas_private.h" | ||
31 | |||
32 | typedef struct _PSD_Header PSD_Header; | ||
33 | |||
34 | typedef enum _PSD_Mode | ||
35 | { | ||
36 | PSD_GREYSCALE = 1, | ||
37 | PSD_INDEXED = 2, | ||
38 | PSD_RGB = 3, | ||
39 | PSD_CMYK = 4 | ||
40 | } PSD_Mode; | ||
41 | |||
42 | struct _PSD_Header | ||
43 | { | ||
44 | unsigned char signature[4]; | ||
45 | unsigned short version; | ||
46 | unsigned char reserved[9]; | ||
47 | unsigned short channels; | ||
48 | unsigned int height; | ||
49 | unsigned int width; | ||
50 | unsigned short depth; | ||
51 | |||
52 | unsigned short channel_num; | ||
53 | |||
54 | PSD_Mode mode; | ||
55 | }; | ||
56 | |||
57 | enum { | ||
58 | READ_COMPRESSED_SUCCESS, | ||
59 | READ_COMPRESSED_ERROR_FILE_CORRUPT, | ||
60 | READ_COMPRESSED_ERROR_FILE_READ_ERROR | ||
61 | }; | ||
62 | |||
63 | static Eina_Bool get_compressed_channels_length(PSD_Header *Head, | ||
64 | const unsigned char *map, size_t length, size_t *position, | ||
65 | unsigned short *rle_table, | ||
66 | unsigned int *chanlen); | ||
67 | |||
68 | static int | ||
69 | read_ushort(const unsigned char *map, size_t length, size_t *position, unsigned short *ret) | ||
70 | { | ||
71 | if (*position + 2 > length) return 0; | ||
72 | // FIXME: need to check order | ||
73 | *ret = (map[(*position) + 0] << 8) | map[(*position) + 1]; | ||
74 | *position += 2; | ||
75 | return 1; | ||
76 | } | ||
77 | |||
78 | static int | ||
79 | read_uint(const unsigned char *map, size_t length, size_t *position, unsigned int *ret) | ||
80 | { | ||
81 | if (*position + 4 > length) return 0; | ||
82 | // FIXME: need to check order | ||
83 | *ret = ARGB_JOIN(map[(*position) + 0], map[(*position) + 1], map[(*position) + 2], map[(*position) + 3]); | ||
84 | *position += 4; | ||
85 | return 1; | ||
86 | } | ||
87 | |||
88 | static int | ||
89 | read_block(const unsigned char *map, size_t length, size_t *position, void *target, size_t size) | ||
90 | { | ||
91 | if (*position + size > length) return 0; | ||
92 | memcpy(target, map + *position, size); | ||
93 | *position += size; | ||
94 | return 1; | ||
95 | } | ||
96 | |||
97 | // Internal function used to get the Psd header from the current file. | ||
98 | Eina_Bool | ||
99 | psd_get_header(PSD_Header *header, const unsigned char *map, size_t length, size_t *position) | ||
100 | { | ||
101 | unsigned short tmp; | ||
102 | |||
103 | #define CHECK_RET(Call) \ | ||
104 | if (!Call) return EINA_FALSE; | ||
105 | |||
106 | CHECK_RET(read_block(map, length, position, header->signature, 4)); | ||
107 | CHECK_RET(read_ushort(map, length, position, &header->version)); | ||
108 | CHECK_RET(read_block(map, length, position, header->reserved, 6)); | ||
109 | CHECK_RET(read_ushort(map, length, position, &header->channels)); | ||
110 | CHECK_RET(read_uint(map, length, position, &header->height)); | ||
111 | CHECK_RET(read_uint(map, length, position, &header->width)); | ||
112 | CHECK_RET(read_ushort(map, length, position, &header->depth)); | ||
113 | |||
114 | CHECK_RET(read_ushort(map, length, position, &tmp)); | ||
115 | header->mode = tmp; | ||
116 | |||
117 | #undef CHECK_RET | ||
118 | |||
119 | /* fprintf(stderr, "<<<<<<<<<<<\nsignature : %c%c%c%c\n", */ | ||
120 | /* header->signature[0], */ | ||
121 | /* header->signature[1], */ | ||
122 | /* header->signature[2], */ | ||
123 | /* header->signature[3]); */ | ||
124 | /* fprintf(stderr, "version : %i\n", header->version); */ | ||
125 | /* fprintf(stderr, "channels : %i\n", header->channels); */ | ||
126 | /* fprintf(stderr, "width x height : %dx%d\n", header->width, header->height); */ | ||
127 | /* fprintf(stderr, "depth : %i\n", header->depth); */ | ||
128 | /* fprintf(stderr, "mode : %i\n>>>>>>>>>>>>\n", header->mode); */ | ||
129 | |||
130 | return EINA_TRUE; | ||
131 | } | ||
132 | |||
133 | |||
134 | // Internal function used to check if the HEADER is a valid Psd header. | ||
135 | Eina_Bool | ||
136 | is_psd(PSD_Header *header) | ||
137 | { | ||
138 | if (strncmp((char*)header->signature, "8BPS", 4)) | ||
139 | return EINA_FALSE; | ||
140 | if (header->version != 1) | ||
141 | return EINA_FALSE; | ||
142 | if (header->channels < 1 || header->channels > 24) | ||
143 | return EINA_FALSE; | ||
144 | if (header->height < 1 || header->width < 1) | ||
145 | return EINA_FALSE; | ||
146 | if (header->depth != 1 && header->depth != 8 && header->depth != 16) | ||
147 | return EINA_FALSE; | ||
148 | |||
149 | return EINA_TRUE; | ||
150 | } | ||
151 | |||
152 | static Eina_Bool | ||
153 | evas_image_load_file_head_psd(Image_Entry *ie, const char *FileName, | ||
154 | const char *key __UNUSED__, int *error) | ||
155 | { | ||
156 | Eina_File *f; | ||
157 | void *map; | ||
158 | size_t length; | ||
159 | size_t position; | ||
160 | PSD_Header header; | ||
161 | Eina_Bool correct; | ||
162 | |||
163 | *error = EVAS_LOAD_ERROR_NONE; | ||
164 | |||
165 | f = eina_file_open(FileName, 0); | ||
166 | if (f == NULL) | ||
167 | { | ||
168 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
169 | return EINA_FALSE; | ||
170 | } | ||
171 | |||
172 | map = eina_file_map_all(f, EINA_FILE_SEQUENTIAL); | ||
173 | length = eina_file_size_get(f); | ||
174 | position = 0; | ||
175 | if (!map || length < 1) | ||
176 | { | ||
177 | eina_file_close(f); | ||
178 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
179 | return EINA_FALSE; | ||
180 | } | ||
181 | correct = psd_get_header(&header, map, length, &position); | ||
182 | |||
183 | eina_file_map_free(f, map); | ||
184 | eina_file_close(f); | ||
185 | |||
186 | if (!correct || !is_psd(&header)) | ||
187 | { | ||
188 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
189 | return EINA_FALSE; | ||
190 | } | ||
191 | |||
192 | ie->w = header.width; | ||
193 | ie->h = header.height; | ||
194 | if (header.channels == 3) ie->flags.alpha = 0; | ||
195 | else ie->flags.alpha = 1; | ||
196 | |||
197 | return EINA_TRUE; | ||
198 | } | ||
199 | |||
200 | static unsigned int | ||
201 | read_compressed_channel(const unsigned char *map, size_t length, size_t *position, | ||
202 | const unsigned int channel_length __UNUSED__, | ||
203 | unsigned int size, | ||
204 | unsigned char* channel) | ||
205 | { | ||
206 | // FIXME: what does channel_length means, and why is it not used | ||
207 | unsigned int i; | ||
208 | char headbyte, c; | ||
209 | |||
210 | #define CHECK_RET(Call) \ | ||
211 | if (!Call) return READ_COMPRESSED_ERROR_FILE_READ_ERROR; \ | ||
212 | |||
213 | for (i = 0; i < size; ) | ||
214 | { | ||
215 | CHECK_RET(read_block(map, length, position, &headbyte, 1)); | ||
216 | |||
217 | if (headbyte >= 0) | ||
218 | { | ||
219 | if (i + headbyte > size) | ||
220 | return READ_COMPRESSED_ERROR_FILE_CORRUPT; | ||
221 | CHECK_RET(read_block(map, length, position, channel + i, headbyte + 1)); | ||
222 | |||
223 | i += headbyte + 1; | ||
224 | } | ||
225 | else if (headbyte >= -127 && headbyte <= -1) | ||
226 | { | ||
227 | int run; | ||
228 | |||
229 | CHECK_RET(read_block(map, length, position, &c, 1)); | ||
230 | |||
231 | run = c; | ||
232 | /* if (run == -1) */ | ||
233 | /* return READ_COMPRESSED_ERROR_FILE_READ_ERROR; */ | ||
234 | |||
235 | if (i + (-headbyte + 1) > size) | ||
236 | return READ_COMPRESSED_ERROR_FILE_CORRUPT; | ||
237 | |||
238 | memset(channel + i, run, -headbyte + 1); | ||
239 | i += -headbyte + 1; | ||
240 | } | ||
241 | } | ||
242 | |||
243 | #undef CHECK_RET | ||
244 | |||
245 | return READ_COMPRESSED_SUCCESS; | ||
246 | } | ||
247 | |||
248 | |||
249 | Eina_Bool | ||
250 | psd_get_data(Image_Entry *ie __UNUSED__, | ||
251 | PSD_Header *head, | ||
252 | const unsigned char *map, size_t length, size_t *position, | ||
253 | unsigned char *buffer, Eina_Bool compressed, | ||
254 | int *error) | ||
255 | { | ||
256 | unsigned int c, x, y, numchan, bps, bpc, bpp; | ||
257 | unsigned int pixels_count; | ||
258 | unsigned char *channel = NULL; | ||
259 | unsigned char *data = NULL; | ||
260 | |||
261 | // Added 01-07-2009: This is needed to correctly load greyscale and | ||
262 | // paletted images. | ||
263 | switch (head->mode) | ||
264 | { | ||
265 | case PSD_GREYSCALE: | ||
266 | case PSD_INDEXED: | ||
267 | numchan = 1; | ||
268 | break; | ||
269 | default: | ||
270 | numchan = 3; | ||
271 | } | ||
272 | |||
273 | bpp = head->channels; | ||
274 | bpc = head->depth / 8; | ||
275 | pixels_count = head->width * head->height; | ||
276 | |||
277 | data = malloc(sizeof (unsigned char) * pixels_count * bpp); | ||
278 | if (!data) return EINA_FALSE; | ||
279 | |||
280 | channel = malloc(sizeof (unsigned char) * pixels_count * bpc); | ||
281 | if (!channel) | ||
282 | { | ||
283 | free(data); | ||
284 | return EINA_FALSE; | ||
285 | } | ||
286 | |||
287 | bps = head->width * head->channels * bpc; | ||
288 | // @TODO: Add support for this in, though I have yet to run across a .psd | ||
289 | // file that uses this. | ||
290 | if (compressed && bpc == 2) | ||
291 | { | ||
292 | free(data); | ||
293 | free(channel); | ||
294 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
295 | return EINA_FALSE; | ||
296 | } | ||
297 | |||
298 | #define CHECK_RET(Call) \ | ||
299 | if (!Call) \ | ||
300 | { \ | ||
301 | free(data); \ | ||
302 | free(channel); \ | ||
303 | return EINA_FALSE; \ | ||
304 | } | ||
305 | |||
306 | if (!compressed) | ||
307 | { | ||
308 | if (bpc == 1) | ||
309 | { | ||
310 | for (c = 0; c < numchan; c++) | ||
311 | { | ||
312 | unsigned char *tmp = channel; | ||
313 | |||
314 | CHECK_RET(read_block(map, length, position, tmp, pixels_count)); | ||
315 | |||
316 | for (y = 0; y < head->height * bps; y += bps) | ||
317 | { | ||
318 | for (x = 0; x < bps; x += bpp, tmp++) | ||
319 | { | ||
320 | data[y + x + c] = *tmp; | ||
321 | } | ||
322 | } | ||
323 | } | ||
324 | |||
325 | // Accumulate any remaining channels into a single alpha channel | ||
326 | //@TODO: This needs to be changed for greyscale images. | ||
327 | for (; c < head->channels; c++) | ||
328 | { | ||
329 | unsigned char *tmp = channel; | ||
330 | |||
331 | CHECK_RET(read_block(map, length, position, channel, pixels_count)); | ||
332 | |||
333 | for (y = 0; y < head->height * bps; y += bps) | ||
334 | { | ||
335 | for (x = 0; x < bps; x += bpp, tmp++) | ||
336 | { | ||
337 | unsigned short newval; | ||
338 | |||
339 | // previous formula was : (old / 255 * new / 255) * 255 | ||
340 | newval = (*tmp) * data[y + x + 3]; | ||
341 | |||
342 | data[y + x + 3] = newval >> 8; | ||
343 | } | ||
344 | } | ||
345 | } | ||
346 | } | ||
347 | else | ||
348 | { | ||
349 | int bps2; | ||
350 | |||
351 | bps2 = bps / 2; | ||
352 | |||
353 | // iCurImage->Bpc == 2 | ||
354 | for (c = 0; c < numchan; c++) | ||
355 | { | ||
356 | unsigned short *shortptr = (unsigned short*) channel; | ||
357 | |||
358 | CHECK_RET(read_block(map, length, position, channel, pixels_count * 2)); | ||
359 | |||
360 | for (y = 0; y < head->height * bps2; y += bps2) | ||
361 | { | ||
362 | for (x = 0; x < (unsigned int)bps2; x += bpp, shortptr++) | ||
363 | { | ||
364 | ((unsigned short*)data)[y + x + c] = *shortptr; | ||
365 | } | ||
366 | } | ||
367 | } | ||
368 | |||
369 | // Accumulate any remaining channels into a single alpha channel | ||
370 | //@TODO: This needs to be changed for greyscale images. | ||
371 | for (; c < head->channels; c++) | ||
372 | { | ||
373 | unsigned short *shortptr = (unsigned short*) channel; | ||
374 | |||
375 | CHECK_RET(read_block(map, length, position, channel, pixels_count * 2)); | ||
376 | |||
377 | for (y = 0; y < head->height * bps2; y += bps2) | ||
378 | { | ||
379 | for (x = 0; x < (unsigned int)bps2; x += bpp, shortptr) | ||
380 | { | ||
381 | unsigned int newval; | ||
382 | |||
383 | newval = *shortptr * ((unsigned short*)data)[y + x + 3]; | ||
384 | |||
385 | ((unsigned short*)data)[y + x + 3] = newval >> 16; | ||
386 | } | ||
387 | } | ||
388 | } | ||
389 | } | ||
390 | } | ||
391 | else | ||
392 | { | ||
393 | unsigned short *rle_table; | ||
394 | unsigned int *chanlen; | ||
395 | |||
396 | rle_table = alloca(head->height * head->channel_num * sizeof (unsigned short)); | ||
397 | chanlen = alloca(head->channel_num * sizeof (unsigned int)); | ||
398 | if (!get_compressed_channels_length(head, map, length, position, rle_table, chanlen)) | ||
399 | goto file_read_error; | ||
400 | |||
401 | for (c = 0; c < numchan; c++) | ||
402 | { | ||
403 | unsigned char *tmp = channel; | ||
404 | int err; | ||
405 | |||
406 | err = read_compressed_channel(map, length, position, | ||
407 | chanlen[c], | ||
408 | pixels_count, | ||
409 | channel); | ||
410 | if (err == READ_COMPRESSED_ERROR_FILE_CORRUPT) | ||
411 | goto file_corrupt; | ||
412 | else if (err == READ_COMPRESSED_ERROR_FILE_READ_ERROR) | ||
413 | goto file_read_error; | ||
414 | |||
415 | for (y = 0; y < head->height * bps; y += bps) | ||
416 | { | ||
417 | for (x = 0; x < bps; x += bpp, tmp++) | ||
418 | { | ||
419 | data[y + x + c] = *tmp; | ||
420 | } | ||
421 | } | ||
422 | } | ||
423 | |||
424 | // Initialize the alpha channel to solid | ||
425 | //@TODO: This needs to be changed for greyscale images. | ||
426 | if (head->channels >= 4) | ||
427 | { | ||
428 | for (y = 0; y < head->height * bps; y += bps) | ||
429 | { | ||
430 | for (x = 0; x < bps; x += bpp) | ||
431 | { | ||
432 | data[y + x + 3] = 255; | ||
433 | } | ||
434 | } | ||
435 | |||
436 | for (; c < head->channels; c++) | ||
437 | { | ||
438 | unsigned char *tmp = channel; | ||
439 | int err; | ||
440 | |||
441 | err = read_compressed_channel(map, length, position, | ||
442 | chanlen[c], | ||
443 | pixels_count, | ||
444 | channel); | ||
445 | if (err == READ_COMPRESSED_ERROR_FILE_CORRUPT) | ||
446 | goto file_corrupt; | ||
447 | else if (err == READ_COMPRESSED_ERROR_FILE_READ_ERROR) | ||
448 | goto file_read_error; | ||
449 | |||
450 | for (y = 0; y < head->height * bps; y += bps) | ||
451 | { | ||
452 | for (x = 0; x < bps; x += bpp, tmp++) | ||
453 | { | ||
454 | unsigned short newval; | ||
455 | |||
456 | newval = *tmp * data[y + x + 3]; | ||
457 | |||
458 | data[y + x + 3] = newval >> 8; | ||
459 | } | ||
460 | } | ||
461 | } | ||
462 | } | ||
463 | } | ||
464 | |||
465 | if (bpp == 3) | ||
466 | { | ||
467 | for (x = 0; x < pixels_count; x++) | ||
468 | { | ||
469 | buffer[x * 4 + 0] = data[x * 3 + 2]; | ||
470 | buffer[x * 4 + 1] = data[x * 3 + 1]; | ||
471 | buffer[x * 4 + 2] = data[x * 3 + 0]; | ||
472 | buffer[x * 4 + 3] = 255; | ||
473 | } | ||
474 | } | ||
475 | else | ||
476 | { | ||
477 | // BRGA to RGBA | ||
478 | for (x= 0; x < pixels_count; x++) | ||
479 | { | ||
480 | buffer[x * 4 + 0] = data[x * 4 + 2]; | ||
481 | buffer[x * 4 + 1] = data[x * 4 + 1]; | ||
482 | buffer[x * 4 + 2] = data[x * 4 + 0]; | ||
483 | buffer[x * 4 + 3] = data[x * 4 + 3]; | ||
484 | } | ||
485 | } | ||
486 | |||
487 | free(channel); | ||
488 | free(data); | ||
489 | return EINA_TRUE; | ||
490 | |||
491 | #undef CHECK_RET | ||
492 | |||
493 | file_corrupt: | ||
494 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
495 | |||
496 | file_read_error: | ||
497 | free(channel); | ||
498 | free(data); | ||
499 | |||
500 | return EINA_FALSE; | ||
501 | } | ||
502 | |||
503 | |||
504 | Eina_Bool | ||
505 | get_single_channel(Image_Entry *ie __UNUSED__, | ||
506 | PSD_Header *head, | ||
507 | const unsigned char *map, size_t length, size_t *position, | ||
508 | unsigned char *buffer, | ||
509 | Eina_Bool compressed) | ||
510 | { | ||
511 | unsigned int i, bpc; | ||
512 | char headbyte; | ||
513 | int c; | ||
514 | int pixels_count; | ||
515 | |||
516 | bpc = (head->depth / 8); | ||
517 | pixels_count = head->width * head->height; | ||
518 | |||
519 | #define CHECK_RET(Call) \ | ||
520 | if (!Call) return EINA_FALSE; | ||
521 | |||
522 | if (!compressed) | ||
523 | { | ||
524 | if (bpc == 1) | ||
525 | { | ||
526 | CHECK_RET(read_block(map, length, position, buffer, pixels_count)); | ||
527 | } | ||
528 | else | ||
529 | { // Bpc == 2 | ||
530 | CHECK_RET(read_block(map, length, position, buffer, pixels_count * 2)); | ||
531 | } | ||
532 | } | ||
533 | else | ||
534 | { | ||
535 | for (i = 0; i < (unsigned int)pixels_count; ) | ||
536 | { | ||
537 | CHECK_RET(read_block(map, length, position, &headbyte, 1)); | ||
538 | |||
539 | if (headbyte >= 0) | ||
540 | { // && HeadByte <= 127 | ||
541 | CHECK_RET(read_block(map, length, position, buffer + i, headbyte + 1)); | ||
542 | |||
543 | i += headbyte + 1; | ||
544 | } | ||
545 | if (headbyte >= -127 && headbyte <= -1) | ||
546 | { | ||
547 | int run; | ||
548 | |||
549 | CHECK_RET(read_block(map, length, position, &c, 1)); | ||
550 | |||
551 | run = c; | ||
552 | if (run == -1) return EINA_FALSE; | ||
553 | |||
554 | memset(buffer + i, run, -headbyte + 1); | ||
555 | i += -headbyte + 1; | ||
556 | } | ||
557 | } | ||
558 | } | ||
559 | |||
560 | #undef CHECK_RET | ||
561 | |||
562 | return EINA_TRUE; | ||
563 | } | ||
564 | |||
565 | Eina_Bool | ||
566 | read_psd_grey(Image_Entry *ie, PSD_Header *head, const unsigned char *map, size_t length, size_t *position, int *error) | ||
567 | { | ||
568 | unsigned int color_mode, resource_size, misc_info; | ||
569 | unsigned short compressed; | ||
570 | void *surface = NULL; | ||
571 | |||
572 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
573 | |||
574 | #define CHECK_RET(Call) \ | ||
575 | if (!Call) return EINA_FALSE; | ||
576 | |||
577 | CHECK_RET(read_uint(map, length, position, &color_mode)); | ||
578 | // Skip over the 'color mode data section' | ||
579 | *position += color_mode; | ||
580 | |||
581 | CHECK_RET(read_uint(map, length, position, &resource_size)); | ||
582 | // Read the 'image resources section' | ||
583 | *position += resource_size; | ||
584 | |||
585 | CHECK_RET(read_uint(map, length, position, &misc_info)); | ||
586 | *position += misc_info; | ||
587 | |||
588 | CHECK_RET(read_ushort(map, length, position, &compressed)); | ||
589 | |||
590 | ie->w = head->width; | ||
591 | ie->h = head->height; | ||
592 | if (head->channels == 3) ie->flags.alpha = 0; | ||
593 | else ie->flags.alpha = 1; | ||
594 | |||
595 | head->channel_num = head->channels; | ||
596 | // Temporary to read only one channel...some greyscale .psd files have 2. | ||
597 | head->channels = 1; | ||
598 | |||
599 | switch (head->depth) | ||
600 | { | ||
601 | case 8: | ||
602 | case 16: | ||
603 | break; | ||
604 | default: | ||
605 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
606 | return EINA_FALSE; | ||
607 | } | ||
608 | |||
609 | evas_cache_image_surface_alloc(ie, ie->w, ie->h); | ||
610 | surface = evas_cache_image_pixels(ie); | ||
611 | if (!surface) | ||
612 | { | ||
613 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
614 | goto cleanup_error; | ||
615 | } | ||
616 | |||
617 | if (!psd_get_data(ie, head, map, length, position, surface, compressed, error)) | ||
618 | goto cleanup_error; | ||
619 | |||
620 | return EINA_TRUE; | ||
621 | |||
622 | #undef CHECK_RET | ||
623 | |||
624 | cleanup_error: | ||
625 | return EINA_FALSE; | ||
626 | } | ||
627 | |||
628 | |||
629 | Eina_Bool | ||
630 | read_psd_indexed(Image_Entry *ie, PSD_Header *head, const unsigned char *map, size_t length, size_t *position, int *error) | ||
631 | { | ||
632 | unsigned int color_mode, resource_size, misc_info; | ||
633 | unsigned short compressed; | ||
634 | void *surface; | ||
635 | |||
636 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
637 | |||
638 | #define CHECK_RET(Call) \ | ||
639 | if (!(Call)) return EINA_FALSE; | ||
640 | |||
641 | CHECK_RET(read_uint(map, length, position, &color_mode)); | ||
642 | CHECK_RET(!(color_mode % 3)); | ||
643 | /* | ||
644 | Palette = (unsigned char*)malloc(Colormode); | ||
645 | if (Palette == NULL) | ||
646 | return EINA_FALSE; | ||
647 | if (fread(&Palette, 1, Colormode, file) != Colormode) | ||
648 | goto cleanup_error; | ||
649 | */ | ||
650 | // Skip over the 'color mode data section' | ||
651 | *position += color_mode; | ||
652 | |||
653 | // Read the 'image resources section' | ||
654 | CHECK_RET(read_uint(map, length, position, &resource_size)); | ||
655 | *position += resource_size; | ||
656 | |||
657 | CHECK_RET(read_uint(map, length, position, &misc_info)); | ||
658 | *position += misc_info; | ||
659 | |||
660 | CHECK_RET(read_ushort(map, length, position, &compressed)); | ||
661 | |||
662 | if (head->channels != 1 || head->depth != 8) | ||
663 | { | ||
664 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
665 | return EINA_FALSE; | ||
666 | } | ||
667 | head->channel_num = head->channels; | ||
668 | |||
669 | ie->w = head->width; | ||
670 | ie->h = head->height; | ||
671 | if (head->channels == 3) ie->flags.alpha = 0; | ||
672 | else ie->flags.alpha = 1; | ||
673 | |||
674 | evas_cache_image_surface_alloc(ie, ie->w, ie->h); | ||
675 | surface = evas_cache_image_pixels(ie); | ||
676 | if (!surface) | ||
677 | { | ||
678 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
679 | return EINA_FALSE; | ||
680 | } | ||
681 | |||
682 | if (!psd_get_data(ie, head, map, length, position, surface, compressed, error)) | ||
683 | return EINA_FALSE; | ||
684 | return EINA_TRUE; | ||
685 | |||
686 | #undef CHECK_RET | ||
687 | } | ||
688 | |||
689 | Eina_Bool | ||
690 | read_psd_rgb(Image_Entry *ie, PSD_Header *head, const unsigned char *map, size_t length, size_t *position, int *error) | ||
691 | { | ||
692 | unsigned int color_mode, resource_size, misc_info; | ||
693 | unsigned short compressed; | ||
694 | void *surface; | ||
695 | |||
696 | #define CHECK_RET(Call) \ | ||
697 | if (!Call) return EINA_FALSE; | ||
698 | |||
699 | CHECK_RET(read_uint(map, length, position, &color_mode)); | ||
700 | // Skip over the 'color mode data section' | ||
701 | *position += color_mode; | ||
702 | |||
703 | // Read the 'image resources section' | ||
704 | CHECK_RET(read_uint(map, length, position, &resource_size)); | ||
705 | *position += resource_size; | ||
706 | |||
707 | CHECK_RET(read_uint(map, length, position, &misc_info)); | ||
708 | *position += misc_info; | ||
709 | |||
710 | CHECK_RET(read_ushort(map, length, position, &compressed)); | ||
711 | |||
712 | head->channel_num = head->channels; | ||
713 | |||
714 | switch (head->depth) | ||
715 | { | ||
716 | case 8: | ||
717 | case 16: | ||
718 | break; | ||
719 | default: | ||
720 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
721 | return EINA_FALSE; | ||
722 | } | ||
723 | ie->w = head->width; | ||
724 | ie->h = head->height; | ||
725 | if (head->channels == 3) ie->flags.alpha = 0; | ||
726 | else ie->flags.alpha = 1; | ||
727 | |||
728 | evas_cache_image_surface_alloc(ie, ie->w, ie->h); | ||
729 | surface = evas_cache_image_pixels(ie); | ||
730 | if (!surface) | ||
731 | { | ||
732 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
733 | goto cleanup_error; | ||
734 | } | ||
735 | |||
736 | if (!psd_get_data(ie, head, map, length, position, surface, compressed, error)) | ||
737 | goto cleanup_error; | ||
738 | |||
739 | evas_common_image_premul(ie); | ||
740 | return EINA_TRUE; | ||
741 | |||
742 | #undef CHECK_RET | ||
743 | |||
744 | cleanup_error: | ||
745 | return EINA_FALSE; | ||
746 | } | ||
747 | |||
748 | Eina_Bool | ||
749 | read_psd_cmyk(Image_Entry *ie, PSD_Header *head, const unsigned char *map, size_t length, size_t *position, int *error) | ||
750 | { | ||
751 | unsigned int color_mode, resource_size, misc_info, size, j, data_size; | ||
752 | unsigned short compressed; | ||
753 | unsigned int format, type; | ||
754 | unsigned char *kchannel = NULL; | ||
755 | void *surface; | ||
756 | |||
757 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
758 | |||
759 | #define CHECK_RET(Call) \ | ||
760 | if (!Call) return EINA_FALSE; | ||
761 | |||
762 | CHECK_RET(read_uint(map, length, position, &color_mode)); | ||
763 | // Skip over the 'color mode data section' | ||
764 | *position += color_mode; | ||
765 | |||
766 | CHECK_RET(read_uint(map, length, position, &resource_size)); | ||
767 | // Read the 'image resources section' | ||
768 | *position += resource_size; | ||
769 | |||
770 | CHECK_RET(read_uint(map, length, position, &misc_info)); | ||
771 | *position += misc_info; | ||
772 | |||
773 | CHECK_RET(read_ushort(map, length, position, &compressed)); | ||
774 | |||
775 | switch (head->channels) | ||
776 | { | ||
777 | case 4: | ||
778 | format = 0x1907; | ||
779 | head->channel_num = 4; | ||
780 | head->channels = 3; | ||
781 | break; | ||
782 | case 5: | ||
783 | format = 0x1908; | ||
784 | head->channel_num = 5; | ||
785 | head->channels = 4; | ||
786 | break; | ||
787 | default: | ||
788 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
789 | return EINA_FALSE; | ||
790 | } | ||
791 | |||
792 | switch (head->depth) | ||
793 | { | ||
794 | case 8: | ||
795 | type = 1; | ||
796 | break; | ||
797 | case 16: | ||
798 | type = 2; | ||
799 | break; | ||
800 | default: | ||
801 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
802 | return EINA_FALSE; | ||
803 | } | ||
804 | |||
805 | ie->w = head->width; | ||
806 | ie->h = head->height; | ||
807 | if (head->channels == 3) ie->flags.alpha = 0; | ||
808 | else ie->flags.alpha = 1; | ||
809 | |||
810 | evas_cache_image_surface_alloc(ie, ie->w, ie->h); | ||
811 | surface = evas_cache_image_pixels(ie); | ||
812 | if (!surface) | ||
813 | { | ||
814 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
815 | goto cleanup_error; | ||
816 | } | ||
817 | |||
818 | if (!psd_get_data(ie, head, map, length, position, surface, compressed, error)) | ||
819 | goto cleanup_error; | ||
820 | |||
821 | size = type * ie->w * ie->h; | ||
822 | kchannel = malloc(size); | ||
823 | if (kchannel == NULL) | ||
824 | goto cleanup_error; | ||
825 | if (!get_single_channel(ie, head, map, length, position, kchannel, compressed)) | ||
826 | goto cleanup_error; | ||
827 | |||
828 | data_size = head->channels * type * ie->w * ie->h; | ||
829 | if (format == 0x1907) | ||
830 | { | ||
831 | unsigned char *tmp = surface; | ||
832 | const unsigned char *limit = tmp + data_size; | ||
833 | |||
834 | for (j = 0; tmp < limit; tmp++, j++) | ||
835 | { | ||
836 | int k; | ||
837 | |||
838 | for (k = 0; k < 3; k++) | ||
839 | *tmp = (*tmp * kchannel[j]) >> 8; | ||
840 | |||
841 | // FIXME: tmp[i+3] = 255; | ||
842 | } | ||
843 | } | ||
844 | else | ||
845 | { // RGBA | ||
846 | unsigned char *tmp = surface; | ||
847 | const unsigned char *limit = tmp + data_size; | ||
848 | |||
849 | // The KChannel array really holds the alpha channel on this one. | ||
850 | for (j = 0; tmp < limit; tmp += 4, j++) | ||
851 | { | ||
852 | tmp[0] = (tmp[0] * tmp[3]) >> 8; | ||
853 | tmp[1] = (tmp[1] * tmp[3]) >> 8; | ||
854 | tmp[2] = (tmp[2] * tmp[3]) >> 8; | ||
855 | tmp[3] = kchannel[j]; // Swap 'K' with alpha channel. | ||
856 | } | ||
857 | } | ||
858 | |||
859 | free(kchannel); | ||
860 | |||
861 | evas_common_image_premul(ie); | ||
862 | return EINA_TRUE; | ||
863 | |||
864 | cleanup_error: | ||
865 | free(kchannel); | ||
866 | return EINA_FALSE; | ||
867 | } | ||
868 | |||
869 | static Eina_Bool | ||
870 | evas_image_load_file_data_psd(Image_Entry *ie, | ||
871 | const char *file, | ||
872 | const char *key __UNUSED__, | ||
873 | int *error) | ||
874 | { | ||
875 | Eina_File *f; | ||
876 | void *map; | ||
877 | size_t length; | ||
878 | size_t position; | ||
879 | PSD_Header header; | ||
880 | Eina_Bool bpsd = EINA_FALSE; | ||
881 | |||
882 | f = eina_file_open(file, 0); | ||
883 | if (f == NULL) | ||
884 | { | ||
885 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
886 | return bpsd; | ||
887 | } | ||
888 | |||
889 | map = eina_file_map_all(f, EINA_FILE_SEQUENTIAL); | ||
890 | length = eina_file_size_get(f); | ||
891 | position = 0; | ||
892 | if (!map || length < 1) | ||
893 | { | ||
894 | eina_file_close(f); | ||
895 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
896 | return EINA_FALSE; | ||
897 | } | ||
898 | |||
899 | if (!psd_get_header(&header, map, length, &position) || !is_psd(&header)) | ||
900 | { | ||
901 | eina_file_map_free(f, map); | ||
902 | eina_file_close(f); | ||
903 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
904 | return EINA_FALSE; | ||
905 | } | ||
906 | |||
907 | ie->w = header.width; | ||
908 | ie->h = header.height; | ||
909 | |||
910 | *error = EVAS_LOAD_ERROR_NONE; | ||
911 | |||
912 | switch (header.mode) | ||
913 | { | ||
914 | case PSD_GREYSCALE: // Greyscale | ||
915 | bpsd = read_psd_grey(ie, &header, map, length, &position, error); | ||
916 | break; | ||
917 | case PSD_INDEXED: // Indexed | ||
918 | bpsd = read_psd_indexed(ie, &header, map, length, &position, error); | ||
919 | break; | ||
920 | case PSD_RGB: // RGB | ||
921 | bpsd = read_psd_rgb(ie, &header, map, length, &position, error); | ||
922 | break; | ||
923 | case PSD_CMYK: // CMYK | ||
924 | bpsd = read_psd_cmyk(ie, &header, map, length, &position, error); | ||
925 | break; | ||
926 | default : | ||
927 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
928 | bpsd = EINA_FALSE; | ||
929 | } | ||
930 | |||
931 | eina_file_map_free(f, map); | ||
932 | eina_file_close(f); | ||
933 | |||
934 | return bpsd; | ||
935 | } | ||
936 | |||
937 | static Eina_Bool | ||
938 | get_compressed_channels_length(PSD_Header *head, | ||
939 | const unsigned char *map, size_t length, size_t *position, | ||
940 | unsigned short *rle_table, | ||
941 | unsigned int *chanlen) | ||
942 | { | ||
943 | unsigned int j; | ||
944 | unsigned int c; | ||
945 | |||
946 | if (!read_block(map, length, position, rle_table, | ||
947 | sizeof (unsigned short) * head->height * head->channel_num)) | ||
948 | return EINA_FALSE; | ||
949 | |||
950 | memset(chanlen, 0, head->channel_num * sizeof(unsigned int)); | ||
951 | for (c = 0; c < head->channel_num; c++) | ||
952 | { | ||
953 | unsigned int i; | ||
954 | |||
955 | j = c * head->height; | ||
956 | for (i = 0; i < head->height; i++) | ||
957 | { | ||
958 | chanlen[c] += rle_table[i + j]; | ||
959 | } | ||
960 | } | ||
961 | |||
962 | return EINA_TRUE; | ||
963 | } | ||
964 | |||
965 | static const Evas_Image_Load_Func evas_image_load_psd_func = { | ||
966 | EINA_TRUE, | ||
967 | evas_image_load_file_head_psd, | ||
968 | evas_image_load_file_data_psd, | ||
969 | NULL, | ||
970 | EINA_FALSE | ||
971 | }; | ||
972 | |||
973 | static int | ||
974 | module_open(Evas_Module *em) | ||
975 | { | ||
976 | if (!em) return 0; | ||
977 | em->functions = (void *)(&evas_image_load_psd_func); | ||
978 | return 1; | ||
979 | } | ||
980 | |||
981 | static void | ||
982 | module_close(Evas_Module *em __UNUSED__) | ||
983 | { | ||
984 | } | ||
985 | |||
986 | static Evas_Module_Api evas_modapi = | ||
987 | { | ||
988 | EVAS_MODULE_API_VERSION, | ||
989 | "psd", | ||
990 | "none", | ||
991 | { | ||
992 | module_open, | ||
993 | module_close | ||
994 | } | ||
995 | }; | ||
996 | |||
997 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, psd); | ||
998 | |||
999 | |||
1000 | #ifndef EVAS_STATIC_BUILD_PSD | ||
1001 | EVAS_EINA_MODULE_DEFINE(image_loader, psd); | ||
1002 | #endif | ||
diff --git a/libraries/evas/src/modules/loaders/svg/Makefile.am b/libraries/evas/src/modules/loaders/svg/Makefile.am deleted file mode 100644 index 65820ce..0000000 --- a/libraries/evas/src/modules/loaders/svg/Makefile.am +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
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 | @EINA_CFLAGS@ \ | ||
11 | @evas_image_loader_svg_cflags@ | ||
12 | |||
13 | if BUILD_LOADER_SVG | ||
14 | if !EVAS_STATIC_BUILD_SVG | ||
15 | |||
16 | pkgdir = $(libdir)/evas/modules/loaders/svg/$(MODULE_ARCH) | ||
17 | pkg_LTLIBRARIES = module.la | ||
18 | |||
19 | module_la_SOURCES = evas_image_load_svg.c | ||
20 | |||
21 | module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_svg_libs@ $(top_builddir)/src/lib/libevas.la | ||
22 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
23 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
24 | |||
25 | else | ||
26 | |||
27 | noinst_LTLIBRARIES = libevas_loader_svg.la | ||
28 | libevas_loader_svg_la_SOURCES = evas_image_load_svg.c | ||
29 | libevas_loader_svg_la_LIBADD = @evas_image_loader_svg_libs@ | ||
30 | |||
31 | endif | ||
32 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/svg/Makefile.in b/libraries/evas/src/modules/loaders/svg/Makefile.in deleted file mode 100644 index 4d23de1..0000000 --- a/libraries/evas/src/modules/loaders/svg/Makefile.in +++ /dev/null | |||
@@ -1,761 +0,0 @@ | |||
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/svg | ||
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_svg_la_DEPENDENCIES = | ||
83 | am__libevas_loader_svg_la_SOURCES_DIST = evas_image_load_svg.c | ||
84 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_TRUE@am_libevas_loader_svg_la_OBJECTS = evas_image_load_svg.lo | ||
85 | libevas_loader_svg_la_OBJECTS = $(am_libevas_loader_svg_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_TRUE@am_libevas_loader_svg_la_rpath = | ||
90 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
91 | am__module_la_SOURCES_DIST = evas_image_load_svg.c | ||
92 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_svg.lo | ||
93 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
94 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
95 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
96 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@am_module_la_rpath = \ | ||
98 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@ -rpath \ | ||
99 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@ $(pkgdir) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_svg_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_svg_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
185 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
186 | FGREP = @FGREP@ | ||
187 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
188 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
189 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
190 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
191 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
192 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
193 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
194 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
195 | GREP = @GREP@ | ||
196 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
197 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
198 | INSTALL = @INSTALL@ | ||
199 | INSTALL_DATA = @INSTALL_DATA@ | ||
200 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
201 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
202 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
203 | LD = @LD@ | ||
204 | LDFLAGS = @LDFLAGS@ | ||
205 | LIBOBJS = @LIBOBJS@ | ||
206 | LIBS = @LIBS@ | ||
207 | LIBTOOL = @LIBTOOL@ | ||
208 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
209 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
210 | LIPO = @LIPO@ | ||
211 | LN_S = @LN_S@ | ||
212 | LTLIBOBJS = @LTLIBOBJS@ | ||
213 | MAKEINFO = @MAKEINFO@ | ||
214 | MKDIR_P = @MKDIR_P@ | ||
215 | MODULE_ARCH = @MODULE_ARCH@ | ||
216 | NM = @NM@ | ||
217 | NMEDIT = @NMEDIT@ | ||
218 | OBJC = @OBJC@ | ||
219 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
220 | OBJCFLAGS = @OBJCFLAGS@ | ||
221 | OBJDUMP = @OBJDUMP@ | ||
222 | OBJEXT = @OBJEXT@ | ||
223 | OTOOL = @OTOOL@ | ||
224 | OTOOL64 = @OTOOL64@ | ||
225 | PACKAGE = @PACKAGE@ | ||
226 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
227 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
228 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
229 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
230 | PACKAGE_URL = @PACKAGE_URL@ | ||
231 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
232 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
233 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
234 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
235 | PKG_CONFIG = @PKG_CONFIG@ | ||
236 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
237 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
238 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
239 | PNG_LIBS = @PNG_LIBS@ | ||
240 | RANLIB = @RANLIB@ | ||
241 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
242 | SDL_LIBS = @SDL_LIBS@ | ||
243 | SED = @SED@ | ||
244 | SET_MAKE = @SET_MAKE@ | ||
245 | SHELL = @SHELL@ | ||
246 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
247 | STRIP = @STRIP@ | ||
248 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
249 | SVG_LIBS = @SVG_LIBS@ | ||
250 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
251 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
252 | VERSION = @VERSION@ | ||
253 | VMAJ = @VMAJ@ | ||
254 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
255 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
256 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
257 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
258 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
259 | XCB_LIBS = @XCB_LIBS@ | ||
260 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
261 | XEXT_LIBS = @XEXT_LIBS@ | ||
262 | XMKMF = @XMKMF@ | ||
263 | X_CFLAGS = @X_CFLAGS@ | ||
264 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
265 | X_LIBS = @X_LIBS@ | ||
266 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
267 | abs_builddir = @abs_builddir@ | ||
268 | abs_srcdir = @abs_srcdir@ | ||
269 | abs_top_builddir = @abs_top_builddir@ | ||
270 | abs_top_srcdir = @abs_top_srcdir@ | ||
271 | ac_ct_CC = @ac_ct_CC@ | ||
272 | ac_ct_CXX = @ac_ct_CXX@ | ||
273 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
274 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
275 | altivec_cflags = @altivec_cflags@ | ||
276 | am__include = @am__include@ | ||
277 | am__leading_dot = @am__leading_dot@ | ||
278 | am__quote = @am__quote@ | ||
279 | am__tar = @am__tar@ | ||
280 | am__untar = @am__untar@ | ||
281 | bindir = @bindir@ | ||
282 | build = @build@ | ||
283 | build_alias = @build_alias@ | ||
284 | build_cpu = @build_cpu@ | ||
285 | build_os = @build_os@ | ||
286 | build_vendor = @build_vendor@ | ||
287 | builddir = @builddir@ | ||
288 | datadir = @datadir@ | ||
289 | datarootdir = @datarootdir@ | ||
290 | dlopen_libs = @dlopen_libs@ | ||
291 | docdir = @docdir@ | ||
292 | dvidir = @dvidir@ | ||
293 | edje_cc = @edje_cc@ | ||
294 | efl_doxygen = @efl_doxygen@ | ||
295 | efl_have_doxygen = @efl_have_doxygen@ | ||
296 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
297 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
298 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
299 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
300 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
301 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
302 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
303 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
304 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
305 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
306 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
307 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
308 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
309 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
310 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
311 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
312 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
313 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
314 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
315 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
316 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
317 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
318 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
319 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
320 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
321 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
322 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
323 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
324 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
325 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
326 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
327 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
328 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
329 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
330 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
331 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
332 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
333 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
334 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
335 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
336 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
337 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
338 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
339 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
340 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
341 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
342 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
343 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
344 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
345 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
346 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
347 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
348 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
349 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
350 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
351 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
352 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
353 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
354 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
355 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
356 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
357 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
358 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
359 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
360 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
361 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
362 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
363 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
364 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
365 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
366 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
367 | exec_prefix = @exec_prefix@ | ||
368 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
369 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
370 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
371 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
372 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
373 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
374 | have_lcov = @have_lcov@ | ||
375 | host = @host@ | ||
376 | host_alias = @host_alias@ | ||
377 | host_cpu = @host_cpu@ | ||
378 | host_os = @host_os@ | ||
379 | host_vendor = @host_vendor@ | ||
380 | htmldir = @htmldir@ | ||
381 | includedir = @includedir@ | ||
382 | infodir = @infodir@ | ||
383 | install_sh = @install_sh@ | ||
384 | libdir = @libdir@ | ||
385 | libexecdir = @libexecdir@ | ||
386 | localedir = @localedir@ | ||
387 | localstatedir = @localstatedir@ | ||
388 | lt_ECHO = @lt_ECHO@ | ||
389 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
390 | mandir = @mandir@ | ||
391 | mkdir_p = @mkdir_p@ | ||
392 | oldincludedir = @oldincludedir@ | ||
393 | pdfdir = @pdfdir@ | ||
394 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
395 | prefix = @prefix@ | ||
396 | program_transform_name = @program_transform_name@ | ||
397 | psdir = @psdir@ | ||
398 | pthread_cflags = @pthread_cflags@ | ||
399 | pthread_libs = @pthread_libs@ | ||
400 | release_info = @release_info@ | ||
401 | requirement_evas = @requirement_evas@ | ||
402 | sbindir = @sbindir@ | ||
403 | sharedstatedir = @sharedstatedir@ | ||
404 | srcdir = @srcdir@ | ||
405 | sysconfdir = @sysconfdir@ | ||
406 | target_alias = @target_alias@ | ||
407 | top_build_prefix = @top_build_prefix@ | ||
408 | top_builddir = @top_builddir@ | ||
409 | top_srcdir = @top_srcdir@ | ||
410 | version_info = @version_info@ | ||
411 | MAINTAINERCLEANFILES = Makefile.in | ||
412 | AM_CPPFLAGS = \ | ||
413 | -I. \ | ||
414 | -I$(top_srcdir)/src/lib \ | ||
415 | -I$(top_srcdir)/src/lib/include \ | ||
416 | @FREETYPE_CFLAGS@ \ | ||
417 | @PIXMAN_CFLAGS@ \ | ||
418 | @EINA_CFLAGS@ \ | ||
419 | @evas_image_loader_svg_cflags@ | ||
420 | |||
421 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@pkgdir = $(libdir)/evas/modules/loaders/svg/$(MODULE_ARCH) | ||
422 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@pkg_LTLIBRARIES = module.la | ||
423 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@module_la_SOURCES = evas_image_load_svg.c | ||
424 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@module_la_LIBADD = @EINA_LIBS@ @evas_image_loader_svg_libs@ $(top_builddir)/src/lib/libevas.la | ||
425 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
426 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
427 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_TRUE@noinst_LTLIBRARIES = libevas_loader_svg.la | ||
428 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_TRUE@libevas_loader_svg_la_SOURCES = evas_image_load_svg.c | ||
429 | @BUILD_LOADER_SVG_TRUE@@EVAS_STATIC_BUILD_SVG_TRUE@libevas_loader_svg_la_LIBADD = @evas_image_loader_svg_libs@ | ||
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/svg/Makefile'; \ | ||
444 | $(am__cd) $(top_srcdir) && \ | ||
445 | $(AUTOMAKE) --gnu src/modules/loaders/svg/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_svg.la: $(libevas_loader_svg_la_OBJECTS) $(libevas_loader_svg_la_DEPENDENCIES) | ||
505 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_svg_la_rpath) $(libevas_loader_svg_la_OBJECTS) $(libevas_loader_svg_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_svg.Plo@am__quote@ | ||
516 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_svg.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_svg.lo: evas_image_load_svg.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_svg.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_svg.Tpo -c -o module_la-evas_image_load_svg.lo `test -f 'evas_image_load_svg.c' || echo '$(srcdir)/'`evas_image_load_svg.c | ||
544 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_svg.Tpo $(DEPDIR)/module_la-evas_image_load_svg.Plo | ||
545 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
546 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_svg.c' object='module_la-evas_image_load_svg.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_svg.lo `test -f 'evas_image_load_svg.c' || echo '$(srcdir)/'`evas_image_load_svg.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/svg/evas_image_load_svg.c b/libraries/evas/src/modules/loaders/svg/evas_image_load_svg.c deleted file mode 100644 index dc0fc8d..0000000 --- a/libraries/evas/src/modules/loaders/svg/evas_image_load_svg.c +++ /dev/null | |||
@@ -1,281 +0,0 @@ | |||
1 | #include "evas_common.h" | ||
2 | #include "evas_private.h" | ||
3 | |||
4 | #include <librsvg/rsvg.h> | ||
5 | #include <librsvg/rsvg-cairo.h> | ||
6 | |||
7 | static inline Eina_Bool evas_image_load_file_is_svg(const char *file) EINA_ARG_NONNULL(1) EINA_PURE; | ||
8 | static Eina_Bool evas_image_load_file_head_svg(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
9 | static Eina_Bool evas_image_load_file_data_svg(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
10 | |||
11 | Evas_Image_Load_Func evas_image_load_svg_func = | ||
12 | { | ||
13 | EINA_FALSE, | ||
14 | evas_image_load_file_head_svg, | ||
15 | evas_image_load_file_data_svg, | ||
16 | NULL, | ||
17 | EINA_FALSE | ||
18 | }; | ||
19 | |||
20 | static int rsvg_initialized = 0; | ||
21 | |||
22 | |||
23 | static inline Eina_Bool evas_image_load_file_is_svg(const char *file) | ||
24 | { | ||
25 | int i, len = strlen(file); | ||
26 | Eina_Bool is_gz = EINA_FALSE; | ||
27 | |||
28 | for (i = len - 1; i > 0; i--) | ||
29 | { | ||
30 | if (file[i] == '.') | ||
31 | { | ||
32 | if (is_gz) | ||
33 | break; | ||
34 | else if (strcasecmp(file + i + 1, "gz") == 0) | ||
35 | is_gz = EINA_TRUE; | ||
36 | else | ||
37 | break; | ||
38 | } | ||
39 | } | ||
40 | |||
41 | if (i < 1) return EINA_FALSE; | ||
42 | i++; | ||
43 | if (i >= len) return EINA_FALSE; | ||
44 | if (strncasecmp(file + i, "svg", 3) != 0) return EINA_FALSE; | ||
45 | i += 3; | ||
46 | if (is_gz) | ||
47 | { | ||
48 | if (file[i] == '.') return EINA_TRUE; | ||
49 | else return EINA_FALSE; | ||
50 | } | ||
51 | else | ||
52 | { | ||
53 | if (file[i] == '\0') return EINA_TRUE; | ||
54 | else if (((file[i] == 'z') || (file[i] == 'Z')) && (!file[i + 1])) return EINA_TRUE; | ||
55 | else return EINA_FALSE; | ||
56 | } | ||
57 | } | ||
58 | |||
59 | static Eina_Bool | ||
60 | evas_image_load_file_head_svg(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error) | ||
61 | { | ||
62 | RsvgHandle *rsvg; | ||
63 | RsvgDimensionData dim; | ||
64 | int w, h; | ||
65 | |||
66 | /* ignore all files not called .svg or .svg.gz - because rsvg has a leak | ||
67 | * where closing the handle doesn't free mem */ | ||
68 | if (!evas_image_load_file_is_svg(file)) | ||
69 | { | ||
70 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
71 | return EINA_FALSE; | ||
72 | } | ||
73 | |||
74 | rsvg = rsvg_handle_new_from_file(file, NULL); | ||
75 | if (!rsvg) | ||
76 | { | ||
77 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
78 | return EINA_FALSE; | ||
79 | } | ||
80 | |||
81 | rsvg_handle_set_dpi(rsvg, 75.0); | ||
82 | rsvg_handle_get_dimensions(rsvg, &dim); | ||
83 | w = dim.width; | ||
84 | h = dim.height; | ||
85 | if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) || | ||
86 | IMG_TOO_BIG(w, h)) | ||
87 | { | ||
88 | rsvg_handle_close(rsvg, NULL); | ||
89 | g_object_unref(rsvg); | ||
90 | if (IMG_TOO_BIG(w, h)) | ||
91 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
92 | else | ||
93 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
94 | return EINA_FALSE; | ||
95 | } | ||
96 | if (ie->load_opts.scale_down_by > 1) | ||
97 | { | ||
98 | w /= ie->load_opts.scale_down_by; | ||
99 | h /= ie->load_opts.scale_down_by; | ||
100 | } | ||
101 | else if (ie->load_opts.dpi > 0.0) | ||
102 | { | ||
103 | w = (w * ie->load_opts.dpi) / 75.0; | ||
104 | h = (h * ie->load_opts.dpi) / 75.0; | ||
105 | } | ||
106 | else if ((ie->load_opts.w > 0) && | ||
107 | (ie->load_opts.h > 0)) | ||
108 | { | ||
109 | unsigned int w2, h2; | ||
110 | |||
111 | w2 = ie->load_opts.w; | ||
112 | h2 = (ie->load_opts.w * h) / w; | ||
113 | if (h2 > ie->load_opts.h) | ||
114 | { | ||
115 | h2 = ie->load_opts.h; | ||
116 | w2 = (ie->load_opts.h * w) / h; | ||
117 | } | ||
118 | w = w2; | ||
119 | h = h2; | ||
120 | } | ||
121 | if (w < 1) w = 1; | ||
122 | if (h < 1) h = 1; | ||
123 | ie->w = w; | ||
124 | ie->h = h; | ||
125 | ie->flags.alpha = 1; | ||
126 | rsvg_handle_close(rsvg, NULL); | ||
127 | g_object_unref(rsvg); | ||
128 | |||
129 | *error = EVAS_LOAD_ERROR_NONE; | ||
130 | return EINA_TRUE; | ||
131 | } | ||
132 | |||
133 | /** FIXME: All evas loaders need to be tightened up **/ | ||
134 | static Eina_Bool | ||
135 | evas_image_load_file_data_svg(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error) | ||
136 | { | ||
137 | DATA32 *pixels; | ||
138 | RsvgHandle *rsvg; | ||
139 | RsvgDimensionData dim; | ||
140 | int w, h; | ||
141 | cairo_surface_t *surface; | ||
142 | cairo_t *cr; | ||
143 | |||
144 | /* ignore all files not called .svg or .svg.gz - because rsvg has a leak | ||
145 | * where closing the handle doesn't free mem */ | ||
146 | if (!evas_image_load_file_is_svg(file)) | ||
147 | { | ||
148 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
149 | return EINA_FALSE; | ||
150 | } | ||
151 | |||
152 | rsvg = rsvg_handle_new_from_file(file, NULL); | ||
153 | if (!rsvg) | ||
154 | { | ||
155 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
156 | return EINA_FALSE; | ||
157 | } | ||
158 | |||
159 | rsvg_handle_set_dpi(rsvg, 75.0); | ||
160 | rsvg_handle_get_dimensions(rsvg, &dim); | ||
161 | w = dim.width; | ||
162 | h = dim.height; | ||
163 | if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE)) | ||
164 | { | ||
165 | rsvg_handle_close(rsvg, NULL); | ||
166 | g_object_unref(rsvg); | ||
167 | if (IMG_TOO_BIG(w, h)) | ||
168 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
169 | else | ||
170 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
171 | return EINA_FALSE; | ||
172 | } | ||
173 | if (ie->load_opts.scale_down_by > 1) | ||
174 | { | ||
175 | w /= ie->load_opts.scale_down_by; | ||
176 | h /= ie->load_opts.scale_down_by; | ||
177 | } | ||
178 | else if (ie->load_opts.dpi > 0.0) | ||
179 | { | ||
180 | w = (w * ie->load_opts.dpi) / 75.0; | ||
181 | h = (h * ie->load_opts.dpi) / 75.0; | ||
182 | } | ||
183 | else if ((ie->load_opts.w > 0) && | ||
184 | (ie->load_opts.h > 0)) | ||
185 | { | ||
186 | unsigned int w2, h2; | ||
187 | |||
188 | w2 = ie->load_opts.w; | ||
189 | h2 = (ie->load_opts.w * h) / w; | ||
190 | if (h2 > ie->load_opts.h) | ||
191 | { | ||
192 | h2 = ie->load_opts.h; | ||
193 | w2 = (ie->load_opts.h * w) / h; | ||
194 | } | ||
195 | w = w2; | ||
196 | h = h2; | ||
197 | } | ||
198 | if (w < 1) w = 1; | ||
199 | if (h < 1) h = 1; | ||
200 | if ((w != (int)ie->w) || (h != (int)ie->h)) | ||
201 | { | ||
202 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
203 | goto error; | ||
204 | } | ||
205 | ie->flags.alpha = 1; | ||
206 | evas_cache_image_surface_alloc(ie, w, h); | ||
207 | pixels = evas_cache_image_pixels(ie); | ||
208 | if (!pixels) | ||
209 | { | ||
210 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
211 | goto error; | ||
212 | } | ||
213 | |||
214 | memset(pixels, 0, w * h * sizeof(DATA32)); | ||
215 | surface = cairo_image_surface_create_for_data((unsigned char *)pixels, CAIRO_FORMAT_ARGB32, | ||
216 | w, h, w * sizeof(DATA32)); | ||
217 | if (!surface) | ||
218 | { | ||
219 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
220 | goto error; | ||
221 | } | ||
222 | cr = cairo_create(surface); | ||
223 | if (!cr) | ||
224 | { | ||
225 | cairo_surface_destroy(surface); | ||
226 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
227 | goto error; | ||
228 | } | ||
229 | |||
230 | cairo_scale(cr, | ||
231 | (double)ie->w / dim.em, | ||
232 | (double)ie->h / dim.ex); | ||
233 | rsvg_handle_render_cairo(rsvg, cr); | ||
234 | cairo_surface_destroy(surface); | ||
235 | /* need to check if this is required... */ | ||
236 | cairo_destroy(cr); | ||
237 | rsvg_handle_close(rsvg, NULL); | ||
238 | g_object_unref(rsvg); | ||
239 | evas_common_image_set_alpha_sparse(ie); | ||
240 | return EINA_TRUE; | ||
241 | |||
242 | error: | ||
243 | rsvg_handle_close(rsvg, NULL); | ||
244 | g_object_unref(rsvg); | ||
245 | return EINA_FALSE; | ||
246 | } | ||
247 | |||
248 | static int | ||
249 | module_open(Evas_Module *em) | ||
250 | { | ||
251 | if (!em) return 0; | ||
252 | em->functions = (void *)(&evas_image_load_svg_func); | ||
253 | if (!rsvg_initialized) rsvg_init(); | ||
254 | rsvg_initialized = 1; | ||
255 | return 1; | ||
256 | } | ||
257 | |||
258 | static void | ||
259 | module_close(Evas_Module *em __UNUSED__) | ||
260 | { | ||
261 | if (!rsvg_initialized) return; | ||
262 | //rsvg_term(); | ||
263 | //rsvg_initialized = 0; | ||
264 | } | ||
265 | |||
266 | static Evas_Module_Api evas_modapi = | ||
267 | { | ||
268 | EVAS_MODULE_API_VERSION, | ||
269 | "svg", | ||
270 | "none", | ||
271 | { | ||
272 | module_open, | ||
273 | module_close | ||
274 | } | ||
275 | }; | ||
276 | |||
277 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, svg); | ||
278 | |||
279 | #ifndef EVAS_STATIC_BUILD_SVG | ||
280 | EVAS_EINA_MODULE_DEFINE(image_loader, svg); | ||
281 | #endif | ||
diff --git a/libraries/evas/src/modules/loaders/tga/Makefile.am b/libraries/evas/src/modules/loaders/tga/Makefile.am deleted file mode 100644 index 7cd8fed..0000000 --- a/libraries/evas/src/modules/loaders/tga/Makefile.am +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
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 | @EINA_CFLAGS@ \ | ||
11 | @EVIL_CFLAGS@ | ||
12 | |||
13 | if BUILD_LOADER_TGA | ||
14 | if !EVAS_STATIC_BUILD_TGA | ||
15 | |||
16 | pkgdir = $(libdir)/evas/modules/loaders/tga/$(MODULE_ARCH) | ||
17 | pkg_LTLIBRARIES = module.la | ||
18 | |||
19 | module_la_SOURCES = evas_image_load_tga.c | ||
20 | |||
21 | module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
22 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
23 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
24 | |||
25 | else | ||
26 | |||
27 | noinst_LTLIBRARIES = libevas_loader_tga.la | ||
28 | libevas_loader_tga_la_SOURCES = evas_image_load_tga.c | ||
29 | libevas_loader_tga_la_LIBADD = | ||
30 | |||
31 | endif | ||
32 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/tga/Makefile.in b/libraries/evas/src/modules/loaders/tga/Makefile.in deleted file mode 100644 index d2a9271..0000000 --- a/libraries/evas/src/modules/loaders/tga/Makefile.in +++ /dev/null | |||
@@ -1,761 +0,0 @@ | |||
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/tga | ||
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_tga_la_DEPENDENCIES = | ||
83 | am__libevas_loader_tga_la_SOURCES_DIST = evas_image_load_tga.c | ||
84 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_TRUE@am_libevas_loader_tga_la_OBJECTS = evas_image_load_tga.lo | ||
85 | libevas_loader_tga_la_OBJECTS = $(am_libevas_loader_tga_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_TRUE@am_libevas_loader_tga_la_rpath = | ||
90 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
91 | am__module_la_SOURCES_DIST = evas_image_load_tga.c | ||
92 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_tga.lo | ||
93 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
94 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
95 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
96 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@am_module_la_rpath = \ | ||
98 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@ -rpath \ | ||
99 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@ $(pkgdir) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_tga_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_tga_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
185 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
186 | FGREP = @FGREP@ | ||
187 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
188 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
189 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
190 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
191 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
192 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
193 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
194 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
195 | GREP = @GREP@ | ||
196 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
197 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
198 | INSTALL = @INSTALL@ | ||
199 | INSTALL_DATA = @INSTALL_DATA@ | ||
200 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
201 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
202 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
203 | LD = @LD@ | ||
204 | LDFLAGS = @LDFLAGS@ | ||
205 | LIBOBJS = @LIBOBJS@ | ||
206 | LIBS = @LIBS@ | ||
207 | LIBTOOL = @LIBTOOL@ | ||
208 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
209 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
210 | LIPO = @LIPO@ | ||
211 | LN_S = @LN_S@ | ||
212 | LTLIBOBJS = @LTLIBOBJS@ | ||
213 | MAKEINFO = @MAKEINFO@ | ||
214 | MKDIR_P = @MKDIR_P@ | ||
215 | MODULE_ARCH = @MODULE_ARCH@ | ||
216 | NM = @NM@ | ||
217 | NMEDIT = @NMEDIT@ | ||
218 | OBJC = @OBJC@ | ||
219 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
220 | OBJCFLAGS = @OBJCFLAGS@ | ||
221 | OBJDUMP = @OBJDUMP@ | ||
222 | OBJEXT = @OBJEXT@ | ||
223 | OTOOL = @OTOOL@ | ||
224 | OTOOL64 = @OTOOL64@ | ||
225 | PACKAGE = @PACKAGE@ | ||
226 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
227 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
228 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
229 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
230 | PACKAGE_URL = @PACKAGE_URL@ | ||
231 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
232 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
233 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
234 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
235 | PKG_CONFIG = @PKG_CONFIG@ | ||
236 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
237 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
238 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
239 | PNG_LIBS = @PNG_LIBS@ | ||
240 | RANLIB = @RANLIB@ | ||
241 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
242 | SDL_LIBS = @SDL_LIBS@ | ||
243 | SED = @SED@ | ||
244 | SET_MAKE = @SET_MAKE@ | ||
245 | SHELL = @SHELL@ | ||
246 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
247 | STRIP = @STRIP@ | ||
248 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
249 | SVG_LIBS = @SVG_LIBS@ | ||
250 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
251 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
252 | VERSION = @VERSION@ | ||
253 | VMAJ = @VMAJ@ | ||
254 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
255 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
256 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
257 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
258 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
259 | XCB_LIBS = @XCB_LIBS@ | ||
260 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
261 | XEXT_LIBS = @XEXT_LIBS@ | ||
262 | XMKMF = @XMKMF@ | ||
263 | X_CFLAGS = @X_CFLAGS@ | ||
264 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
265 | X_LIBS = @X_LIBS@ | ||
266 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
267 | abs_builddir = @abs_builddir@ | ||
268 | abs_srcdir = @abs_srcdir@ | ||
269 | abs_top_builddir = @abs_top_builddir@ | ||
270 | abs_top_srcdir = @abs_top_srcdir@ | ||
271 | ac_ct_CC = @ac_ct_CC@ | ||
272 | ac_ct_CXX = @ac_ct_CXX@ | ||
273 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
274 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
275 | altivec_cflags = @altivec_cflags@ | ||
276 | am__include = @am__include@ | ||
277 | am__leading_dot = @am__leading_dot@ | ||
278 | am__quote = @am__quote@ | ||
279 | am__tar = @am__tar@ | ||
280 | am__untar = @am__untar@ | ||
281 | bindir = @bindir@ | ||
282 | build = @build@ | ||
283 | build_alias = @build_alias@ | ||
284 | build_cpu = @build_cpu@ | ||
285 | build_os = @build_os@ | ||
286 | build_vendor = @build_vendor@ | ||
287 | builddir = @builddir@ | ||
288 | datadir = @datadir@ | ||
289 | datarootdir = @datarootdir@ | ||
290 | dlopen_libs = @dlopen_libs@ | ||
291 | docdir = @docdir@ | ||
292 | dvidir = @dvidir@ | ||
293 | edje_cc = @edje_cc@ | ||
294 | efl_doxygen = @efl_doxygen@ | ||
295 | efl_have_doxygen = @efl_have_doxygen@ | ||
296 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
297 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
298 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
299 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
300 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
301 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
302 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
303 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
304 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
305 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
306 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
307 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
308 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
309 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
310 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
311 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
312 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
313 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
314 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
315 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
316 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
317 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
318 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
319 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
320 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
321 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
322 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
323 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
324 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
325 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
326 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
327 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
328 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
329 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
330 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
331 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
332 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
333 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
334 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
335 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
336 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
337 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
338 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
339 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
340 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
341 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
342 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
343 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
344 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
345 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
346 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
347 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
348 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
349 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
350 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
351 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
352 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
353 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
354 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
355 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
356 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
357 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
358 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
359 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
360 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
361 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
362 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
363 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
364 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
365 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
366 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
367 | exec_prefix = @exec_prefix@ | ||
368 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
369 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
370 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
371 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
372 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
373 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
374 | have_lcov = @have_lcov@ | ||
375 | host = @host@ | ||
376 | host_alias = @host_alias@ | ||
377 | host_cpu = @host_cpu@ | ||
378 | host_os = @host_os@ | ||
379 | host_vendor = @host_vendor@ | ||
380 | htmldir = @htmldir@ | ||
381 | includedir = @includedir@ | ||
382 | infodir = @infodir@ | ||
383 | install_sh = @install_sh@ | ||
384 | libdir = @libdir@ | ||
385 | libexecdir = @libexecdir@ | ||
386 | localedir = @localedir@ | ||
387 | localstatedir = @localstatedir@ | ||
388 | lt_ECHO = @lt_ECHO@ | ||
389 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
390 | mandir = @mandir@ | ||
391 | mkdir_p = @mkdir_p@ | ||
392 | oldincludedir = @oldincludedir@ | ||
393 | pdfdir = @pdfdir@ | ||
394 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
395 | prefix = @prefix@ | ||
396 | program_transform_name = @program_transform_name@ | ||
397 | psdir = @psdir@ | ||
398 | pthread_cflags = @pthread_cflags@ | ||
399 | pthread_libs = @pthread_libs@ | ||
400 | release_info = @release_info@ | ||
401 | requirement_evas = @requirement_evas@ | ||
402 | sbindir = @sbindir@ | ||
403 | sharedstatedir = @sharedstatedir@ | ||
404 | srcdir = @srcdir@ | ||
405 | sysconfdir = @sysconfdir@ | ||
406 | target_alias = @target_alias@ | ||
407 | top_build_prefix = @top_build_prefix@ | ||
408 | top_builddir = @top_builddir@ | ||
409 | top_srcdir = @top_srcdir@ | ||
410 | version_info = @version_info@ | ||
411 | MAINTAINERCLEANFILES = Makefile.in | ||
412 | AM_CPPFLAGS = \ | ||
413 | -I. \ | ||
414 | -I$(top_srcdir)/src/lib \ | ||
415 | -I$(top_srcdir)/src/lib/include \ | ||
416 | @FREETYPE_CFLAGS@ \ | ||
417 | @PIXMAN_CFLAGS@ \ | ||
418 | @EINA_CFLAGS@ \ | ||
419 | @EVIL_CFLAGS@ | ||
420 | |||
421 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@pkgdir = $(libdir)/evas/modules/loaders/tga/$(MODULE_ARCH) | ||
422 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@pkg_LTLIBRARIES = module.la | ||
423 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@module_la_SOURCES = evas_image_load_tga.c | ||
424 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
425 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
426 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
427 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_TRUE@noinst_LTLIBRARIES = libevas_loader_tga.la | ||
428 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_TRUE@libevas_loader_tga_la_SOURCES = evas_image_load_tga.c | ||
429 | @BUILD_LOADER_TGA_TRUE@@EVAS_STATIC_BUILD_TGA_TRUE@libevas_loader_tga_la_LIBADD = | ||
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/tga/Makefile'; \ | ||
444 | $(am__cd) $(top_srcdir) && \ | ||
445 | $(AUTOMAKE) --gnu src/modules/loaders/tga/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_tga.la: $(libevas_loader_tga_la_OBJECTS) $(libevas_loader_tga_la_DEPENDENCIES) | ||
505 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_tga_la_rpath) $(libevas_loader_tga_la_OBJECTS) $(libevas_loader_tga_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_tga.Plo@am__quote@ | ||
516 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_tga.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_tga.lo: evas_image_load_tga.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_tga.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_tga.Tpo -c -o module_la-evas_image_load_tga.lo `test -f 'evas_image_load_tga.c' || echo '$(srcdir)/'`evas_image_load_tga.c | ||
544 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_tga.Tpo $(DEPDIR)/module_la-evas_image_load_tga.Plo | ||
545 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
546 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_tga.c' object='module_la-evas_image_load_tga.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_tga.lo `test -f 'evas_image_load_tga.c' || echo '$(srcdir)/'`evas_image_load_tga.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/tga/evas_image_load_tga.c b/libraries/evas/src/modules/loaders/tga/evas_image_load_tga.c deleted file mode 100644 index bab169b..0000000 --- a/libraries/evas/src/modules/loaders/tga/evas_image_load_tga.c +++ /dev/null | |||
@@ -1,593 +0,0 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
5 | #include <stdio.h> | ||
6 | #include <sys/types.h> | ||
7 | #include <fcntl.h> | ||
8 | |||
9 | #ifdef HAVE_EVIL | ||
10 | # include <Evil.h> | ||
11 | #endif | ||
12 | |||
13 | #include "evas_common.h" | ||
14 | #include "evas_private.h" | ||
15 | |||
16 | /* TGA pixel formats */ | ||
17 | #define TGA_TYPE_MAPPED 1 // handle | ||
18 | #define TGA_TYPE_COLOR 2 | ||
19 | #define TGA_TYPE_GRAY 3 | ||
20 | #define TGA_TYPE_MAPPED_RLE 9 // handle | ||
21 | #define TGA_TYPE_COLOR_RLE 10 | ||
22 | #define TGA_TYPE_GRAY_RLE 11 | ||
23 | |||
24 | /* TGA header flags */ | ||
25 | #define TGA_DESC_ABITS 0x0f | ||
26 | #define TGA_DESC_HORIZONTAL 0x10 | ||
27 | #define TGA_DESC_VERTICAL 0x20 | ||
28 | |||
29 | #define TGA_SIGNATURE "TRUEVISION-XFILE" | ||
30 | |||
31 | typedef struct _tga_header tga_header; | ||
32 | typedef struct _tga_footer tga_footer; | ||
33 | |||
34 | struct _tga_header | ||
35 | { | ||
36 | unsigned char idLength; | ||
37 | unsigned char colorMapType; | ||
38 | unsigned char imageType; | ||
39 | unsigned char colorMapIndexLo, colorMapIndexHi; | ||
40 | unsigned char colorMapLengthLo, colorMapLengthHi; | ||
41 | unsigned char colorMapSize; | ||
42 | unsigned char xOriginLo, xOriginHi; | ||
43 | unsigned char yOriginLo, yOriginHi; | ||
44 | unsigned char widthLo, widthHi; | ||
45 | unsigned char heightLo, heightHi; | ||
46 | unsigned char bpp; | ||
47 | unsigned char descriptor; | ||
48 | } __attribute__((packed)); | ||
49 | |||
50 | struct _tga_footer | ||
51 | { | ||
52 | unsigned int extensionAreaOffset; | ||
53 | unsigned int developerDirectoryOffset; | ||
54 | char signature[16]; | ||
55 | char dot; | ||
56 | char null; | ||
57 | } __attribute__((packed)); | ||
58 | |||
59 | |||
60 | static Eina_Bool evas_image_load_file_head_tga(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
61 | static Eina_Bool evas_image_load_file_data_tga(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
62 | |||
63 | static Evas_Image_Load_Func evas_image_load_tga_func = | ||
64 | { | ||
65 | EINA_TRUE, | ||
66 | evas_image_load_file_head_tga, | ||
67 | evas_image_load_file_data_tga, | ||
68 | NULL, | ||
69 | EINA_FALSE | ||
70 | }; | ||
71 | |||
72 | static Eina_Bool | ||
73 | evas_image_load_file_head_tga(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error) | ||
74 | { | ||
75 | Eina_File *f; | ||
76 | unsigned char *seg = NULL, *filedata; | ||
77 | tga_header *header; | ||
78 | tga_footer *footer, tfooter; | ||
79 | char hasa = 0; | ||
80 | int w = 0, h = 0, bpp; | ||
81 | int x, y; | ||
82 | |||
83 | f = eina_file_open(file, EINA_FALSE); | ||
84 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
85 | if (f == NULL) return EINA_FALSE; | ||
86 | |||
87 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
88 | if (eina_file_size_get(f) < (off_t)(sizeof(tga_header) + sizeof(tga_footer))) | ||
89 | goto close_file; | ||
90 | seg = eina_file_map_all(f, EINA_FILE_SEQUENTIAL); | ||
91 | if (seg == NULL) goto close_file; | ||
92 | filedata = seg; | ||
93 | |||
94 | header = (tga_header *)filedata; | ||
95 | // no unaligned data accessed, so ok | ||
96 | footer = (tga_footer *)(filedata + (eina_file_size_get(f) - sizeof(tga_footer))); | ||
97 | memcpy((unsigned char *)(&tfooter), | ||
98 | (unsigned char *)footer, | ||
99 | sizeof(tga_footer)); | ||
100 | //printf("0\n"); | ||
101 | if (!memcmp(tfooter.signature, TGA_SIGNATURE, sizeof(tfooter.signature))) | ||
102 | { | ||
103 | if ((tfooter.dot == '.') && (tfooter.null == 0)) | ||
104 | { | ||
105 | // footer is there and matches. this is a tga file - any problems now | ||
106 | // are a corrupt file | ||
107 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
108 | } | ||
109 | } | ||
110 | // else goto close_file; | ||
111 | //printf("1\n"); | ||
112 | |||
113 | filedata = (unsigned char *)filedata + sizeof(tga_header); | ||
114 | switch (header->imageType) | ||
115 | { | ||
116 | case TGA_TYPE_COLOR_RLE: | ||
117 | case TGA_TYPE_GRAY_RLE: | ||
118 | // rle = 1; | ||
119 | break; | ||
120 | case TGA_TYPE_COLOR: | ||
121 | case TGA_TYPE_GRAY: | ||
122 | // rle = 0; | ||
123 | break; | ||
124 | default: | ||
125 | goto close_file; | ||
126 | } | ||
127 | bpp = header->bpp; | ||
128 | if (!((bpp == 32) || (bpp == 24) || (bpp == 16) || (bpp == 8))) | ||
129 | goto close_file; | ||
130 | if ((bpp == 32) && (header->descriptor & TGA_DESC_ABITS)) hasa = 1; | ||
131 | // don't handle colormapped images | ||
132 | if ((header->colorMapType) != 0) | ||
133 | goto close_file; | ||
134 | // if colormap size is anything other than legal sizes or 0 - not real tga | ||
135 | if (!((header->colorMapSize == 0) || | ||
136 | (header->colorMapSize == 15) || | ||
137 | (header->colorMapSize == 16) || | ||
138 | (header->colorMapSize == 24) || | ||
139 | (header->colorMapSize == 32))) | ||
140 | goto close_file; | ||
141 | x = (header->xOriginHi << 8) | (header->xOriginLo); | ||
142 | y = (header->yOriginHi << 8) | (header->yOriginLo); | ||
143 | w = (header->widthHi << 8) | header->widthLo; | ||
144 | h = (header->heightHi << 8) | header->heightLo; | ||
145 | // x origin gerater that width, y origin greater than height - wrong file | ||
146 | if ((x >= w) || (y >= h)) | ||
147 | goto close_file; | ||
148 | // if descriptor has either of the top 2 bits set... not tga | ||
149 | if (header->descriptor & 0xc0) | ||
150 | goto close_file; | ||
151 | |||
152 | if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) || | ||
153 | IMG_TOO_BIG(w, h)) | ||
154 | goto close_file; | ||
155 | |||
156 | ie->w = w; | ||
157 | ie->h = h; | ||
158 | if (hasa) ie->flags.alpha = 1; | ||
159 | |||
160 | eina_file_map_free(f, seg); | ||
161 | eina_file_close(f); | ||
162 | *error = EVAS_LOAD_ERROR_NONE; | ||
163 | return EINA_TRUE; | ||
164 | |||
165 | close_file: | ||
166 | if (seg != NULL) eina_file_map_free(f, seg); | ||
167 | eina_file_close(f); | ||
168 | return EINA_FALSE; | ||
169 | } | ||
170 | |||
171 | static Eina_Bool | ||
172 | evas_image_load_file_data_tga(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error) | ||
173 | { | ||
174 | Eina_File *f; | ||
175 | unsigned char *seg = NULL, *filedata; | ||
176 | tga_header *header; | ||
177 | tga_footer *footer, tfooter; | ||
178 | char hasa = 0, footer_present = 0, vinverted = 0, rle = 0; | ||
179 | int w = 0, h = 0, x, y, bpp; | ||
180 | off_t size; | ||
181 | unsigned int *surface, *dataptr; | ||
182 | unsigned int datasize; | ||
183 | unsigned char *bufptr, *bufend; | ||
184 | int abits; | ||
185 | |||
186 | f = eina_file_open(file, EINA_FALSE); | ||
187 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
188 | if (f == NULL) return EINA_FALSE; | ||
189 | |||
190 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
191 | if (eina_file_size_get(f) < (off_t)(sizeof(tga_header) + sizeof(tga_footer))) | ||
192 | goto close_file; | ||
193 | seg = eina_file_map_all(f, EINA_FILE_SEQUENTIAL); | ||
194 | if (seg == NULL) goto close_file; | ||
195 | filedata = seg; | ||
196 | size = eina_file_size_get(f); | ||
197 | |||
198 | header = (tga_header *)filedata; | ||
199 | // no unaligned data accessed, so ok | ||
200 | footer = (tga_footer *)(filedata + (size - sizeof(tga_footer))); | ||
201 | memcpy((unsigned char *)&tfooter, | ||
202 | (unsigned char *)footer, | ||
203 | sizeof(tga_footer)); | ||
204 | if (!memcmp(tfooter.signature, TGA_SIGNATURE, sizeof(tfooter.signature))) | ||
205 | { | ||
206 | if ((tfooter.dot == '.') && (tfooter.null == 0)) | ||
207 | { | ||
208 | // footer is there and matches. this is a tga file - any problems now | ||
209 | // are a corrupt file | ||
210 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
211 | footer_present = 1; | ||
212 | } | ||
213 | } | ||
214 | |||
215 | filedata = (unsigned char *)filedata + sizeof(tga_header); | ||
216 | vinverted = !(header->descriptor & TGA_DESC_VERTICAL); | ||
217 | switch (header->imageType) | ||
218 | { | ||
219 | case TGA_TYPE_COLOR_RLE: | ||
220 | case TGA_TYPE_GRAY_RLE: | ||
221 | rle = 1; | ||
222 | break; | ||
223 | case TGA_TYPE_COLOR: | ||
224 | case TGA_TYPE_GRAY: | ||
225 | rle = 0; | ||
226 | break; | ||
227 | default: | ||
228 | goto close_file; | ||
229 | } | ||
230 | bpp = header->bpp; | ||
231 | if (!((bpp == 32) || (bpp == 24) || (bpp == 16) || (bpp == 8))) | ||
232 | goto close_file; | ||
233 | if ((bpp == 32) && (header->descriptor & TGA_DESC_ABITS)) hasa = 1; | ||
234 | abits = header->descriptor & TGA_DESC_ABITS; | ||
235 | // don't handle colormapped images | ||
236 | if ((header->colorMapType) != 0) | ||
237 | goto close_file; | ||
238 | // if colormap size is anything other than legal sizes or 0 - not real tga | ||
239 | if (!((header->colorMapSize == 0) || | ||
240 | (header->colorMapSize == 15) || | ||
241 | (header->colorMapSize == 16) || | ||
242 | (header->colorMapSize == 24) || | ||
243 | (header->colorMapSize == 32))) | ||
244 | goto close_file; | ||
245 | x = (header->xOriginHi << 8) | (header->xOriginLo); | ||
246 | y = (header->yOriginHi << 8) | (header->yOriginLo); | ||
247 | w = (header->widthHi << 8) | header->widthLo; | ||
248 | h = (header->heightHi << 8) | header->heightLo; | ||
249 | // x origin gerater that width, y origin greater than height - wrong file | ||
250 | if ((x >= w) || (y >= h)) | ||
251 | goto close_file; | ||
252 | // if descriptor has either of the top 2 bits set... not tga | ||
253 | if (header->descriptor & 0xc0) | ||
254 | goto close_file; | ||
255 | |||
256 | if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) || | ||
257 | IMG_TOO_BIG(w, h)) | ||
258 | goto close_file; | ||
259 | |||
260 | if ((w != (int)ie->w) || (h != (int)ie->h)) | ||
261 | { | ||
262 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
263 | goto close_file; | ||
264 | } | ||
265 | evas_cache_image_surface_alloc(ie, w, h); | ||
266 | surface = evas_cache_image_pixels(ie); | ||
267 | if (!surface) | ||
268 | { | ||
269 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
270 | goto close_file; | ||
271 | } | ||
272 | |||
273 | datasize = size - sizeof(tga_header) - header->idLength; | ||
274 | if (footer_present) | ||
275 | datasize = size - sizeof(tga_header) - header->idLength - | ||
276 | sizeof(tga_footer); | ||
277 | |||
278 | bufptr = filedata + header->idLength; | ||
279 | bufend = filedata + datasize; | ||
280 | |||
281 | if (!rle) | ||
282 | { | ||
283 | for (y = 0; y < h; y++) | ||
284 | { | ||
285 | if (vinverted) | ||
286 | /* some TGA's are stored upside-down! */ | ||
287 | dataptr = surface + ((h - y - 1) * w); | ||
288 | else | ||
289 | dataptr = surface + (y * w); | ||
290 | switch (bpp) | ||
291 | { | ||
292 | case 32: | ||
293 | for (x = 0; (x < w) && ((bufptr + 4) <= bufend); x++) | ||
294 | { | ||
295 | if (hasa) | ||
296 | { | ||
297 | int a = bufptr[3]; | ||
298 | |||
299 | switch (abits) | ||
300 | { | ||
301 | case 1: | ||
302 | a = (a << 7) | (a << 6) | (a << 5) | (a << 4) | (a << 3) | (a << 2) | (a << 1) | (a); | ||
303 | case 2: | ||
304 | a = (a << 6) | (a << 4) | (a << 2) | (a); | ||
305 | case 3: | ||
306 | a = (a << 5) | (a << 2) | (a >> 1); | ||
307 | case 4: | ||
308 | a = (a << 4) | (a); | ||
309 | case 5: | ||
310 | a = (a << 3) | (a >> 2); | ||
311 | case 6: | ||
312 | a = (a << 2) | (a >> 4); | ||
313 | case 7: | ||
314 | a = (a << 1) | (a >> 6); | ||
315 | default: | ||
316 | break; | ||
317 | } | ||
318 | *dataptr = ARGB_JOIN(a, bufptr[2], bufptr[1], bufptr[0]); | ||
319 | } | ||
320 | else | ||
321 | *dataptr = ARGB_JOIN(0xff, bufptr[2], bufptr[1], bufptr[0]); | ||
322 | dataptr++; | ||
323 | bufptr += 4; | ||
324 | } | ||
325 | break; | ||
326 | case 24: | ||
327 | for (x = 0; (x < w) && ((bufptr + 3) <= bufend); x++) | ||
328 | { | ||
329 | *dataptr = ARGB_JOIN(0xff, bufptr[2], bufptr[1], bufptr[0]); | ||
330 | dataptr++; | ||
331 | bufptr += 3; | ||
332 | } | ||
333 | break; | ||
334 | case 16: | ||
335 | for (x = 0; (x < w) && ((bufptr + 3) <= bufend); x++) | ||
336 | { | ||
337 | unsigned char r, g, b, a; | ||
338 | unsigned short tmp; | ||
339 | |||
340 | tmp = | ||
341 | (((unsigned short)bufptr[1]) << 8) | | ||
342 | (((unsigned short)bufptr[0])); | ||
343 | r = (tmp >> 7) & 0xf8; r |= r >> 5; | ||
344 | g = (tmp >> 2) & 0xf8; g |= g >> 5; | ||
345 | b = (tmp << 3) & 0xf8; b |= b >> 5; | ||
346 | a = 0xff; | ||
347 | if ((hasa) && (tmp & 0x8000)) a = 0; | ||
348 | *dataptr = ARGB_JOIN(a, r, g, b); | ||
349 | dataptr++; | ||
350 | bufptr += 2; | ||
351 | } | ||
352 | break; | ||
353 | case 8: | ||
354 | for (x = 0; (x < w) && ((bufptr + 1) <= bufend); x++) | ||
355 | { | ||
356 | *dataptr = ARGB_JOIN(0xff, bufptr[0], bufptr[0], bufptr[0]); | ||
357 | dataptr++; | ||
358 | bufptr += 1; | ||
359 | } | ||
360 | break; | ||
361 | default: | ||
362 | break; | ||
363 | } | ||
364 | } | ||
365 | } | ||
366 | else | ||
367 | { | ||
368 | int count, i; | ||
369 | unsigned char val; | ||
370 | unsigned int *dataend; | ||
371 | |||
372 | dataptr = surface; | ||
373 | dataend = dataptr + (w * h); | ||
374 | while ((bufptr < bufend) && (dataptr < dataend)) | ||
375 | { | ||
376 | val = *bufptr; | ||
377 | bufptr++; | ||
378 | count = (val & 0x7f) + 1; | ||
379 | if (val & 0x80) // rel packet | ||
380 | { | ||
381 | switch (bpp) | ||
382 | { | ||
383 | case 32: | ||
384 | if (bufptr < (bufend - 4)) | ||
385 | { | ||
386 | unsigned char r, g, b; | ||
387 | int a = bufptr[3]; | ||
388 | |||
389 | switch (abits) | ||
390 | { | ||
391 | case 1: | ||
392 | a = (a << 7) | (a << 6) | (a << 5) | (a << 4) | (a << 3) | (a << 2) | (a << 1) | (a); | ||
393 | case 2: | ||
394 | a = (a << 6) | (a << 4) | (a << 2) | (a); | ||
395 | case 3: | ||
396 | a = (a << 5) | (a << 2) | (a >> 1); | ||
397 | case 4: | ||
398 | a = (a << 4) | (a); | ||
399 | case 5: | ||
400 | a = (a << 3) | (a >> 2); | ||
401 | case 6: | ||
402 | a = (a << 2) | (a >> 4); | ||
403 | case 7: | ||
404 | a = (a << 1) | (a >> 6); | ||
405 | default: | ||
406 | break; | ||
407 | } | ||
408 | r = bufptr[2]; | ||
409 | g = bufptr[1]; | ||
410 | b = bufptr[0]; | ||
411 | if (!hasa) a = 0xff; | ||
412 | bufptr += 4; | ||
413 | for (i = 0; (i < count) && (dataptr < dataend); i++) | ||
414 | { | ||
415 | *dataptr = ARGB_JOIN(a, r, g, b); | ||
416 | dataptr++; | ||
417 | } | ||
418 | } | ||
419 | break; | ||
420 | case 24: | ||
421 | if (bufptr < (bufend - 3)) | ||
422 | { | ||
423 | unsigned char r, g, b; | ||
424 | |||
425 | r = bufptr[2]; | ||
426 | g = bufptr[1]; | ||
427 | b = bufptr[0]; | ||
428 | bufptr += 3; | ||
429 | for (i = 0; (i < count) && (dataptr < dataend); i++) | ||
430 | { | ||
431 | *dataptr = ARGB_JOIN(0xff, r, g, b); | ||
432 | dataptr++; | ||
433 | } | ||
434 | } | ||
435 | break; | ||
436 | case 16: | ||
437 | if (bufptr < (bufend - 2)) | ||
438 | { | ||
439 | unsigned char r, g, b, a; | ||
440 | unsigned short tmp; | ||
441 | |||
442 | tmp = | ||
443 | (((unsigned short)bufptr[1]) << 8) | | ||
444 | (((unsigned short)bufptr[0])); | ||
445 | r = (tmp >> 7) & 0xf8; r |= r >> 5; | ||
446 | g = (tmp >> 2) & 0xf8; g |= g >> 5; | ||
447 | b = (tmp << 3) & 0xf8; b |= b >> 5; | ||
448 | a = 0xff; | ||
449 | if ((hasa) && (tmp & 0x8000)) a = 0; | ||
450 | bufptr += 2; | ||
451 | for (i = 0; (i < count) && (dataptr < dataend); i++) | ||
452 | { | ||
453 | *dataptr = ARGB_JOIN(a, r, g, b); | ||
454 | dataptr++; | ||
455 | } | ||
456 | } | ||
457 | break; | ||
458 | case 8: | ||
459 | if (bufptr < (bufend - 1)) | ||
460 | { | ||
461 | unsigned char g; | ||
462 | |||
463 | g = bufptr[0]; | ||
464 | bufptr += 1; | ||
465 | for (i = 0; (i < count) && (dataptr < dataend); i++) | ||
466 | { | ||
467 | *dataptr = ARGB_JOIN(0xff, g, g, g); | ||
468 | dataptr++; | ||
469 | } | ||
470 | } | ||
471 | break; | ||
472 | default: | ||
473 | break; | ||
474 | } | ||
475 | } | ||
476 | else // raw | ||
477 | { | ||
478 | switch (bpp) | ||
479 | { | ||
480 | case 32: | ||
481 | for (i = 0; (i < count) && (bufptr < (bufend - 4)) && (dataptr < dataend); i++) | ||
482 | { | ||
483 | if (hasa) | ||
484 | // *dataptr = ARGB_JOIN(255 - bufptr[3], bufptr[2], bufptr[1], bufptr[0]); | ||
485 | *dataptr = ARGB_JOIN(bufptr[3], bufptr[2], bufptr[1], bufptr[0]); | ||
486 | else | ||
487 | *dataptr = ARGB_JOIN(0xff, bufptr[2], bufptr[1], bufptr[0]); | ||
488 | dataptr++; | ||
489 | bufptr += 4; | ||
490 | } | ||
491 | break; | ||
492 | case 24: | ||
493 | for (i = 0; (i < count) && (bufptr < (bufend - 3)) && (dataptr < dataend); i++) | ||
494 | { | ||
495 | *dataptr = ARGB_JOIN(0xff, bufptr[2], bufptr[1], bufptr[0]); | ||
496 | dataptr++; | ||
497 | bufptr += 3; | ||
498 | } | ||
499 | break; | ||
500 | case 16: | ||
501 | for (i = 0; (i < count) && (bufptr < (bufend - 2)) && (dataptr < dataend); i++) | ||
502 | { | ||
503 | unsigned char r, g, b, a; | ||
504 | unsigned short tmp; | ||
505 | |||
506 | tmp = | ||
507 | (((unsigned short)bufptr[1]) << 8) | | ||
508 | (((unsigned short)bufptr[0])); | ||
509 | r = (tmp >> 7) & 0xf8; r |= r >> 5; | ||
510 | g = (tmp >> 2) & 0xf8; g |= g >> 5; | ||
511 | b = (tmp << 3) & 0xf8; b |= b >> 5; | ||
512 | a = 0xff; | ||
513 | if ((hasa) && (tmp & 0x8000)) a = 0; | ||
514 | *dataptr = ARGB_JOIN(a, r, g, b); | ||
515 | dataptr++; | ||
516 | bufptr += 2; | ||
517 | } | ||
518 | break; | ||
519 | case 8: | ||
520 | for (i = 0; (i < count) && (bufptr < (bufend - 1)) && (dataptr < dataend); i++) | ||
521 | { | ||
522 | *dataptr = ARGB_JOIN(0xff, bufptr[0], bufptr[0], bufptr[0]); | ||
523 | dataptr++; | ||
524 | bufptr += 1; | ||
525 | } | ||
526 | break; | ||
527 | default: | ||
528 | break; | ||
529 | } | ||
530 | } | ||
531 | } | ||
532 | if (vinverted) | ||
533 | { | ||
534 | unsigned int *adv, *adv2, tmp; | ||
535 | |||
536 | adv = surface; | ||
537 | adv2 = surface + (w * (h - 1)); | ||
538 | for (y = 0; y < (h / 2); y++) | ||
539 | { | ||
540 | for (x = 0; x < w; x++) | ||
541 | { | ||
542 | tmp = adv[x]; | ||
543 | adv[x] = adv2[x]; | ||
544 | adv2[x] = tmp; | ||
545 | } | ||
546 | adv2 -= w; | ||
547 | adv += w; | ||
548 | } | ||
549 | } | ||
550 | } | ||
551 | |||
552 | evas_common_image_premul(ie); | ||
553 | |||
554 | eina_file_map_free(f, seg); | ||
555 | eina_file_close(f); | ||
556 | *error = EVAS_LOAD_ERROR_NONE; | ||
557 | return EINA_TRUE; | ||
558 | |||
559 | close_file: | ||
560 | if (seg != NULL) eina_file_map_free(f, seg); | ||
561 | eina_file_close(f); | ||
562 | return EINA_FALSE; | ||
563 | } | ||
564 | |||
565 | static int | ||
566 | module_open(Evas_Module *em) | ||
567 | { | ||
568 | if (!em) return 0; | ||
569 | em->functions = (void *)(&evas_image_load_tga_func); | ||
570 | return 1; | ||
571 | } | ||
572 | |||
573 | static void | ||
574 | module_close(Evas_Module *em __UNUSED__) | ||
575 | { | ||
576 | } | ||
577 | |||
578 | static Evas_Module_Api evas_modapi = | ||
579 | { | ||
580 | EVAS_MODULE_API_VERSION, | ||
581 | "tga", | ||
582 | "none", | ||
583 | { | ||
584 | module_open, | ||
585 | module_close | ||
586 | } | ||
587 | }; | ||
588 | |||
589 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, tga); | ||
590 | |||
591 | #ifndef EVAS_STATIC_BUILD_TGA | ||
592 | EVAS_EINA_MODULE_DEFINE(image_loader, tga); | ||
593 | #endif | ||
diff --git a/libraries/evas/src/modules/loaders/tiff/Makefile.am b/libraries/evas/src/modules/loaders/tiff/Makefile.am deleted file mode 100644 index 1a53686..0000000 --- a/libraries/evas/src/modules/loaders/tiff/Makefile.am +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
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 | @EINA_CFLAGS@ \ | ||
11 | @evas_image_loader_tiff_cflags@ \ | ||
12 | @EVIL_CFLAGS@ | ||
13 | |||
14 | if BUILD_LOADER_TIFF | ||
15 | if !EVAS_STATIC_BUILD_TIFF | ||
16 | |||
17 | pkgdir = $(libdir)/evas/modules/loaders/tiff/$(MODULE_ARCH) | ||
18 | pkg_LTLIBRARIES = module.la | ||
19 | |||
20 | module_la_SOURCES = evas_image_load_tiff.c | ||
21 | |||
22 | module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ @evas_image_loader_tiff_libs@ $(top_builddir)/src/lib/libevas.la | ||
23 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
24 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
25 | |||
26 | else | ||
27 | |||
28 | noinst_LTLIBRARIES = libevas_loader_tiff.la | ||
29 | |||
30 | libevas_loader_tiff_la_SOURCES = evas_image_load_tiff.c | ||
31 | libevas_loader_tiff_la_LIBADD = @evas_image_loader_tiff_libs@ | ||
32 | |||
33 | endif | ||
34 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/tiff/Makefile.in b/libraries/evas/src/modules/loaders/tiff/Makefile.in deleted file mode 100644 index 5976b63..0000000 --- a/libraries/evas/src/modules/loaders/tiff/Makefile.in +++ /dev/null | |||
@@ -1,762 +0,0 @@ | |||
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/tiff | ||
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_tiff_la_DEPENDENCIES = | ||
83 | am__libevas_loader_tiff_la_SOURCES_DIST = evas_image_load_tiff.c | ||
84 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_TRUE@am_libevas_loader_tiff_la_OBJECTS = evas_image_load_tiff.lo | ||
85 | libevas_loader_tiff_la_OBJECTS = $(am_libevas_loader_tiff_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_TRUE@am_libevas_loader_tiff_la_rpath = | ||
90 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
91 | am__module_la_SOURCES_DIST = evas_image_load_tiff.c | ||
92 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_tiff.lo | ||
93 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
94 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
95 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
96 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@am_module_la_rpath = \ | ||
98 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@ -rpath \ | ||
99 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@ $(pkgdir) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_tiff_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_tiff_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
185 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
186 | FGREP = @FGREP@ | ||
187 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
188 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
189 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
190 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
191 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
192 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
193 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
194 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
195 | GREP = @GREP@ | ||
196 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
197 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
198 | INSTALL = @INSTALL@ | ||
199 | INSTALL_DATA = @INSTALL_DATA@ | ||
200 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
201 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
202 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
203 | LD = @LD@ | ||
204 | LDFLAGS = @LDFLAGS@ | ||
205 | LIBOBJS = @LIBOBJS@ | ||
206 | LIBS = @LIBS@ | ||
207 | LIBTOOL = @LIBTOOL@ | ||
208 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
209 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
210 | LIPO = @LIPO@ | ||
211 | LN_S = @LN_S@ | ||
212 | LTLIBOBJS = @LTLIBOBJS@ | ||
213 | MAKEINFO = @MAKEINFO@ | ||
214 | MKDIR_P = @MKDIR_P@ | ||
215 | MODULE_ARCH = @MODULE_ARCH@ | ||
216 | NM = @NM@ | ||
217 | NMEDIT = @NMEDIT@ | ||
218 | OBJC = @OBJC@ | ||
219 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
220 | OBJCFLAGS = @OBJCFLAGS@ | ||
221 | OBJDUMP = @OBJDUMP@ | ||
222 | OBJEXT = @OBJEXT@ | ||
223 | OTOOL = @OTOOL@ | ||
224 | OTOOL64 = @OTOOL64@ | ||
225 | PACKAGE = @PACKAGE@ | ||
226 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
227 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
228 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
229 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
230 | PACKAGE_URL = @PACKAGE_URL@ | ||
231 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
232 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
233 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
234 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
235 | PKG_CONFIG = @PKG_CONFIG@ | ||
236 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
237 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
238 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
239 | PNG_LIBS = @PNG_LIBS@ | ||
240 | RANLIB = @RANLIB@ | ||
241 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
242 | SDL_LIBS = @SDL_LIBS@ | ||
243 | SED = @SED@ | ||
244 | SET_MAKE = @SET_MAKE@ | ||
245 | SHELL = @SHELL@ | ||
246 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
247 | STRIP = @STRIP@ | ||
248 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
249 | SVG_LIBS = @SVG_LIBS@ | ||
250 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
251 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
252 | VERSION = @VERSION@ | ||
253 | VMAJ = @VMAJ@ | ||
254 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
255 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
256 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
257 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
258 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
259 | XCB_LIBS = @XCB_LIBS@ | ||
260 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
261 | XEXT_LIBS = @XEXT_LIBS@ | ||
262 | XMKMF = @XMKMF@ | ||
263 | X_CFLAGS = @X_CFLAGS@ | ||
264 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
265 | X_LIBS = @X_LIBS@ | ||
266 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
267 | abs_builddir = @abs_builddir@ | ||
268 | abs_srcdir = @abs_srcdir@ | ||
269 | abs_top_builddir = @abs_top_builddir@ | ||
270 | abs_top_srcdir = @abs_top_srcdir@ | ||
271 | ac_ct_CC = @ac_ct_CC@ | ||
272 | ac_ct_CXX = @ac_ct_CXX@ | ||
273 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
274 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
275 | altivec_cflags = @altivec_cflags@ | ||
276 | am__include = @am__include@ | ||
277 | am__leading_dot = @am__leading_dot@ | ||
278 | am__quote = @am__quote@ | ||
279 | am__tar = @am__tar@ | ||
280 | am__untar = @am__untar@ | ||
281 | bindir = @bindir@ | ||
282 | build = @build@ | ||
283 | build_alias = @build_alias@ | ||
284 | build_cpu = @build_cpu@ | ||
285 | build_os = @build_os@ | ||
286 | build_vendor = @build_vendor@ | ||
287 | builddir = @builddir@ | ||
288 | datadir = @datadir@ | ||
289 | datarootdir = @datarootdir@ | ||
290 | dlopen_libs = @dlopen_libs@ | ||
291 | docdir = @docdir@ | ||
292 | dvidir = @dvidir@ | ||
293 | edje_cc = @edje_cc@ | ||
294 | efl_doxygen = @efl_doxygen@ | ||
295 | efl_have_doxygen = @efl_have_doxygen@ | ||
296 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
297 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
298 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
299 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
300 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
301 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
302 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
303 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
304 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
305 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
306 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
307 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
308 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
309 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
310 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
311 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
312 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
313 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
314 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
315 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
316 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
317 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
318 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
319 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
320 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
321 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
322 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
323 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
324 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
325 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
326 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
327 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
328 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
329 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
330 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
331 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
332 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
333 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
334 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
335 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
336 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
337 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
338 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
339 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
340 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
341 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
342 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
343 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
344 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
345 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
346 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
347 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
348 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
349 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
350 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
351 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
352 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
353 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
354 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
355 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
356 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
357 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
358 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
359 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
360 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
361 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
362 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
363 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
364 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
365 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
366 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
367 | exec_prefix = @exec_prefix@ | ||
368 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
369 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
370 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
371 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
372 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
373 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
374 | have_lcov = @have_lcov@ | ||
375 | host = @host@ | ||
376 | host_alias = @host_alias@ | ||
377 | host_cpu = @host_cpu@ | ||
378 | host_os = @host_os@ | ||
379 | host_vendor = @host_vendor@ | ||
380 | htmldir = @htmldir@ | ||
381 | includedir = @includedir@ | ||
382 | infodir = @infodir@ | ||
383 | install_sh = @install_sh@ | ||
384 | libdir = @libdir@ | ||
385 | libexecdir = @libexecdir@ | ||
386 | localedir = @localedir@ | ||
387 | localstatedir = @localstatedir@ | ||
388 | lt_ECHO = @lt_ECHO@ | ||
389 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
390 | mandir = @mandir@ | ||
391 | mkdir_p = @mkdir_p@ | ||
392 | oldincludedir = @oldincludedir@ | ||
393 | pdfdir = @pdfdir@ | ||
394 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
395 | prefix = @prefix@ | ||
396 | program_transform_name = @program_transform_name@ | ||
397 | psdir = @psdir@ | ||
398 | pthread_cflags = @pthread_cflags@ | ||
399 | pthread_libs = @pthread_libs@ | ||
400 | release_info = @release_info@ | ||
401 | requirement_evas = @requirement_evas@ | ||
402 | sbindir = @sbindir@ | ||
403 | sharedstatedir = @sharedstatedir@ | ||
404 | srcdir = @srcdir@ | ||
405 | sysconfdir = @sysconfdir@ | ||
406 | target_alias = @target_alias@ | ||
407 | top_build_prefix = @top_build_prefix@ | ||
408 | top_builddir = @top_builddir@ | ||
409 | top_srcdir = @top_srcdir@ | ||
410 | version_info = @version_info@ | ||
411 | MAINTAINERCLEANFILES = Makefile.in | ||
412 | AM_CPPFLAGS = \ | ||
413 | -I. \ | ||
414 | -I$(top_srcdir)/src/lib \ | ||
415 | -I$(top_srcdir)/src/lib/include \ | ||
416 | @FREETYPE_CFLAGS@ \ | ||
417 | @PIXMAN_CFLAGS@ \ | ||
418 | @EINA_CFLAGS@ \ | ||
419 | @evas_image_loader_tiff_cflags@ \ | ||
420 | @EVIL_CFLAGS@ | ||
421 | |||
422 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@pkgdir = $(libdir)/evas/modules/loaders/tiff/$(MODULE_ARCH) | ||
423 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@pkg_LTLIBRARIES = module.la | ||
424 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@module_la_SOURCES = evas_image_load_tiff.c | ||
425 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ @evas_image_loader_tiff_libs@ $(top_builddir)/src/lib/libevas.la | ||
426 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
427 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
428 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_TRUE@noinst_LTLIBRARIES = libevas_loader_tiff.la | ||
429 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_TRUE@libevas_loader_tiff_la_SOURCES = evas_image_load_tiff.c | ||
430 | @BUILD_LOADER_TIFF_TRUE@@EVAS_STATIC_BUILD_TIFF_TRUE@libevas_loader_tiff_la_LIBADD = @evas_image_loader_tiff_libs@ | ||
431 | all: all-am | ||
432 | |||
433 | .SUFFIXES: | ||
434 | .SUFFIXES: .c .lo .o .obj | ||
435 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
436 | @for dep in $?; do \ | ||
437 | case '$(am__configure_deps)' in \ | ||
438 | *$$dep*) \ | ||
439 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
440 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
441 | exit 1;; \ | ||
442 | esac; \ | ||
443 | done; \ | ||
444 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/tiff/Makefile'; \ | ||
445 | $(am__cd) $(top_srcdir) && \ | ||
446 | $(AUTOMAKE) --gnu src/modules/loaders/tiff/Makefile | ||
447 | .PRECIOUS: Makefile | ||
448 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
449 | @case '$?' in \ | ||
450 | *config.status*) \ | ||
451 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
452 | *) \ | ||
453 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
454 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
455 | esac; | ||
456 | |||
457 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
458 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
459 | |||
460 | $(top_srcdir)/configure: $(am__configure_deps) | ||
461 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
462 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
463 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
464 | $(am__aclocal_m4_deps): | ||
465 | |||
466 | clean-noinstLTLIBRARIES: | ||
467 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) | ||
468 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | ||
469 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
470 | test "$$dir" != "$$p" || dir=.; \ | ||
471 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
472 | rm -f "$${dir}/so_locations"; \ | ||
473 | done | ||
474 | install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) | ||
475 | @$(NORMAL_INSTALL) | ||
476 | test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)" | ||
477 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
478 | list2=; for p in $$list; do \ | ||
479 | if test -f $$p; then \ | ||
480 | list2="$$list2 $$p"; \ | ||
481 | else :; fi; \ | ||
482 | done; \ | ||
483 | test -z "$$list2" || { \ | ||
484 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ | ||
485 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ | ||
486 | } | ||
487 | |||
488 | uninstall-pkgLTLIBRARIES: | ||
489 | @$(NORMAL_UNINSTALL) | ||
490 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
491 | for p in $$list; do \ | ||
492 | $(am__strip_dir) \ | ||
493 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ | ||
494 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ | ||
495 | done | ||
496 | |||
497 | clean-pkgLTLIBRARIES: | ||
498 | -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) | ||
499 | @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \ | ||
500 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
501 | test "$$dir" != "$$p" || dir=.; \ | ||
502 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
503 | rm -f "$${dir}/so_locations"; \ | ||
504 | done | ||
505 | libevas_loader_tiff.la: $(libevas_loader_tiff_la_OBJECTS) $(libevas_loader_tiff_la_DEPENDENCIES) | ||
506 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_tiff_la_rpath) $(libevas_loader_tiff_la_OBJECTS) $(libevas_loader_tiff_la_LIBADD) $(LIBS) | ||
507 | module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES) | ||
508 | $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS) | ||
509 | |||
510 | mostlyclean-compile: | ||
511 | -rm -f *.$(OBJEXT) | ||
512 | |||
513 | distclean-compile: | ||
514 | -rm -f *.tab.c | ||
515 | |||
516 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_tiff.Plo@am__quote@ | ||
517 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_tiff.Plo@am__quote@ | ||
518 | |||
519 | .c.o: | ||
520 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
521 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
522 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
523 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
524 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
525 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
526 | |||
527 | .c.obj: | ||
528 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
529 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
530 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
531 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
532 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
533 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
534 | |||
535 | .c.lo: | ||
536 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
537 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
538 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
539 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
540 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
541 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
542 | |||
543 | module_la-evas_image_load_tiff.lo: evas_image_load_tiff.c | ||
544 | @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_tiff.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_tiff.Tpo -c -o module_la-evas_image_load_tiff.lo `test -f 'evas_image_load_tiff.c' || echo '$(srcdir)/'`evas_image_load_tiff.c | ||
545 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_tiff.Tpo $(DEPDIR)/module_la-evas_image_load_tiff.Plo | ||
546 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
547 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_tiff.c' object='module_la-evas_image_load_tiff.lo' libtool=yes @AMDEPBACKSLASH@ | ||
548 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
549 | @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_tiff.lo `test -f 'evas_image_load_tiff.c' || echo '$(srcdir)/'`evas_image_load_tiff.c | ||
550 | |||
551 | mostlyclean-libtool: | ||
552 | -rm -f *.lo | ||
553 | |||
554 | clean-libtool: | ||
555 | -rm -rf .libs _libs | ||
556 | |||
557 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
558 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
559 | unique=`for i in $$list; do \ | ||
560 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
561 | done | \ | ||
562 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
563 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
564 | mkid -fID $$unique | ||
565 | tags: TAGS | ||
566 | |||
567 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
568 | $(TAGS_FILES) $(LISP) | ||
569 | set x; \ | ||
570 | here=`pwd`; \ | ||
571 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
572 | unique=`for i in $$list; do \ | ||
573 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
574 | done | \ | ||
575 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
576 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
577 | shift; \ | ||
578 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
579 | test -n "$$unique" || unique=$$empty_fix; \ | ||
580 | if test $$# -gt 0; then \ | ||
581 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
582 | "$$@" $$unique; \ | ||
583 | else \ | ||
584 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
585 | $$unique; \ | ||
586 | fi; \ | ||
587 | fi | ||
588 | ctags: CTAGS | ||
589 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
590 | $(TAGS_FILES) $(LISP) | ||
591 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
592 | unique=`for i in $$list; do \ | ||
593 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
594 | done | \ | ||
595 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
596 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
597 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
598 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
599 | $$unique | ||
600 | |||
601 | GTAGS: | ||
602 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
603 | && $(am__cd) $(top_srcdir) \ | ||
604 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
605 | |||
606 | distclean-tags: | ||
607 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
608 | |||
609 | distdir: $(DISTFILES) | ||
610 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
611 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
612 | list='$(DISTFILES)'; \ | ||
613 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
614 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
615 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
616 | case $$dist_files in \ | ||
617 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
618 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
619 | sort -u` ;; \ | ||
620 | esac; \ | ||
621 | for file in $$dist_files; do \ | ||
622 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
623 | if test -d $$d/$$file; then \ | ||
624 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
625 | if test -d "$(distdir)/$$file"; then \ | ||
626 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
627 | fi; \ | ||
628 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
629 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
630 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
631 | fi; \ | ||
632 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
633 | else \ | ||
634 | test -f "$(distdir)/$$file" \ | ||
635 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
636 | || exit 1; \ | ||
637 | fi; \ | ||
638 | done | ||
639 | check-am: all-am | ||
640 | check: check-am | ||
641 | all-am: Makefile $(LTLIBRARIES) | ||
642 | installdirs: | ||
643 | for dir in "$(DESTDIR)$(pkgdir)"; do \ | ||
644 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
645 | done | ||
646 | install: install-am | ||
647 | install-exec: install-exec-am | ||
648 | install-data: install-data-am | ||
649 | uninstall: uninstall-am | ||
650 | |||
651 | install-am: all-am | ||
652 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
653 | |||
654 | installcheck: installcheck-am | ||
655 | install-strip: | ||
656 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
657 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
658 | `test -z '$(STRIP)' || \ | ||
659 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
660 | mostlyclean-generic: | ||
661 | |||
662 | clean-generic: | ||
663 | |||
664 | distclean-generic: | ||
665 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
666 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
667 | |||
668 | maintainer-clean-generic: | ||
669 | @echo "This command is intended for maintainers to use" | ||
670 | @echo "it deletes files that may require special tools to rebuild." | ||
671 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
672 | clean: clean-am | ||
673 | |||
674 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ | ||
675 | clean-pkgLTLIBRARIES mostlyclean-am | ||
676 | |||
677 | distclean: distclean-am | ||
678 | -rm -rf ./$(DEPDIR) | ||
679 | -rm -f Makefile | ||
680 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
681 | distclean-tags | ||
682 | |||
683 | dvi: dvi-am | ||
684 | |||
685 | dvi-am: | ||
686 | |||
687 | html: html-am | ||
688 | |||
689 | html-am: | ||
690 | |||
691 | info: info-am | ||
692 | |||
693 | info-am: | ||
694 | |||
695 | install-data-am: install-pkgLTLIBRARIES | ||
696 | |||
697 | install-dvi: install-dvi-am | ||
698 | |||
699 | install-dvi-am: | ||
700 | |||
701 | install-exec-am: | ||
702 | |||
703 | install-html: install-html-am | ||
704 | |||
705 | install-html-am: | ||
706 | |||
707 | install-info: install-info-am | ||
708 | |||
709 | install-info-am: | ||
710 | |||
711 | install-man: | ||
712 | |||
713 | install-pdf: install-pdf-am | ||
714 | |||
715 | install-pdf-am: | ||
716 | |||
717 | install-ps: install-ps-am | ||
718 | |||
719 | install-ps-am: | ||
720 | |||
721 | installcheck-am: | ||
722 | |||
723 | maintainer-clean: maintainer-clean-am | ||
724 | -rm -rf ./$(DEPDIR) | ||
725 | -rm -f Makefile | ||
726 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
727 | |||
728 | mostlyclean: mostlyclean-am | ||
729 | |||
730 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
731 | mostlyclean-libtool | ||
732 | |||
733 | pdf: pdf-am | ||
734 | |||
735 | pdf-am: | ||
736 | |||
737 | ps: ps-am | ||
738 | |||
739 | ps-am: | ||
740 | |||
741 | uninstall-am: uninstall-pkgLTLIBRARIES | ||
742 | |||
743 | .MAKE: install-am install-strip | ||
744 | |||
745 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
746 | clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \ | ||
747 | ctags distclean distclean-compile distclean-generic \ | ||
748 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
749 | html-am info info-am install install-am install-data \ | ||
750 | install-data-am install-dvi install-dvi-am install-exec \ | ||
751 | install-exec-am install-html install-html-am install-info \ | ||
752 | install-info-am install-man install-pdf install-pdf-am \ | ||
753 | install-pkgLTLIBRARIES install-ps install-ps-am install-strip \ | ||
754 | installcheck installcheck-am installdirs maintainer-clean \ | ||
755 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
756 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
757 | tags uninstall uninstall-am uninstall-pkgLTLIBRARIES | ||
758 | |||
759 | |||
760 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
761 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
762 | .NOEXPORT: | ||
diff --git a/libraries/evas/src/modules/loaders/tiff/evas_image_load_tiff.c b/libraries/evas/src/modules/loaders/tiff/evas_image_load_tiff.c deleted file mode 100644 index e17d5a6..0000000 --- a/libraries/evas/src/modules/loaders/tiff/evas_image_load_tiff.c +++ /dev/null | |||
@@ -1,325 +0,0 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
5 | #include <sys/types.h> | ||
6 | #include <stdio.h> | ||
7 | #include <unistd.h> | ||
8 | #include <tiffio.h> | ||
9 | |||
10 | #ifdef HAVE_EVIL | ||
11 | # include <Evil.h> | ||
12 | #endif | ||
13 | |||
14 | #include "evas_common.h" | ||
15 | #include "evas_private.h" | ||
16 | |||
17 | static int _evas_loader_tiff_log_dom = -1; | ||
18 | |||
19 | #ifdef ERR | ||
20 | # undef ERR | ||
21 | #endif | ||
22 | #define ERR(...) EINA_LOG_DOM_ERR(_evas_loader_tiff_log_dom, __VA_ARGS__) | ||
23 | |||
24 | #ifdef INF | ||
25 | # undef INF | ||
26 | #endif | ||
27 | #define INF(...) EINA_LOG_DOM_INFO(_evas_loader_tiff_log_dom, __VA_ARGS__) | ||
28 | |||
29 | static Eina_Bool evas_image_load_file_head_tiff(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
30 | static Eina_Bool evas_image_load_file_data_tiff(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
31 | |||
32 | static Evas_Image_Load_Func evas_image_load_tiff_func = | ||
33 | { | ||
34 | EINA_TRUE, | ||
35 | evas_image_load_file_head_tiff, | ||
36 | evas_image_load_file_data_tiff, | ||
37 | NULL, | ||
38 | EINA_FALSE | ||
39 | }; | ||
40 | |||
41 | typedef struct TIFFRGBAImage_Extra TIFFRGBAImage_Extra; | ||
42 | |||
43 | struct TIFFRGBAImage_Extra { | ||
44 | TIFFRGBAImage rgba; | ||
45 | Image_Entry *image; | ||
46 | char pper; | ||
47 | uint32 num_pixels; | ||
48 | uint32 py; | ||
49 | }; | ||
50 | |||
51 | static Eina_Bool | ||
52 | evas_image_load_file_head_tiff(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error) | ||
53 | { | ||
54 | char txt[1024]; | ||
55 | TIFFRGBAImage tiff_image; | ||
56 | TIFF *tif = NULL; | ||
57 | FILE *ffile; | ||
58 | int fd; | ||
59 | uint16 magic_number; | ||
60 | |||
61 | ffile = fopen(file, "rb"); | ||
62 | if (!ffile) | ||
63 | { | ||
64 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
65 | return EINA_FALSE; | ||
66 | } | ||
67 | |||
68 | if (fread(&magic_number, sizeof(uint16), 1, ffile) != 1) | ||
69 | { | ||
70 | fclose(ffile); | ||
71 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
72 | return EINA_FALSE; | ||
73 | } | ||
74 | /* Apparently rewind(f) isn't sufficient */ | ||
75 | fseek(ffile, 0, SEEK_SET); | ||
76 | |||
77 | if ((magic_number != TIFF_BIGENDIAN) /* Checks if actually tiff file */ | ||
78 | && (magic_number != TIFF_LITTLEENDIAN)) | ||
79 | { | ||
80 | fclose(ffile); | ||
81 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
82 | return EINA_FALSE; | ||
83 | } | ||
84 | |||
85 | fd = fileno(ffile); | ||
86 | fd = dup(fd); | ||
87 | lseek(fd, (long)0, SEEK_SET); | ||
88 | fclose(ffile); | ||
89 | |||
90 | tif = TIFFFdOpen(fd, file, "r"); | ||
91 | if (!tif) | ||
92 | { | ||
93 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
94 | return EINA_FALSE; | ||
95 | } | ||
96 | |||
97 | strcpy(txt, "Evas Tiff loader: cannot be processed by libtiff"); | ||
98 | if (!TIFFRGBAImageOK(tif, txt)) | ||
99 | { | ||
100 | TIFFClose(tif); | ||
101 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
102 | return EINA_FALSE; | ||
103 | } | ||
104 | strcpy(txt, "Evas Tiff loader: cannot begin reading tiff"); | ||
105 | if (!TIFFRGBAImageBegin(& tiff_image, tif, 1, txt)) | ||
106 | { | ||
107 | TIFFClose(tif); | ||
108 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
109 | return EINA_FALSE; | ||
110 | } | ||
111 | |||
112 | if (tiff_image.alpha != EXTRASAMPLE_UNSPECIFIED) | ||
113 | ie->flags.alpha = 1; | ||
114 | if ((tiff_image.width < 1) || (tiff_image.height < 1) || | ||
115 | (tiff_image.width > IMG_MAX_SIZE) || (tiff_image.height > IMG_MAX_SIZE) || | ||
116 | IMG_TOO_BIG(tiff_image.width, tiff_image.height)) | ||
117 | { | ||
118 | TIFFClose(tif); | ||
119 | if (IMG_TOO_BIG(tiff_image.width, tiff_image.height)) | ||
120 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
121 | else | ||
122 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
123 | return EINA_FALSE; | ||
124 | } | ||
125 | ie->w = tiff_image.width; | ||
126 | ie->h = tiff_image.height; | ||
127 | |||
128 | TIFFRGBAImageEnd(&tiff_image); | ||
129 | TIFFClose(tif); | ||
130 | *error = EVAS_LOAD_ERROR_NONE; | ||
131 | return EINA_TRUE; | ||
132 | } | ||
133 | |||
134 | static Eina_Bool | ||
135 | evas_image_load_file_data_tiff(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error) | ||
136 | { | ||
137 | char txt[1024]; | ||
138 | TIFFRGBAImage_Extra rgba_image; | ||
139 | TIFF *tif = NULL; | ||
140 | FILE *ffile; | ||
141 | uint32 *rast = NULL; | ||
142 | uint32 num_pixels; | ||
143 | int fd, x, y; | ||
144 | uint16 magic_number; | ||
145 | |||
146 | ffile = fopen(file, "rb"); | ||
147 | if (!ffile) | ||
148 | { | ||
149 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
150 | return EINA_FALSE; | ||
151 | } | ||
152 | |||
153 | if (fread(&magic_number, sizeof(uint16), 1, ffile) != 1) | ||
154 | { | ||
155 | fclose(ffile); | ||
156 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
157 | return EINA_FALSE; | ||
158 | } | ||
159 | /* Apparently rewind(f) isn't sufficient */ | ||
160 | fseek(ffile, (long)0, SEEK_SET); | ||
161 | |||
162 | if ((magic_number != TIFF_BIGENDIAN) /* Checks if actually tiff file */ | ||
163 | && (magic_number != TIFF_LITTLEENDIAN)) | ||
164 | { | ||
165 | fclose(ffile); | ||
166 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
167 | return EINA_FALSE; | ||
168 | } | ||
169 | |||
170 | fd = fileno(ffile); | ||
171 | fd = dup(fd); | ||
172 | lseek(fd, (long)0, SEEK_SET); | ||
173 | fclose(ffile); | ||
174 | |||
175 | tif = TIFFFdOpen(fd, file, "r"); | ||
176 | if (!tif) | ||
177 | { | ||
178 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
179 | return EINA_FALSE; | ||
180 | } | ||
181 | |||
182 | strcpy(txt, "Evas Tiff loader: cannot be processed by libtiff"); | ||
183 | if (!TIFFRGBAImageOK(tif, txt)) | ||
184 | { | ||
185 | TIFFClose(tif); | ||
186 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
187 | return EINA_FALSE; | ||
188 | } | ||
189 | strcpy(txt, "Evas Tiff loader: cannot begin reading tiff"); | ||
190 | if (!TIFFRGBAImageBegin((TIFFRGBAImage *) & rgba_image, tif, 0, txt)) | ||
191 | { | ||
192 | TIFFClose(tif); | ||
193 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
194 | return EINA_FALSE; | ||
195 | } | ||
196 | rgba_image.image = ie; | ||
197 | |||
198 | if (rgba_image.rgba.alpha != EXTRASAMPLE_UNSPECIFIED) | ||
199 | ie->flags.alpha = 1; | ||
200 | if ((rgba_image.rgba.width != ie->w) || | ||
201 | (rgba_image.rgba.height != ie->h)) | ||
202 | { | ||
203 | TIFFClose(tif); | ||
204 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
205 | return EINA_FALSE; | ||
206 | } | ||
207 | |||
208 | evas_cache_image_surface_alloc(ie, rgba_image.rgba.width, rgba_image.rgba.height); | ||
209 | if (!evas_cache_image_pixels(ie)) | ||
210 | { | ||
211 | TIFFRGBAImageEnd((TIFFRGBAImage *) & rgba_image); | ||
212 | TIFFClose(tif); | ||
213 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
214 | return EINA_FALSE; | ||
215 | } | ||
216 | |||
217 | rgba_image.num_pixels = num_pixels = ie->w * ie->h; | ||
218 | |||
219 | rgba_image.pper = rgba_image.py = 0; | ||
220 | rast = (uint32 *) _TIFFmalloc(sizeof(uint32) * num_pixels); | ||
221 | |||
222 | if (!rast) | ||
223 | { | ||
224 | ERR("Evas Tiff loader: out of memory"); | ||
225 | |||
226 | TIFFRGBAImageEnd((TIFFRGBAImage *) & rgba_image); | ||
227 | TIFFClose(tif); | ||
228 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
229 | return EINA_FALSE; | ||
230 | } | ||
231 | if (rgba_image.rgba.bitspersample == 8) | ||
232 | { | ||
233 | if (!TIFFRGBAImageGet((TIFFRGBAImage *) &rgba_image, rast, | ||
234 | rgba_image.rgba.width, rgba_image.rgba.height)) | ||
235 | { | ||
236 | _TIFFfree(rast); | ||
237 | TIFFRGBAImageEnd((TIFFRGBAImage *) & rgba_image); | ||
238 | TIFFClose(tif); | ||
239 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
240 | return EINA_FALSE; | ||
241 | } | ||
242 | } | ||
243 | else | ||
244 | { | ||
245 | INF("channel bits == %i", (int)rgba_image.rgba.samplesperpixel); | ||
246 | } | ||
247 | /* process rast -> image rgba. really same as prior code anyway just simpler */ | ||
248 | for (y = 0; y < (int)ie->h; y++) | ||
249 | { | ||
250 | DATA32 *pix, *pd; | ||
251 | uint32 *ps, pixel; | ||
252 | unsigned int a, r, g, b; | ||
253 | |||
254 | pix = evas_cache_image_pixels(ie); | ||
255 | pd = pix + ((ie->h - y - 1) * ie->w); | ||
256 | ps = rast + (y * ie->w); | ||
257 | for (x = 0; x < (int)ie->w; x++) | ||
258 | { | ||
259 | pixel = *ps; | ||
260 | a = TIFFGetA(pixel); | ||
261 | r = TIFFGetR(pixel); | ||
262 | g = TIFFGetG(pixel); | ||
263 | b = TIFFGetB(pixel); | ||
264 | if (!ie->flags.alpha) a = 255; | ||
265 | if ((rgba_image.rgba.alpha == EXTRASAMPLE_UNASSALPHA) && | ||
266 | (a < 255)) | ||
267 | { | ||
268 | r = (r * (a + 1)) >> 8; | ||
269 | g = (g * (a + 1)) >> 8; | ||
270 | b = (b * (a + 1)) >> 8; | ||
271 | } | ||
272 | *pd = ARGB_JOIN(a, r, g, b); | ||
273 | ps++; | ||
274 | pd++; | ||
275 | } | ||
276 | } | ||
277 | |||
278 | _TIFFfree(rast); | ||
279 | |||
280 | TIFFRGBAImageEnd((TIFFRGBAImage *) & rgba_image); | ||
281 | |||
282 | TIFFClose(tif); | ||
283 | |||
284 | evas_common_image_set_alpha_sparse(ie); | ||
285 | *error = EVAS_LOAD_ERROR_NONE; | ||
286 | return EINA_TRUE; | ||
287 | } | ||
288 | |||
289 | static int | ||
290 | module_open(Evas_Module *em) | ||
291 | { | ||
292 | if (!em) return 0; | ||
293 | _evas_loader_tiff_log_dom = eina_log_domain_register | ||
294 | ("evas-tiff", EVAS_DEFAULT_LOG_COLOR); | ||
295 | if (_evas_loader_tiff_log_dom < 0) | ||
296 | { | ||
297 | EINA_LOG_ERR("Can not create a module log domain."); | ||
298 | return 0; | ||
299 | } | ||
300 | em->functions = (void *)(&evas_image_load_tiff_func); | ||
301 | return 1; | ||
302 | } | ||
303 | |||
304 | static void | ||
305 | module_close(Evas_Module *em __UNUSED__) | ||
306 | { | ||
307 | eina_log_domain_unregister(_evas_loader_tiff_log_dom); | ||
308 | } | ||
309 | |||
310 | static Evas_Module_Api evas_modapi = | ||
311 | { | ||
312 | EVAS_MODULE_API_VERSION, | ||
313 | "tiff", | ||
314 | "none", | ||
315 | { | ||
316 | module_open, | ||
317 | module_close | ||
318 | } | ||
319 | }; | ||
320 | |||
321 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, tiff); | ||
322 | |||
323 | #ifndef EVAS_STATIC_BUILD_TIFF | ||
324 | EVAS_EINA_MODULE_DEFINE(image_loader, tiff); | ||
325 | #endif | ||
diff --git a/libraries/evas/src/modules/loaders/wbmp/Makefile.am b/libraries/evas/src/modules/loaders/wbmp/Makefile.am deleted file mode 100644 index 61a4def..0000000 --- a/libraries/evas/src/modules/loaders/wbmp/Makefile.am +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
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 | @EINA_CFLAGS@ \ | ||
11 | @EVIL_CFLAGS@ | ||
12 | |||
13 | if BUILD_LOADER_WBMP | ||
14 | if !EVAS_STATIC_BUILD_WBMP | ||
15 | |||
16 | pkgdir = $(libdir)/evas/modules/loaders/wbmp/$(MODULE_ARCH) | ||
17 | pkg_LTLIBRARIES = module.la | ||
18 | |||
19 | module_la_SOURCES = evas_image_load_wbmp.c | ||
20 | |||
21 | module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
22 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
23 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
24 | |||
25 | else | ||
26 | |||
27 | noinst_LTLIBRARIES = libevas_loader_wbmp.la | ||
28 | libevas_loader_wbmp_la_SOURCES = evas_image_load_wbmp.c | ||
29 | libevas_loader_wbmp_la_LIBADD = | ||
30 | |||
31 | endif | ||
32 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/wbmp/Makefile.in b/libraries/evas/src/modules/loaders/wbmp/Makefile.in deleted file mode 100644 index aba23a2..0000000 --- a/libraries/evas/src/modules/loaders/wbmp/Makefile.in +++ /dev/null | |||
@@ -1,761 +0,0 @@ | |||
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/wbmp | ||
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_wbmp_la_DEPENDENCIES = | ||
83 | am__libevas_loader_wbmp_la_SOURCES_DIST = evas_image_load_wbmp.c | ||
84 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_TRUE@am_libevas_loader_wbmp_la_OBJECTS = evas_image_load_wbmp.lo | ||
85 | libevas_loader_wbmp_la_OBJECTS = $(am_libevas_loader_wbmp_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_TRUE@am_libevas_loader_wbmp_la_rpath = | ||
90 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
91 | am__module_la_SOURCES_DIST = evas_image_load_wbmp.c | ||
92 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_wbmp.lo | ||
93 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
94 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
95 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
96 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@am_module_la_rpath = \ | ||
98 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@ -rpath \ | ||
99 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@ $(pkgdir) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_wbmp_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_wbmp_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
185 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
186 | FGREP = @FGREP@ | ||
187 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
188 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
189 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
190 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
191 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
192 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
193 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
194 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
195 | GREP = @GREP@ | ||
196 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
197 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
198 | INSTALL = @INSTALL@ | ||
199 | INSTALL_DATA = @INSTALL_DATA@ | ||
200 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
201 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
202 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
203 | LD = @LD@ | ||
204 | LDFLAGS = @LDFLAGS@ | ||
205 | LIBOBJS = @LIBOBJS@ | ||
206 | LIBS = @LIBS@ | ||
207 | LIBTOOL = @LIBTOOL@ | ||
208 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
209 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
210 | LIPO = @LIPO@ | ||
211 | LN_S = @LN_S@ | ||
212 | LTLIBOBJS = @LTLIBOBJS@ | ||
213 | MAKEINFO = @MAKEINFO@ | ||
214 | MKDIR_P = @MKDIR_P@ | ||
215 | MODULE_ARCH = @MODULE_ARCH@ | ||
216 | NM = @NM@ | ||
217 | NMEDIT = @NMEDIT@ | ||
218 | OBJC = @OBJC@ | ||
219 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
220 | OBJCFLAGS = @OBJCFLAGS@ | ||
221 | OBJDUMP = @OBJDUMP@ | ||
222 | OBJEXT = @OBJEXT@ | ||
223 | OTOOL = @OTOOL@ | ||
224 | OTOOL64 = @OTOOL64@ | ||
225 | PACKAGE = @PACKAGE@ | ||
226 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
227 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
228 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
229 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
230 | PACKAGE_URL = @PACKAGE_URL@ | ||
231 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
232 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
233 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
234 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
235 | PKG_CONFIG = @PKG_CONFIG@ | ||
236 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
237 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
238 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
239 | PNG_LIBS = @PNG_LIBS@ | ||
240 | RANLIB = @RANLIB@ | ||
241 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
242 | SDL_LIBS = @SDL_LIBS@ | ||
243 | SED = @SED@ | ||
244 | SET_MAKE = @SET_MAKE@ | ||
245 | SHELL = @SHELL@ | ||
246 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
247 | STRIP = @STRIP@ | ||
248 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
249 | SVG_LIBS = @SVG_LIBS@ | ||
250 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
251 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
252 | VERSION = @VERSION@ | ||
253 | VMAJ = @VMAJ@ | ||
254 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
255 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
256 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
257 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
258 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
259 | XCB_LIBS = @XCB_LIBS@ | ||
260 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
261 | XEXT_LIBS = @XEXT_LIBS@ | ||
262 | XMKMF = @XMKMF@ | ||
263 | X_CFLAGS = @X_CFLAGS@ | ||
264 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
265 | X_LIBS = @X_LIBS@ | ||
266 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
267 | abs_builddir = @abs_builddir@ | ||
268 | abs_srcdir = @abs_srcdir@ | ||
269 | abs_top_builddir = @abs_top_builddir@ | ||
270 | abs_top_srcdir = @abs_top_srcdir@ | ||
271 | ac_ct_CC = @ac_ct_CC@ | ||
272 | ac_ct_CXX = @ac_ct_CXX@ | ||
273 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
274 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
275 | altivec_cflags = @altivec_cflags@ | ||
276 | am__include = @am__include@ | ||
277 | am__leading_dot = @am__leading_dot@ | ||
278 | am__quote = @am__quote@ | ||
279 | am__tar = @am__tar@ | ||
280 | am__untar = @am__untar@ | ||
281 | bindir = @bindir@ | ||
282 | build = @build@ | ||
283 | build_alias = @build_alias@ | ||
284 | build_cpu = @build_cpu@ | ||
285 | build_os = @build_os@ | ||
286 | build_vendor = @build_vendor@ | ||
287 | builddir = @builddir@ | ||
288 | datadir = @datadir@ | ||
289 | datarootdir = @datarootdir@ | ||
290 | dlopen_libs = @dlopen_libs@ | ||
291 | docdir = @docdir@ | ||
292 | dvidir = @dvidir@ | ||
293 | edje_cc = @edje_cc@ | ||
294 | efl_doxygen = @efl_doxygen@ | ||
295 | efl_have_doxygen = @efl_have_doxygen@ | ||
296 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
297 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
298 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
299 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
300 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
301 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
302 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
303 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
304 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
305 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
306 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
307 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
308 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
309 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
310 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
311 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
312 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
313 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
314 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
315 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
316 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
317 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
318 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
319 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
320 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
321 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
322 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
323 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
324 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
325 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
326 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
327 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
328 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
329 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
330 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
331 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
332 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
333 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
334 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
335 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
336 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
337 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
338 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
339 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
340 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
341 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
342 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
343 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
344 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
345 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
346 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
347 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
348 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
349 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
350 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
351 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
352 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
353 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
354 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
355 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
356 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
357 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
358 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
359 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
360 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
361 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
362 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
363 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
364 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
365 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
366 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
367 | exec_prefix = @exec_prefix@ | ||
368 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
369 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
370 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
371 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
372 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
373 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
374 | have_lcov = @have_lcov@ | ||
375 | host = @host@ | ||
376 | host_alias = @host_alias@ | ||
377 | host_cpu = @host_cpu@ | ||
378 | host_os = @host_os@ | ||
379 | host_vendor = @host_vendor@ | ||
380 | htmldir = @htmldir@ | ||
381 | includedir = @includedir@ | ||
382 | infodir = @infodir@ | ||
383 | install_sh = @install_sh@ | ||
384 | libdir = @libdir@ | ||
385 | libexecdir = @libexecdir@ | ||
386 | localedir = @localedir@ | ||
387 | localstatedir = @localstatedir@ | ||
388 | lt_ECHO = @lt_ECHO@ | ||
389 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
390 | mandir = @mandir@ | ||
391 | mkdir_p = @mkdir_p@ | ||
392 | oldincludedir = @oldincludedir@ | ||
393 | pdfdir = @pdfdir@ | ||
394 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
395 | prefix = @prefix@ | ||
396 | program_transform_name = @program_transform_name@ | ||
397 | psdir = @psdir@ | ||
398 | pthread_cflags = @pthread_cflags@ | ||
399 | pthread_libs = @pthread_libs@ | ||
400 | release_info = @release_info@ | ||
401 | requirement_evas = @requirement_evas@ | ||
402 | sbindir = @sbindir@ | ||
403 | sharedstatedir = @sharedstatedir@ | ||
404 | srcdir = @srcdir@ | ||
405 | sysconfdir = @sysconfdir@ | ||
406 | target_alias = @target_alias@ | ||
407 | top_build_prefix = @top_build_prefix@ | ||
408 | top_builddir = @top_builddir@ | ||
409 | top_srcdir = @top_srcdir@ | ||
410 | version_info = @version_info@ | ||
411 | MAINTAINERCLEANFILES = Makefile.in | ||
412 | AM_CPPFLAGS = \ | ||
413 | -I. \ | ||
414 | -I$(top_srcdir)/src/lib \ | ||
415 | -I$(top_srcdir)/src/lib/include \ | ||
416 | @FREETYPE_CFLAGS@ \ | ||
417 | @PIXMAN_CFLAGS@ \ | ||
418 | @EINA_CFLAGS@ \ | ||
419 | @EVIL_CFLAGS@ | ||
420 | |||
421 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@pkgdir = $(libdir)/evas/modules/loaders/wbmp/$(MODULE_ARCH) | ||
422 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@pkg_LTLIBRARIES = module.la | ||
423 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@module_la_SOURCES = evas_image_load_wbmp.c | ||
424 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
425 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
426 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
427 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_TRUE@noinst_LTLIBRARIES = libevas_loader_wbmp.la | ||
428 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_TRUE@libevas_loader_wbmp_la_SOURCES = evas_image_load_wbmp.c | ||
429 | @BUILD_LOADER_WBMP_TRUE@@EVAS_STATIC_BUILD_WBMP_TRUE@libevas_loader_wbmp_la_LIBADD = | ||
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/wbmp/Makefile'; \ | ||
444 | $(am__cd) $(top_srcdir) && \ | ||
445 | $(AUTOMAKE) --gnu src/modules/loaders/wbmp/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_wbmp.la: $(libevas_loader_wbmp_la_OBJECTS) $(libevas_loader_wbmp_la_DEPENDENCIES) | ||
505 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_wbmp_la_rpath) $(libevas_loader_wbmp_la_OBJECTS) $(libevas_loader_wbmp_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_wbmp.Plo@am__quote@ | ||
516 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_wbmp.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_wbmp.lo: evas_image_load_wbmp.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_wbmp.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_wbmp.Tpo -c -o module_la-evas_image_load_wbmp.lo `test -f 'evas_image_load_wbmp.c' || echo '$(srcdir)/'`evas_image_load_wbmp.c | ||
544 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_wbmp.Tpo $(DEPDIR)/module_la-evas_image_load_wbmp.Plo | ||
545 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
546 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_wbmp.c' object='module_la-evas_image_load_wbmp.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_wbmp.lo `test -f 'evas_image_load_wbmp.c' || echo '$(srcdir)/'`evas_image_load_wbmp.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/wbmp/evas_image_load_wbmp.c b/libraries/evas/src/modules/loaders/wbmp/evas_image_load_wbmp.c deleted file mode 100644 index 54e28d5..0000000 --- a/libraries/evas/src/modules/loaders/wbmp/evas_image_load_wbmp.c +++ /dev/null | |||
@@ -1,209 +0,0 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
5 | #include <stdio.h> | ||
6 | |||
7 | #ifdef HAVE_EVIL | ||
8 | # include <Evil.h> | ||
9 | #endif | ||
10 | |||
11 | #include "evas_common.h" | ||
12 | #include "evas_private.h" | ||
13 | |||
14 | static Eina_Bool evas_image_load_file_head_wbmp(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
15 | static Eina_Bool evas_image_load_file_data_wbmp(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
16 | |||
17 | static Evas_Image_Load_Func evas_image_load_wbmp_func = | ||
18 | { | ||
19 | EINA_TRUE, | ||
20 | evas_image_load_file_head_wbmp, | ||
21 | evas_image_load_file_data_wbmp, | ||
22 | NULL, | ||
23 | EINA_FALSE | ||
24 | }; | ||
25 | |||
26 | |||
27 | static int | ||
28 | read_mb(unsigned int *data, void *map, size_t length, size_t *position) | ||
29 | { | ||
30 | int ac = 0, ct; | ||
31 | unsigned char buf; | ||
32 | |||
33 | for (ct = 0;;) | ||
34 | { | ||
35 | if ((ct++) == 5) return -1; | ||
36 | if (*position > length) return -1; | ||
37 | buf = ((unsigned char *) map)[(*position)++]; | ||
38 | ac = (ac << 7) | (buf & 0x7f); | ||
39 | if ((buf & 0x80) == 0) break; | ||
40 | } | ||
41 | *data = ac; | ||
42 | return 0; | ||
43 | } | ||
44 | |||
45 | static Eina_Bool | ||
46 | evas_image_load_file_head_wbmp(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error) | ||
47 | { | ||
48 | Eina_File *f; | ||
49 | void *map = NULL; | ||
50 | size_t position = 0; | ||
51 | size_t length; | ||
52 | unsigned int type, w, h; | ||
53 | |||
54 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
55 | f = eina_file_open(file, 0); | ||
56 | if (!f) | ||
57 | { | ||
58 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
59 | return EINA_FALSE; | ||
60 | } | ||
61 | |||
62 | length = eina_file_size_get(f); | ||
63 | if (length <= 4) goto bail; | ||
64 | |||
65 | map = eina_file_map_all(f, EINA_FILE_SEQUENTIAL); | ||
66 | if (!map) goto bail; | ||
67 | |||
68 | if (read_mb(&type, map, length, &position) < 0) goto bail; | ||
69 | |||
70 | if (type != 0) | ||
71 | { | ||
72 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
73 | goto bail; | ||
74 | } | ||
75 | |||
76 | position++; /* skipping one byte */ | ||
77 | if (read_mb(&w, map, length, &position) < 0) goto bail; | ||
78 | if (read_mb(&h, map, length, &position) < 0) goto bail; | ||
79 | if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) || | ||
80 | IMG_TOO_BIG(w, h)) | ||
81 | { | ||
82 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
83 | goto bail; | ||
84 | } | ||
85 | |||
86 | eina_file_map_free(f, map); | ||
87 | eina_file_close(f); | ||
88 | ie->w = w; | ||
89 | ie->h = h; | ||
90 | |||
91 | *error = EVAS_LOAD_ERROR_NONE; | ||
92 | return EINA_TRUE; | ||
93 | bail: | ||
94 | if (map) eina_file_map_free(f, map); | ||
95 | eina_file_close(f); | ||
96 | return EINA_FALSE; | ||
97 | } | ||
98 | |||
99 | static Eina_Bool | ||
100 | evas_image_load_file_data_wbmp(Image_Entry *ie, const char *file, const char *key __UNUSED__, int *error) | ||
101 | { | ||
102 | Eina_File *f; | ||
103 | void *map = NULL; | ||
104 | size_t position = 0; | ||
105 | size_t length; | ||
106 | unsigned int type, w, h; | ||
107 | unsigned int line_length; | ||
108 | unsigned char *line = NULL; | ||
109 | int cur = 0, x, y; | ||
110 | DATA32 *dst_data; | ||
111 | |||
112 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
113 | f = eina_file_open(file, EINA_FALSE); | ||
114 | if (!f) | ||
115 | { | ||
116 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
117 | return EINA_FALSE; | ||
118 | } | ||
119 | |||
120 | length = eina_file_size_get(f); | ||
121 | if (length <= 4) goto bail; | ||
122 | |||
123 | map = eina_file_map_all(f, EINA_FILE_SEQUENTIAL); | ||
124 | if (!map) goto bail; | ||
125 | |||
126 | if (read_mb(&type, map, length, &position) < 0) goto bail; | ||
127 | position++; /* skipping one byte */ | ||
128 | if (read_mb(&w, map, length, &position) < 0) goto bail; | ||
129 | if (read_mb(&h, map, length, &position) < 0) goto bail; | ||
130 | |||
131 | if (type != 0) | ||
132 | { | ||
133 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
134 | goto bail; | ||
135 | } | ||
136 | |||
137 | if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) || | ||
138 | IMG_TOO_BIG(w, h)) | ||
139 | { | ||
140 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
141 | goto bail; | ||
142 | } | ||
143 | |||
144 | ie->w = w; | ||
145 | ie->h = h; | ||
146 | |||
147 | evas_cache_image_surface_alloc(ie, ie->w, ie->h); | ||
148 | dst_data = evas_cache_image_pixels(ie); | ||
149 | if (!dst_data) | ||
150 | { | ||
151 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
152 | goto bail; | ||
153 | } | ||
154 | |||
155 | line_length = (ie->w + 7) >> 3; | ||
156 | |||
157 | for (y = 0; y < (int)ie->h; y++) | ||
158 | { | ||
159 | if (position + line_length > length) goto bail; | ||
160 | line = ((unsigned char*) map) + position; | ||
161 | position += line_length; | ||
162 | for (x = 0; x < (int)ie->w; x++) | ||
163 | { | ||
164 | int idx = x >> 3; | ||
165 | int offset = 1 << (0x07 - (x & 0x07)); | ||
166 | if (line[idx] & offset) dst_data[cur] = 0xffffffff; | ||
167 | else dst_data[cur] = 0xff000000; | ||
168 | cur++; | ||
169 | } | ||
170 | } | ||
171 | eina_file_map_free(f, map); | ||
172 | eina_file_close(f); | ||
173 | *error = EVAS_LOAD_ERROR_NONE; | ||
174 | return EINA_TRUE; | ||
175 | bail: | ||
176 | if (map) eina_file_map_free(f, map); | ||
177 | eina_file_close(f); | ||
178 | return EINA_FALSE; | ||
179 | } | ||
180 | |||
181 | static int | ||
182 | module_open(Evas_Module *em) | ||
183 | { | ||
184 | if (!em) return 0; | ||
185 | em->functions = (void *)(&evas_image_load_wbmp_func); | ||
186 | return 1; | ||
187 | } | ||
188 | |||
189 | static void | ||
190 | module_close(Evas_Module *em __UNUSED__) | ||
191 | { | ||
192 | } | ||
193 | |||
194 | static Evas_Module_Api evas_modapi = | ||
195 | { | ||
196 | EVAS_MODULE_API_VERSION, | ||
197 | "wbmp", | ||
198 | "none", | ||
199 | { | ||
200 | module_open, | ||
201 | module_close | ||
202 | } | ||
203 | }; | ||
204 | |||
205 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, wbmp); | ||
206 | |||
207 | #ifndef EVAS_STATIC_BUILD_WBMP | ||
208 | EVAS_EINA_MODULE_DEFINE(image_loader, wbmp); | ||
209 | #endif | ||
diff --git a/libraries/evas/src/modules/loaders/xpm/Makefile.am b/libraries/evas/src/modules/loaders/xpm/Makefile.am deleted file mode 100644 index 83c9970..0000000 --- a/libraries/evas/src/modules/loaders/xpm/Makefile.am +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
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 | @EINA_CFLAGS@ \ | ||
11 | @evas_image_loader_xpm_cflags@ \ | ||
12 | @EVIL_CFLAGS@ | ||
13 | |||
14 | if BUILD_LOADER_XPM | ||
15 | if !EVAS_STATIC_BUILD_XPM | ||
16 | pkgdir = $(libdir)/evas/modules/loaders/xpm/$(MODULE_ARCH) | ||
17 | |||
18 | pkg_LTLIBRARIES = module.la | ||
19 | |||
20 | module_la_SOURCES = evas_image_load_xpm.c | ||
21 | |||
22 | module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ @evas_image_loader_xpm_libs@ $(top_builddir)/src/lib/libevas.la | ||
23 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
24 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
25 | |||
26 | else | ||
27 | |||
28 | noinst_LTLIBRARIES = libevas_loader_xpm.la | ||
29 | |||
30 | libevas_loader_xpm_la_SOURCES = evas_image_load_xpm.c | ||
31 | libevas_loader_xpm_la_LIBADD = @evas_image_loader_xpm_libs@ | ||
32 | |||
33 | endif | ||
34 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/xpm/Makefile.in b/libraries/evas/src/modules/loaders/xpm/Makefile.in deleted file mode 100644 index cfce4ad..0000000 --- a/libraries/evas/src/modules/loaders/xpm/Makefile.in +++ /dev/null | |||
@@ -1,762 +0,0 @@ | |||
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/xpm | ||
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_xpm_la_DEPENDENCIES = | ||
83 | am__libevas_loader_xpm_la_SOURCES_DIST = evas_image_load_xpm.c | ||
84 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_TRUE@am_libevas_loader_xpm_la_OBJECTS = evas_image_load_xpm.lo | ||
85 | libevas_loader_xpm_la_OBJECTS = $(am_libevas_loader_xpm_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_TRUE@am_libevas_loader_xpm_la_rpath = | ||
90 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
91 | am__module_la_SOURCES_DIST = evas_image_load_xpm.c | ||
92 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_xpm.lo | ||
93 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
94 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
95 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
96 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@am_module_la_rpath = \ | ||
98 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@ -rpath \ | ||
99 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@ $(pkgdir) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_xpm_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_xpm_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | EXOTIC_CFLAGS = @EXOTIC_CFLAGS@ | ||
185 | EXOTIC_LIBS = @EXOTIC_LIBS@ | ||
186 | FGREP = @FGREP@ | ||
187 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
188 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
189 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
190 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
191 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
192 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
193 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
194 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
195 | GREP = @GREP@ | ||
196 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
197 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
198 | INSTALL = @INSTALL@ | ||
199 | INSTALL_DATA = @INSTALL_DATA@ | ||
200 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
201 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
202 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
203 | LD = @LD@ | ||
204 | LDFLAGS = @LDFLAGS@ | ||
205 | LIBOBJS = @LIBOBJS@ | ||
206 | LIBS = @LIBS@ | ||
207 | LIBTOOL = @LIBTOOL@ | ||
208 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
209 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
210 | LIPO = @LIPO@ | ||
211 | LN_S = @LN_S@ | ||
212 | LTLIBOBJS = @LTLIBOBJS@ | ||
213 | MAKEINFO = @MAKEINFO@ | ||
214 | MKDIR_P = @MKDIR_P@ | ||
215 | MODULE_ARCH = @MODULE_ARCH@ | ||
216 | NM = @NM@ | ||
217 | NMEDIT = @NMEDIT@ | ||
218 | OBJC = @OBJC@ | ||
219 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
220 | OBJCFLAGS = @OBJCFLAGS@ | ||
221 | OBJDUMP = @OBJDUMP@ | ||
222 | OBJEXT = @OBJEXT@ | ||
223 | OTOOL = @OTOOL@ | ||
224 | OTOOL64 = @OTOOL64@ | ||
225 | PACKAGE = @PACKAGE@ | ||
226 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
227 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
228 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
229 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
230 | PACKAGE_URL = @PACKAGE_URL@ | ||
231 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
232 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
233 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
234 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
235 | PKG_CONFIG = @PKG_CONFIG@ | ||
236 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
237 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
238 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
239 | PNG_LIBS = @PNG_LIBS@ | ||
240 | RANLIB = @RANLIB@ | ||
241 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
242 | SDL_LIBS = @SDL_LIBS@ | ||
243 | SED = @SED@ | ||
244 | SET_MAKE = @SET_MAKE@ | ||
245 | SHELL = @SHELL@ | ||
246 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
247 | STRIP = @STRIP@ | ||
248 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
249 | SVG_LIBS = @SVG_LIBS@ | ||
250 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
251 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
252 | VERSION = @VERSION@ | ||
253 | VMAJ = @VMAJ@ | ||
254 | WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@ | ||
255 | WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@ | ||
256 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
257 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
258 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
259 | XCB_LIBS = @XCB_LIBS@ | ||
260 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
261 | XEXT_LIBS = @XEXT_LIBS@ | ||
262 | XMKMF = @XMKMF@ | ||
263 | X_CFLAGS = @X_CFLAGS@ | ||
264 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
265 | X_LIBS = @X_LIBS@ | ||
266 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
267 | abs_builddir = @abs_builddir@ | ||
268 | abs_srcdir = @abs_srcdir@ | ||
269 | abs_top_builddir = @abs_top_builddir@ | ||
270 | abs_top_srcdir = @abs_top_srcdir@ | ||
271 | ac_ct_CC = @ac_ct_CC@ | ||
272 | ac_ct_CXX = @ac_ct_CXX@ | ||
273 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
274 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
275 | altivec_cflags = @altivec_cflags@ | ||
276 | am__include = @am__include@ | ||
277 | am__leading_dot = @am__leading_dot@ | ||
278 | am__quote = @am__quote@ | ||
279 | am__tar = @am__tar@ | ||
280 | am__untar = @am__untar@ | ||
281 | bindir = @bindir@ | ||
282 | build = @build@ | ||
283 | build_alias = @build_alias@ | ||
284 | build_cpu = @build_cpu@ | ||
285 | build_os = @build_os@ | ||
286 | build_vendor = @build_vendor@ | ||
287 | builddir = @builddir@ | ||
288 | datadir = @datadir@ | ||
289 | datarootdir = @datarootdir@ | ||
290 | dlopen_libs = @dlopen_libs@ | ||
291 | docdir = @docdir@ | ||
292 | dvidir = @dvidir@ | ||
293 | edje_cc = @edje_cc@ | ||
294 | efl_doxygen = @efl_doxygen@ | ||
295 | efl_have_doxygen = @efl_have_doxygen@ | ||
296 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
297 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
298 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
299 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
300 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
301 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
302 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
303 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
304 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
305 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
306 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
307 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
308 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
309 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
310 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
311 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
312 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
313 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
314 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
315 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
316 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
317 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
318 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
319 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
320 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
321 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
322 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
323 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
324 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
325 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
326 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
327 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
328 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
329 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
330 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
331 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
332 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
333 | evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@ | ||
334 | evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@ | ||
335 | evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@ | ||
336 | evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@ | ||
337 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
338 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
339 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
340 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
341 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
342 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
343 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
344 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
345 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
346 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
347 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
348 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
349 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
350 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
351 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
352 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
353 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
354 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
355 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
356 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
357 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
358 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
359 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
360 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
361 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
362 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
363 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
364 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
365 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
366 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
367 | exec_prefix = @exec_prefix@ | ||
368 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
369 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
370 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
371 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
372 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
373 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
374 | have_lcov = @have_lcov@ | ||
375 | host = @host@ | ||
376 | host_alias = @host_alias@ | ||
377 | host_cpu = @host_cpu@ | ||
378 | host_os = @host_os@ | ||
379 | host_vendor = @host_vendor@ | ||
380 | htmldir = @htmldir@ | ||
381 | includedir = @includedir@ | ||
382 | infodir = @infodir@ | ||
383 | install_sh = @install_sh@ | ||
384 | libdir = @libdir@ | ||
385 | libexecdir = @libexecdir@ | ||
386 | localedir = @localedir@ | ||
387 | localstatedir = @localstatedir@ | ||
388 | lt_ECHO = @lt_ECHO@ | ||
389 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
390 | mandir = @mandir@ | ||
391 | mkdir_p = @mkdir_p@ | ||
392 | oldincludedir = @oldincludedir@ | ||
393 | pdfdir = @pdfdir@ | ||
394 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
395 | prefix = @prefix@ | ||
396 | program_transform_name = @program_transform_name@ | ||
397 | psdir = @psdir@ | ||
398 | pthread_cflags = @pthread_cflags@ | ||
399 | pthread_libs = @pthread_libs@ | ||
400 | release_info = @release_info@ | ||
401 | requirement_evas = @requirement_evas@ | ||
402 | sbindir = @sbindir@ | ||
403 | sharedstatedir = @sharedstatedir@ | ||
404 | srcdir = @srcdir@ | ||
405 | sysconfdir = @sysconfdir@ | ||
406 | target_alias = @target_alias@ | ||
407 | top_build_prefix = @top_build_prefix@ | ||
408 | top_builddir = @top_builddir@ | ||
409 | top_srcdir = @top_srcdir@ | ||
410 | version_info = @version_info@ | ||
411 | MAINTAINERCLEANFILES = Makefile.in | ||
412 | AM_CPPFLAGS = \ | ||
413 | -I. \ | ||
414 | -I$(top_srcdir)/src/lib \ | ||
415 | -I$(top_srcdir)/src/lib/include \ | ||
416 | @FREETYPE_CFLAGS@ \ | ||
417 | @PIXMAN_CFLAGS@ \ | ||
418 | @EINA_CFLAGS@ \ | ||
419 | @evas_image_loader_xpm_cflags@ \ | ||
420 | @EVIL_CFLAGS@ | ||
421 | |||
422 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@pkgdir = $(libdir)/evas/modules/loaders/xpm/$(MODULE_ARCH) | ||
423 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@pkg_LTLIBRARIES = module.la | ||
424 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@module_la_SOURCES = evas_image_load_xpm.c | ||
425 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ @evas_image_loader_xpm_libs@ $(top_builddir)/src/lib/libevas.la | ||
426 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
427 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
428 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_TRUE@noinst_LTLIBRARIES = libevas_loader_xpm.la | ||
429 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_TRUE@libevas_loader_xpm_la_SOURCES = evas_image_load_xpm.c | ||
430 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_TRUE@libevas_loader_xpm_la_LIBADD = @evas_image_loader_xpm_libs@ | ||
431 | all: all-am | ||
432 | |||
433 | .SUFFIXES: | ||
434 | .SUFFIXES: .c .lo .o .obj | ||
435 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
436 | @for dep in $?; do \ | ||
437 | case '$(am__configure_deps)' in \ | ||
438 | *$$dep*) \ | ||
439 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
440 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
441 | exit 1;; \ | ||
442 | esac; \ | ||
443 | done; \ | ||
444 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/xpm/Makefile'; \ | ||
445 | $(am__cd) $(top_srcdir) && \ | ||
446 | $(AUTOMAKE) --gnu src/modules/loaders/xpm/Makefile | ||
447 | .PRECIOUS: Makefile | ||
448 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
449 | @case '$?' in \ | ||
450 | *config.status*) \ | ||
451 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
452 | *) \ | ||
453 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
454 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
455 | esac; | ||
456 | |||
457 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
458 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
459 | |||
460 | $(top_srcdir)/configure: $(am__configure_deps) | ||
461 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
462 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
463 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
464 | $(am__aclocal_m4_deps): | ||
465 | |||
466 | clean-noinstLTLIBRARIES: | ||
467 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) | ||
468 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | ||
469 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
470 | test "$$dir" != "$$p" || dir=.; \ | ||
471 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
472 | rm -f "$${dir}/so_locations"; \ | ||
473 | done | ||
474 | install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) | ||
475 | @$(NORMAL_INSTALL) | ||
476 | test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)" | ||
477 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
478 | list2=; for p in $$list; do \ | ||
479 | if test -f $$p; then \ | ||
480 | list2="$$list2 $$p"; \ | ||
481 | else :; fi; \ | ||
482 | done; \ | ||
483 | test -z "$$list2" || { \ | ||
484 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ | ||
485 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ | ||
486 | } | ||
487 | |||
488 | uninstall-pkgLTLIBRARIES: | ||
489 | @$(NORMAL_UNINSTALL) | ||
490 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
491 | for p in $$list; do \ | ||
492 | $(am__strip_dir) \ | ||
493 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ | ||
494 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ | ||
495 | done | ||
496 | |||
497 | clean-pkgLTLIBRARIES: | ||
498 | -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) | ||
499 | @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \ | ||
500 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
501 | test "$$dir" != "$$p" || dir=.; \ | ||
502 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
503 | rm -f "$${dir}/so_locations"; \ | ||
504 | done | ||
505 | libevas_loader_xpm.la: $(libevas_loader_xpm_la_OBJECTS) $(libevas_loader_xpm_la_DEPENDENCIES) | ||
506 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_xpm_la_rpath) $(libevas_loader_xpm_la_OBJECTS) $(libevas_loader_xpm_la_LIBADD) $(LIBS) | ||
507 | module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES) | ||
508 | $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS) | ||
509 | |||
510 | mostlyclean-compile: | ||
511 | -rm -f *.$(OBJEXT) | ||
512 | |||
513 | distclean-compile: | ||
514 | -rm -f *.tab.c | ||
515 | |||
516 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_xpm.Plo@am__quote@ | ||
517 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_xpm.Plo@am__quote@ | ||
518 | |||
519 | .c.o: | ||
520 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
521 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
522 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
523 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
524 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
525 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
526 | |||
527 | .c.obj: | ||
528 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
529 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
530 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
531 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
532 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
533 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
534 | |||
535 | .c.lo: | ||
536 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
537 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
538 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
539 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
540 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
541 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
542 | |||
543 | module_la-evas_image_load_xpm.lo: evas_image_load_xpm.c | ||
544 | @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_xpm.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_xpm.Tpo -c -o module_la-evas_image_load_xpm.lo `test -f 'evas_image_load_xpm.c' || echo '$(srcdir)/'`evas_image_load_xpm.c | ||
545 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_xpm.Tpo $(DEPDIR)/module_la-evas_image_load_xpm.Plo | ||
546 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
547 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_xpm.c' object='module_la-evas_image_load_xpm.lo' libtool=yes @AMDEPBACKSLASH@ | ||
548 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
549 | @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_xpm.lo `test -f 'evas_image_load_xpm.c' || echo '$(srcdir)/'`evas_image_load_xpm.c | ||
550 | |||
551 | mostlyclean-libtool: | ||
552 | -rm -f *.lo | ||
553 | |||
554 | clean-libtool: | ||
555 | -rm -rf .libs _libs | ||
556 | |||
557 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
558 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
559 | unique=`for i in $$list; do \ | ||
560 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
561 | done | \ | ||
562 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
563 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
564 | mkid -fID $$unique | ||
565 | tags: TAGS | ||
566 | |||
567 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
568 | $(TAGS_FILES) $(LISP) | ||
569 | set x; \ | ||
570 | here=`pwd`; \ | ||
571 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
572 | unique=`for i in $$list; do \ | ||
573 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
574 | done | \ | ||
575 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
576 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
577 | shift; \ | ||
578 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
579 | test -n "$$unique" || unique=$$empty_fix; \ | ||
580 | if test $$# -gt 0; then \ | ||
581 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
582 | "$$@" $$unique; \ | ||
583 | else \ | ||
584 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
585 | $$unique; \ | ||
586 | fi; \ | ||
587 | fi | ||
588 | ctags: CTAGS | ||
589 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
590 | $(TAGS_FILES) $(LISP) | ||
591 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
592 | unique=`for i in $$list; do \ | ||
593 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
594 | done | \ | ||
595 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
596 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
597 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
598 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
599 | $$unique | ||
600 | |||
601 | GTAGS: | ||
602 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
603 | && $(am__cd) $(top_srcdir) \ | ||
604 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
605 | |||
606 | distclean-tags: | ||
607 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
608 | |||
609 | distdir: $(DISTFILES) | ||
610 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
611 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
612 | list='$(DISTFILES)'; \ | ||
613 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
614 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
615 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
616 | case $$dist_files in \ | ||
617 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
618 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
619 | sort -u` ;; \ | ||
620 | esac; \ | ||
621 | for file in $$dist_files; do \ | ||
622 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
623 | if test -d $$d/$$file; then \ | ||
624 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
625 | if test -d "$(distdir)/$$file"; then \ | ||
626 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
627 | fi; \ | ||
628 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
629 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
630 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
631 | fi; \ | ||
632 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
633 | else \ | ||
634 | test -f "$(distdir)/$$file" \ | ||
635 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
636 | || exit 1; \ | ||
637 | fi; \ | ||
638 | done | ||
639 | check-am: all-am | ||
640 | check: check-am | ||
641 | all-am: Makefile $(LTLIBRARIES) | ||
642 | installdirs: | ||
643 | for dir in "$(DESTDIR)$(pkgdir)"; do \ | ||
644 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
645 | done | ||
646 | install: install-am | ||
647 | install-exec: install-exec-am | ||
648 | install-data: install-data-am | ||
649 | uninstall: uninstall-am | ||
650 | |||
651 | install-am: all-am | ||
652 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
653 | |||
654 | installcheck: installcheck-am | ||
655 | install-strip: | ||
656 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
657 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
658 | `test -z '$(STRIP)' || \ | ||
659 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
660 | mostlyclean-generic: | ||
661 | |||
662 | clean-generic: | ||
663 | |||
664 | distclean-generic: | ||
665 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
666 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
667 | |||
668 | maintainer-clean-generic: | ||
669 | @echo "This command is intended for maintainers to use" | ||
670 | @echo "it deletes files that may require special tools to rebuild." | ||
671 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
672 | clean: clean-am | ||
673 | |||
674 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ | ||
675 | clean-pkgLTLIBRARIES mostlyclean-am | ||
676 | |||
677 | distclean: distclean-am | ||
678 | -rm -rf ./$(DEPDIR) | ||
679 | -rm -f Makefile | ||
680 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
681 | distclean-tags | ||
682 | |||
683 | dvi: dvi-am | ||
684 | |||
685 | dvi-am: | ||
686 | |||
687 | html: html-am | ||
688 | |||
689 | html-am: | ||
690 | |||
691 | info: info-am | ||
692 | |||
693 | info-am: | ||
694 | |||
695 | install-data-am: install-pkgLTLIBRARIES | ||
696 | |||
697 | install-dvi: install-dvi-am | ||
698 | |||
699 | install-dvi-am: | ||
700 | |||
701 | install-exec-am: | ||
702 | |||
703 | install-html: install-html-am | ||
704 | |||
705 | install-html-am: | ||
706 | |||
707 | install-info: install-info-am | ||
708 | |||
709 | install-info-am: | ||
710 | |||
711 | install-man: | ||
712 | |||
713 | install-pdf: install-pdf-am | ||
714 | |||
715 | install-pdf-am: | ||
716 | |||
717 | install-ps: install-ps-am | ||
718 | |||
719 | install-ps-am: | ||
720 | |||
721 | installcheck-am: | ||
722 | |||
723 | maintainer-clean: maintainer-clean-am | ||
724 | -rm -rf ./$(DEPDIR) | ||
725 | -rm -f Makefile | ||
726 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
727 | |||
728 | mostlyclean: mostlyclean-am | ||
729 | |||
730 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
731 | mostlyclean-libtool | ||
732 | |||
733 | pdf: pdf-am | ||
734 | |||
735 | pdf-am: | ||
736 | |||
737 | ps: ps-am | ||
738 | |||
739 | ps-am: | ||
740 | |||
741 | uninstall-am: uninstall-pkgLTLIBRARIES | ||
742 | |||
743 | .MAKE: install-am install-strip | ||
744 | |||
745 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
746 | clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \ | ||
747 | ctags distclean distclean-compile distclean-generic \ | ||
748 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
749 | html-am info info-am install install-am install-data \ | ||
750 | install-data-am install-dvi install-dvi-am install-exec \ | ||
751 | install-exec-am install-html install-html-am install-info \ | ||
752 | install-info-am install-man install-pdf install-pdf-am \ | ||
753 | install-pkgLTLIBRARIES install-ps install-ps-am install-strip \ | ||
754 | installcheck installcheck-am installdirs maintainer-clean \ | ||
755 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
756 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
757 | tags uninstall uninstall-am uninstall-pkgLTLIBRARIES | ||
758 | |||
759 | |||
760 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
761 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
762 | .NOEXPORT: | ||
diff --git a/libraries/evas/src/modules/loaders/xpm/evas_image_load_xpm.c b/libraries/evas/src/modules/loaders/xpm/evas_image_load_xpm.c deleted file mode 100644 index f00f92d..0000000 --- a/libraries/evas/src/modules/loaders/xpm/evas_image_load_xpm.c +++ /dev/null | |||
@@ -1,694 +0,0 @@ | |||
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 | static int _evas_loader_xpm_log_dom = -1; | ||
13 | |||
14 | #ifdef ERR | ||
15 | # undef ERR | ||
16 | #endif | ||
17 | #define ERR(...) EINA_LOG_DOM_ERR(_evas_loader_xpm_log_dom, __VA_ARGS__) | ||
18 | |||
19 | static Eina_Bool evas_image_load_file_head_xpm(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_xpm(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
21 | |||
22 | static Evas_Image_Load_Func evas_image_load_xpm_func = | ||
23 | { | ||
24 | EINA_FALSE, | ||
25 | evas_image_load_file_head_xpm, | ||
26 | evas_image_load_file_data_xpm, | ||
27 | NULL, | ||
28 | EINA_FALSE | ||
29 | }; | ||
30 | |||
31 | static Eina_File *rgb_txt; | ||
32 | static void *rgb_txt_map; | ||
33 | |||
34 | static void | ||
35 | xpm_parse_color(char *color, int *r, int *g, int *b) | ||
36 | { | ||
37 | char *tmp; | ||
38 | char *max; | ||
39 | char *endline; | ||
40 | char buf[4096]; | ||
41 | |||
42 | /* is a #ff00ff like color */ | ||
43 | if (color[0] == '#') | ||
44 | { | ||
45 | int len; | ||
46 | char val[32]; | ||
47 | |||
48 | len = strlen(color) - 1; | ||
49 | if (len < 96) | ||
50 | { | ||
51 | int i; | ||
52 | |||
53 | len /= 3; | ||
54 | for (i = 0; i < len; i++) | ||
55 | val[i] = color[1 + i + (0 * len)]; | ||
56 | val[i] = 0; | ||
57 | sscanf(val, "%x", r); | ||
58 | for (i = 0; i < len; i++) | ||
59 | val[i] = color[1 + i + (1 * len)]; | ||
60 | val[i] = 0; | ||
61 | sscanf(val, "%x", g); | ||
62 | for (i = 0; i < len; i++) | ||
63 | val[i] = color[1 + i + (2 * len)]; | ||
64 | val[i] = 0; | ||
65 | sscanf(val, "%x", b); | ||
66 | if (len == 1) | ||
67 | { | ||
68 | *r = (*r << 4) | *r; | ||
69 | *g = (*g << 4) | *g; | ||
70 | *b = (*b << 4) | *b; | ||
71 | } | ||
72 | else if (len > 2) | ||
73 | { | ||
74 | *r >>= (len - 2) * 4; | ||
75 | *g >>= (len - 2) * 4; | ||
76 | *b >>= (len - 2) * 4; | ||
77 | } | ||
78 | } | ||
79 | return; | ||
80 | } | ||
81 | /* look in rgb txt database */ | ||
82 | if (!rgb_txt) return; | ||
83 | tmp = rgb_txt_map; | ||
84 | max = tmp + eina_file_size_get(rgb_txt); | ||
85 | |||
86 | while (tmp < max) | ||
87 | { | ||
88 | endline = memchr(tmp, '\n', max - tmp); | ||
89 | if (!endline) endline = max; | ||
90 | if ((*tmp != '!') && ((endline - tmp) < (int) (sizeof(buf) - 1))) | ||
91 | { | ||
92 | int rr, gg, bb; | ||
93 | char name[4096]; | ||
94 | |||
95 | /* FIXME: not really efficient */ | ||
96 | memcpy(buf, tmp, endline - tmp); | ||
97 | buf[endline - tmp + 1] = '\0'; | ||
98 | |||
99 | if (sscanf(buf, "%i %i %i %[^\n]", &rr, &gg, &bb, name) == 4) | ||
100 | { | ||
101 | if (!strcasecmp(name, color)) | ||
102 | { | ||
103 | *r = rr; | ||
104 | *g = gg; | ||
105 | *b = bb; | ||
106 | return; | ||
107 | } | ||
108 | } | ||
109 | } | ||
110 | tmp = endline + 1; | ||
111 | } | ||
112 | } | ||
113 | |||
114 | /** FIXME: clean this up and make more efficient **/ | ||
115 | static Eina_Bool | ||
116 | evas_image_load_file_xpm(Image_Entry *ie, const char *file, const char *key __UNUSED__, int load_data, int *error) | ||
117 | { | ||
118 | DATA32 *ptr, *end; | ||
119 | Eina_File *f; | ||
120 | const char *map; | ||
121 | size_t length; | ||
122 | size_t position; | ||
123 | |||
124 | int pc, c, i, j, k, w, h, ncolors, cpp, comment, transp, | ||
125 | quote, context, len, done, r, g, b, backslash, lu1, lu2; | ||
126 | char *line = NULL; | ||
127 | char s[256], tok[128], col[256], *tl; | ||
128 | int lsz = 256; | ||
129 | struct _cmap { | ||
130 | char str[6]; | ||
131 | unsigned char transp; | ||
132 | short r, g, b; | ||
133 | } *cmap = NULL; | ||
134 | |||
135 | short lookup[128 - 32][128 - 32]; | ||
136 | int count, pixels; | ||
137 | |||
138 | done = 0; | ||
139 | // transp = -1; | ||
140 | transp = 1; | ||
141 | |||
142 | /* if immediate_load is 1, then dont delay image laoding as below, or */ | ||
143 | /* already data in this image - dont load it again */ | ||
144 | |||
145 | f = eina_file_open(file, 0); | ||
146 | if (!f) | ||
147 | { | ||
148 | ERR("XPM ERROR: file failed to open"); | ||
149 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
150 | return EINA_FALSE; | ||
151 | } | ||
152 | length = eina_file_size_get(f); | ||
153 | position = 0; | ||
154 | if (length < 9) | ||
155 | { | ||
156 | ERR("XPM ERROR: file size, %zd, is to small", length); | ||
157 | eina_file_close(f); | ||
158 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
159 | return EINA_FALSE; | ||
160 | } | ||
161 | |||
162 | map = eina_file_map_all(f, EINA_FILE_SEQUENTIAL); | ||
163 | if (!map) | ||
164 | { | ||
165 | ERR("XPM ERROR: file failed to mmap"); | ||
166 | eina_file_close(f); | ||
167 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
168 | return EINA_FALSE; | ||
169 | } | ||
170 | |||
171 | if (strncmp("/* XPM */", map, 9)) | ||
172 | { | ||
173 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
174 | goto on_error; | ||
175 | } | ||
176 | |||
177 | i = 0; | ||
178 | j = 0; | ||
179 | cmap = NULL; | ||
180 | w = 10; | ||
181 | h = 10; | ||
182 | ptr = NULL; | ||
183 | end = NULL; | ||
184 | c = ' '; | ||
185 | comment = 0; | ||
186 | quote = 0; | ||
187 | context = 0; | ||
188 | pixels = 0; | ||
189 | count = 0; | ||
190 | line = malloc(lsz); | ||
191 | if (!line) | ||
192 | { | ||
193 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
194 | goto on_error; | ||
195 | } | ||
196 | |||
197 | backslash = 0; | ||
198 | memset(lookup, 0, sizeof(lookup)); | ||
199 | while (!done) | ||
200 | { | ||
201 | pc = c; | ||
202 | if (position == length) break ; | ||
203 | c = (char) map[position++]; | ||
204 | if (!quote) | ||
205 | { | ||
206 | if ((pc == '/') && (c == '*')) | ||
207 | comment = 1; | ||
208 | else if ((pc == '*') && (c == '/') && (comment)) | ||
209 | comment = 0; | ||
210 | } | ||
211 | if (!comment) | ||
212 | { | ||
213 | if ((!quote) && (c == '"')) | ||
214 | { | ||
215 | quote = 1; | ||
216 | i = 0; | ||
217 | } | ||
218 | else if ((quote) && (c == '"')) | ||
219 | { | ||
220 | line[i] = 0; | ||
221 | quote = 0; | ||
222 | if (context == 0) | ||
223 | { | ||
224 | /* Header */ | ||
225 | if (sscanf(line, "%i %i %i %i", &w, &h, &ncolors, &cpp) != 4) | ||
226 | { | ||
227 | ERR("XPM ERROR: XPM file malformed header"); | ||
228 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
229 | goto on_error; | ||
230 | } | ||
231 | if ((ncolors > 32766) || (ncolors < 1)) | ||
232 | { | ||
233 | ERR("XPM ERROR: XPM files with colors > 32766 or < 1 not supported"); | ||
234 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
235 | goto on_error; | ||
236 | } | ||
237 | if ((cpp > 5) || (cpp < 1)) | ||
238 | { | ||
239 | ERR("XPM ERROR: XPM files with characters per pixel > 5 or < 1not supported"); | ||
240 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
241 | goto on_error; | ||
242 | } | ||
243 | if ((w > IMG_MAX_SIZE) || (w < 1)) | ||
244 | { | ||
245 | ERR("XPM ERROR: Image width > IMG_MAX_SIZE or < 1 pixels for file"); | ||
246 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
247 | goto on_error; | ||
248 | } | ||
249 | if ((h > IMG_MAX_SIZE) || (h < 1)) | ||
250 | { | ||
251 | ERR("XPM ERROR: Image height > IMG_MAX_SIZE or < 1 pixels for file"); | ||
252 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
253 | goto on_error; | ||
254 | } | ||
255 | if (IMG_TOO_BIG(w, h)) | ||
256 | { | ||
257 | ERR("XPM ERROR: Image just too big to ever allocate"); | ||
258 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
259 | goto on_error; | ||
260 | } | ||
261 | |||
262 | if (!cmap) | ||
263 | { | ||
264 | cmap = malloc(sizeof(struct _cmap) * ncolors); | ||
265 | if (!cmap) | ||
266 | { | ||
267 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
268 | goto on_error; | ||
269 | } | ||
270 | } | ||
271 | ie->w = w; | ||
272 | ie->h = h; | ||
273 | |||
274 | j = 0; | ||
275 | context++; | ||
276 | } | ||
277 | else if (context == 1) | ||
278 | { | ||
279 | /* Color Table */ | ||
280 | if (j < ncolors) | ||
281 | { | ||
282 | int slen; | ||
283 | int hascolor, iscolor; | ||
284 | |||
285 | iscolor = 0; | ||
286 | hascolor = 0; | ||
287 | tok[0] = 0; | ||
288 | col[0] = 0; | ||
289 | s[0] = 0; | ||
290 | len = strlen(line); | ||
291 | strncpy(cmap[j].str, line, cpp); | ||
292 | cmap[j].str[cpp] = 0; | ||
293 | for (slen = 0; slen < cpp; slen++) | ||
294 | { | ||
295 | /* fix the ascii of the color string - if its < 32 - just limit to 32 */ | ||
296 | if (cmap[j].str[slen] < 32) cmap[j].str[slen] = 0; | ||
297 | } | ||
298 | cmap[j].r = -1; | ||
299 | cmap[j].transp = 0; | ||
300 | for (k = cpp; k < len; k++) | ||
301 | { | ||
302 | if (line[k] != ' ') | ||
303 | { | ||
304 | s[0] = 0; | ||
305 | sscanf(&line[k], "%255s", s); | ||
306 | slen = strlen(s); | ||
307 | k += slen; | ||
308 | if (!strcmp(s, "c")) iscolor = 1; | ||
309 | if ((!strcmp(s, "m")) || (!strcmp(s, "s")) | ||
310 | || (!strcmp(s, "g4")) || (!strcmp(s, "g")) | ||
311 | || (!strcmp(s, "c")) || (k >= len)) | ||
312 | { | ||
313 | if (k >= len) | ||
314 | { | ||
315 | if (col[0]) | ||
316 | { | ||
317 | if (strlen(col) < (sizeof(col) - 2)) | ||
318 | strcat(col, " "); | ||
319 | else | ||
320 | done = 1; | ||
321 | } | ||
322 | if ((strlen(col) + strlen(s)) < (sizeof(col) - 1)) | ||
323 | strcat(col, s); | ||
324 | } | ||
325 | if (col[0]) | ||
326 | { | ||
327 | if (!strcasecmp(col, "none")) | ||
328 | { | ||
329 | transp = 1; | ||
330 | cmap[j].transp = 1; | ||
331 | cmap[j].r = 0; | ||
332 | cmap[j].g = 0; | ||
333 | cmap[j].b = 0; | ||
334 | } | ||
335 | else | ||
336 | { | ||
337 | if ((((cmap[j].r < 0) || (!strcmp(tok, "c"))) && (!hascolor))) | ||
338 | { | ||
339 | r = g = b = 0; | ||
340 | xpm_parse_color(col, &r, &g, &b); | ||
341 | cmap[j].r = r; | ||
342 | cmap[j].g = g; | ||
343 | cmap[j].b = b; | ||
344 | if (iscolor) hascolor = 1; | ||
345 | } | ||
346 | } | ||
347 | } | ||
348 | strcpy(tok, s); | ||
349 | col[0] = 0; | ||
350 | } | ||
351 | else | ||
352 | { | ||
353 | if (col[0]) | ||
354 | { | ||
355 | if (strlen(col) < ( sizeof(col) - 2)) | ||
356 | strcat(col, " "); | ||
357 | else | ||
358 | done = 1; | ||
359 | } | ||
360 | if ((strlen(col) + strlen(s)) < (sizeof(col) - 1)) | ||
361 | strcat(col, s); | ||
362 | } | ||
363 | } | ||
364 | } | ||
365 | } | ||
366 | j++; | ||
367 | if (j >= ncolors) | ||
368 | { | ||
369 | if (cpp == 1) | ||
370 | { | ||
371 | for (i = 0; i < ncolors; i++) | ||
372 | lookup[(int)cmap[i].str[0] - 32][0] = i; | ||
373 | } | ||
374 | if (cpp == 2) | ||
375 | { | ||
376 | for (i = 0; i < ncolors; i++) | ||
377 | lookup[(int)cmap[i].str[0] - 32][(int)cmap[i].str[1] - 32] = i; | ||
378 | } | ||
379 | context++; | ||
380 | } | ||
381 | |||
382 | if (transp) ie->flags.alpha = 1; | ||
383 | |||
384 | if (load_data) | ||
385 | { | ||
386 | evas_cache_image_surface_alloc(ie, w, h); | ||
387 | ptr = evas_cache_image_pixels(ie); | ||
388 | if (!ptr) | ||
389 | { | ||
390 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
391 | goto on_error; | ||
392 | } | ||
393 | pixels = w * h; | ||
394 | end = ptr + pixels; | ||
395 | } | ||
396 | else | ||
397 | { | ||
398 | *error = EVAS_LOAD_ERROR_NONE; | ||
399 | goto on_success; | ||
400 | } | ||
401 | } | ||
402 | else | ||
403 | { | ||
404 | /* Image Data */ | ||
405 | i = 0; | ||
406 | if (cpp == 0) | ||
407 | { | ||
408 | /* Chars per pixel = 0? well u never know */ | ||
409 | } | ||
410 | /* it's xpm - don't care about speed too much. still faster | ||
411 | * that most xpm loaders anyway */ | ||
412 | else if (cpp == 1) | ||
413 | { | ||
414 | if (transp) | ||
415 | { | ||
416 | for (i = 0; | ||
417 | ((i < 65536) && (ptr < end) && (line[i])); | ||
418 | i++) | ||
419 | { | ||
420 | lu1 = (int)line[i] - 32; | ||
421 | if (lu1 < 0) continue; | ||
422 | if (cmap[lookup[lu1][0]].transp) | ||
423 | { | ||
424 | r = (unsigned char)cmap[lookup[lu1][0]].r; | ||
425 | g = (unsigned char)cmap[lookup[lu1][0]].g; | ||
426 | b = (unsigned char)cmap[lookup[lu1][0]].b; | ||
427 | *ptr = RGB_JOIN(r, g, b); | ||
428 | ptr++; | ||
429 | count++; | ||
430 | } | ||
431 | else | ||
432 | { | ||
433 | r = (unsigned char)cmap[lookup[lu1][0]].r; | ||
434 | g = (unsigned char)cmap[lookup[lu1][0]].g; | ||
435 | b = (unsigned char)cmap[lookup[lu1][0]].b; | ||
436 | *ptr = ARGB_JOIN(0xff, r, g, b); | ||
437 | ptr++; | ||
438 | count++; | ||
439 | } | ||
440 | } | ||
441 | } | ||
442 | else | ||
443 | { | ||
444 | for (i = 0; | ||
445 | ((i < 65536) && (ptr < end) && (line[i])); | ||
446 | i++) | ||
447 | { | ||
448 | lu1 = (int)line[i] - 32; | ||
449 | if (lu1 < 0) continue; | ||
450 | r = (unsigned char)cmap[lookup[lu1][0]].r; | ||
451 | g = (unsigned char)cmap[lookup[lu1][0]].g; | ||
452 | b = (unsigned char)cmap[lookup[lu1][0]].b; | ||
453 | *ptr = ARGB_JOIN(0xff, r, g, b); | ||
454 | ptr++; | ||
455 | count++; | ||
456 | } | ||
457 | } | ||
458 | } | ||
459 | else if (cpp == 2) | ||
460 | { | ||
461 | if (transp) | ||
462 | { | ||
463 | for (i = 0; | ||
464 | ((i < 65536) && (ptr < end) && (line[i])); | ||
465 | i++) | ||
466 | { | ||
467 | lu1 = (int)line[i] - 32; | ||
468 | i++; | ||
469 | lu2 = (int)line[i] - 32; | ||
470 | if (lu1 < 0) continue; | ||
471 | if (lu2 < 0) continue; | ||
472 | if (cmap[lookup[lu1][lu2]].transp) | ||
473 | { | ||
474 | r = (unsigned char)cmap[lookup[lu1][lu2]].r; | ||
475 | g = (unsigned char)cmap[lookup[lu1][lu2]].g; | ||
476 | b = (unsigned char)cmap[lookup[lu1][lu2]].b; | ||
477 | *ptr = RGB_JOIN(r, g, b); | ||
478 | ptr++; | ||
479 | count++; | ||
480 | } | ||
481 | else | ||
482 | { | ||
483 | r = (unsigned char)cmap[lookup[lu1][lu2]].r; | ||
484 | g = (unsigned char)cmap[lookup[lu1][lu2]].g; | ||
485 | b = (unsigned char)cmap[lookup[lu1][lu2]].b; | ||
486 | *ptr = ARGB_JOIN(0xff, r, g, b); | ||
487 | ptr++; | ||
488 | count++; | ||
489 | } | ||
490 | } | ||
491 | } | ||
492 | else | ||
493 | { | ||
494 | for (i = 0; | ||
495 | ((i < 65536) && (ptr < end) && (line[i])); | ||
496 | i++) | ||
497 | { | ||
498 | lu1 = (int)line[i] - 32; | ||
499 | i++; | ||
500 | lu2 = (int)line[i] - 32; | ||
501 | if (lu1 < 0) continue; | ||
502 | if (lu2 < 0) continue; | ||
503 | r = (unsigned char)cmap[lookup[lu1][lu2]].r; | ||
504 | g = (unsigned char)cmap[lookup[lu1][lu2]].g; | ||
505 | b = (unsigned char)cmap[lookup[lu1][lu2]].b; | ||
506 | *ptr = ARGB_JOIN(0xff, r, g, b); | ||
507 | ptr++; | ||
508 | count++; | ||
509 | } | ||
510 | } | ||
511 | } | ||
512 | else | ||
513 | { | ||
514 | if (transp) | ||
515 | { | ||
516 | for (i = 0; | ||
517 | ((i < 65536) && (ptr < end) && (line[i])); | ||
518 | i++) | ||
519 | { | ||
520 | for (j = 0; j < cpp; j++, i++) | ||
521 | { | ||
522 | col[j] = line[i]; | ||
523 | if (col[j] < 32) col[j] = 32; | ||
524 | } | ||
525 | col[j] = 0; | ||
526 | i--; | ||
527 | for (j = 0; j < ncolors; j++) | ||
528 | { | ||
529 | if (!strcmp(col, cmap[j].str)) | ||
530 | { | ||
531 | if (cmap[j].transp) | ||
532 | { | ||
533 | r = (unsigned char)cmap[j].r; | ||
534 | g = (unsigned char)cmap[j].g; | ||
535 | b = (unsigned char)cmap[j].b; | ||
536 | *ptr = RGB_JOIN(r, g, b); | ||
537 | ptr++; | ||
538 | count++; | ||
539 | } | ||
540 | else | ||
541 | { | ||
542 | r = (unsigned char)cmap[j].r; | ||
543 | g = (unsigned char)cmap[j].g; | ||
544 | b = (unsigned char)cmap[j].b; | ||
545 | *ptr = ARGB_JOIN(0xff, r, g, b); | ||
546 | ptr++; | ||
547 | count++; | ||
548 | } | ||
549 | break; | ||
550 | } | ||
551 | } | ||
552 | } | ||
553 | } | ||
554 | else | ||
555 | { | ||
556 | for (i = 0; | ||
557 | ((i < 65536) && (ptr < end) && (line[i])); | ||
558 | i++) | ||
559 | { | ||
560 | for (j = 0; j < cpp; j++, i++) | ||
561 | { | ||
562 | col[j] = line[i]; | ||
563 | } | ||
564 | col[j] = 0; | ||
565 | i--; | ||
566 | for (j = 0; j < ncolors; j++) | ||
567 | { | ||
568 | if (!strcmp(col, cmap[j].str)) | ||
569 | { | ||
570 | r = (unsigned char)cmap[j].r; | ||
571 | g = (unsigned char)cmap[j].g; | ||
572 | b = (unsigned char)cmap[j].b; | ||
573 | *ptr = ARGB_JOIN(0xff, r, g, b); | ||
574 | ptr++; | ||
575 | count++; | ||
576 | break; | ||
577 | } | ||
578 | } | ||
579 | } | ||
580 | } | ||
581 | } | ||
582 | } | ||
583 | } | ||
584 | } | ||
585 | /* Scan in line from XPM file */ | ||
586 | if ((!comment) && (quote) && (c != '"')) | ||
587 | { | ||
588 | if (c < 32) c = 32; | ||
589 | else if (c > 127) c = 127; | ||
590 | if (c =='\\') | ||
591 | { | ||
592 | if (++backslash < 2) | ||
593 | line[i++] = c; | ||
594 | else | ||
595 | backslash = 0; | ||
596 | } | ||
597 | else | ||
598 | { | ||
599 | backslash = 0; | ||
600 | line[i++] = c; | ||
601 | } | ||
602 | } | ||
603 | if (i >= lsz) | ||
604 | { | ||
605 | lsz += 256; | ||
606 | tl = realloc(line, lsz); | ||
607 | if (!tl) break; | ||
608 | line = tl; | ||
609 | } | ||
610 | if (((ptr) && ((ptr - evas_cache_image_pixels(ie)) >= (w * h * (int)sizeof(DATA32)))) || | ||
611 | ((context > 1) && (count >= pixels))) | ||
612 | break; | ||
613 | } | ||
614 | |||
615 | on_success: | ||
616 | free(cmap); | ||
617 | free(line); | ||
618 | |||
619 | eina_file_map_free(f, (void*) map); | ||
620 | eina_file_close(f); | ||
621 | |||
622 | *error = EVAS_LOAD_ERROR_NONE; | ||
623 | return EINA_TRUE; | ||
624 | |||
625 | on_error: | ||
626 | free(line); | ||
627 | eina_file_map_free(f, (void*) map); | ||
628 | eina_file_close(f); | ||
629 | return EINA_FALSE; | ||
630 | } | ||
631 | |||
632 | static Eina_Bool | ||
633 | evas_image_load_file_head_xpm(Image_Entry *ie, const char *file, const char *key, int *error) | ||
634 | { | ||
635 | return evas_image_load_file_xpm(ie, file, key, 0, error); | ||
636 | } | ||
637 | |||
638 | static Eina_Bool | ||
639 | evas_image_load_file_data_xpm(Image_Entry *ie, const char *file, const char *key, int *error) | ||
640 | { | ||
641 | return evas_image_load_file_xpm(ie, file, key, 1, error); | ||
642 | } | ||
643 | |||
644 | static int | ||
645 | module_open(Evas_Module *em) | ||
646 | { | ||
647 | if (!em) return 0; | ||
648 | _evas_loader_xpm_log_dom = eina_log_domain_register | ||
649 | ("evas-xpm", EVAS_DEFAULT_LOG_COLOR); | ||
650 | if (_evas_loader_xpm_log_dom < 0) | ||
651 | { | ||
652 | EINA_LOG_ERR("Can not create a module log domain."); | ||
653 | return 0; | ||
654 | } | ||
655 | |||
656 | /* Shouldn't we make that PATH configurable ? */ | ||
657 | rgb_txt = eina_file_open("/usr/lib/X11/rgb.txt", 0); | ||
658 | if (!rgb_txt) rgb_txt = eina_file_open("/usr/X11/lib/X11/rgb.txt", 0); | ||
659 | if (!rgb_txt) rgb_txt = eina_file_open("/usr/X11R6/lib/X11/rgb.txt", 0); | ||
660 | if (!rgb_txt) rgb_txt = eina_file_open("/usr/openwin/lib/X11/rgb.txt", 0); | ||
661 | if (rgb_txt) | ||
662 | rgb_txt_map = eina_file_map_all(rgb_txt, EINA_FILE_SEQUENTIAL); | ||
663 | em->functions = (void *)(&evas_image_load_xpm_func); | ||
664 | return 1; | ||
665 | } | ||
666 | |||
667 | static void | ||
668 | module_close(Evas_Module *em __UNUSED__) | ||
669 | { | ||
670 | if (rgb_txt) | ||
671 | { | ||
672 | eina_file_map_free(rgb_txt, rgb_txt_map); | ||
673 | eina_file_close(rgb_txt); | ||
674 | rgb_txt = NULL; | ||
675 | } | ||
676 | eina_log_domain_unregister(_evas_loader_xpm_log_dom); | ||
677 | } | ||
678 | |||
679 | static Evas_Module_Api evas_modapi = | ||
680 | { | ||
681 | EVAS_MODULE_API_VERSION, | ||
682 | "xpm", | ||
683 | "none", | ||
684 | { | ||
685 | module_open, | ||
686 | module_close | ||
687 | } | ||
688 | }; | ||
689 | |||
690 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, xpm); | ||
691 | |||
692 | #ifndef EVAS_STATIC_BUILD_XPM | ||
693 | EVAS_EINA_MODULE_DEFINE(image_loader, xpm); | ||
694 | #endif | ||