aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/evas/src/modules/loaders/ico
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/evas/src/modules/loaders/ico')
-rw-r--r--libraries/evas/src/modules/loaders/ico/Makefile.am32
-rw-r--r--libraries/evas/src/modules/loaders/ico/Makefile.in761
-rw-r--r--libraries/evas/src/modules/loaders/ico/evas_image_load_ico.c808
3 files changed, 0 insertions, 1601 deletions
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
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_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
13if BUILD_LOADER_ICO
14if !EVAS_STATIC_BUILD_ICO
15
16pkgdir = $(libdir)/evas/modules/loaders/ico/$(MODULE_ARCH)
17pkg_LTLIBRARIES = module.la
18
19module_la_SOURCES = evas_image_load_ico.c
20
21module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la
22module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version
23module_la_LIBTOOLFLAGS = --tag=disable-static
24
25else
26
27noinst_LTLIBRARIES = libevas_loader_ico.la
28libevas_loader_ico_la_SOURCES = evas_image_load_ico.c
29libevas_loader_ico_la_LIBADD =
30
31endif
32endif
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
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = src/modules/loaders/ico
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__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
53am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
54 $(ACLOCAL_M4)
55mkinstalldirs = $(install_sh) -d
56CONFIG_HEADER = $(top_builddir)/config.h
57CONFIG_CLEAN_FILES =
58CONFIG_CLEAN_VPATH_FILES =
59am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
60am__vpath_adj = case $$p in \
61 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
62 *) f=$$p;; \
63 esac;
64am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
65am__install_max = 40
66am__nobase_strip_setup = \
67 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
68am__nobase_strip = \
69 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
70am__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] }'
77am__base_list = \
78 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
79 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
80am__installdirs = "$(DESTDIR)$(pkgdir)"
81LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES)
82libevas_loader_ico_la_DEPENDENCIES =
83am__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
85libevas_loader_ico_la_OBJECTS = $(am_libevas_loader_ico_la_OBJECTS)
86AM_V_lt = $(am__v_lt_$(V))
87am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
88am__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
91am__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
93module_la_OBJECTS = $(am_module_la_OBJECTS)
94module_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)
100DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
101depcomp = $(SHELL) $(top_srcdir)/depcomp
102am__depfiles_maybe = depfiles
103am__mv = mv -f
104COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
105 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
106LTCOMPILE = $(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)
110AM_V_CC = $(am__v_CC_$(V))
111am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
112am__v_CC_0 = @echo " CC " $@;
113AM_V_at = $(am__v_at_$(V))
114am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
115am__v_at_0 = @
116CCLD = $(CC)
117LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
118 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
119 $(AM_LDFLAGS) $(LDFLAGS) -o $@
120AM_V_CCLD = $(am__v_CCLD_$(V))
121am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
122am__v_CCLD_0 = @echo " CCLD " $@;
123AM_V_GEN = $(am__v_GEN_$(V))
124am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
125am__v_GEN_0 = @echo " GEN " $@;
126SOURCES = $(libevas_loader_ico_la_SOURCES) $(module_la_SOURCES)
127DIST_SOURCES = $(am__libevas_loader_ico_la_SOURCES_DIST) \
128 $(am__module_la_SOURCES_DIST)
129ETAGS = etags
130CTAGS = ctags
131DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
132ACLOCAL = @ACLOCAL@
133ALLOCA = @ALLOCA@
134AMTAR = @AMTAR@
135AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
136AR = @AR@
137AS = @AS@
138AUTOCONF = @AUTOCONF@
139AUTOHEADER = @AUTOHEADER@
140AUTOMAKE = @AUTOMAKE@
141AWK = @AWK@
142CC = @CC@
143CCDEPMODE = @CCDEPMODE@
144CFLAGS = @CFLAGS@
145CHECK_CFLAGS = @CHECK_CFLAGS@
146CHECK_LIBS = @CHECK_LIBS@
147CPP = @CPP@
148CPPFLAGS = @CPPFLAGS@
149CXX = @CXX@
150CXXCPP = @CXXCPP@
151CXXDEPMODE = @CXXDEPMODE@
152CXXFLAGS = @CXXFLAGS@
153CYGPATH_W = @CYGPATH_W@
154DEFS = @DEFS@
155DEPDIR = @DEPDIR@
156DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@
157DIRECTFB_LIBS = @DIRECTFB_LIBS@
158DLLTOOL = @DLLTOOL@
159DSYMUTIL = @DSYMUTIL@
160DUMPBIN = @DUMPBIN@
161ECHO_C = @ECHO_C@
162ECHO_N = @ECHO_N@
163ECHO_T = @ECHO_T@
164ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@
165ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@
166EDB_CFLAGS = @EDB_CFLAGS@
167EDB_LIBS = @EDB_LIBS@
168EDJE_CFLAGS = @EDJE_CFLAGS@
169EDJE_LIBS = @EDJE_LIBS@
170EET_CFLAGS = @EET_CFLAGS@
171EET_LIBS = @EET_LIBS@
172EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
173EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
174EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@
175EGREP = @EGREP@
176EINA_CFLAGS = @EINA_CFLAGS@
177EINA_LIBS = @EINA_LIBS@
178EVAS_CFLAGS = @EVAS_CFLAGS@
179EVAS_LIBS = @EVAS_LIBS@
180EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@
181EVIL_CFLAGS = @EVIL_CFLAGS@
182EVIL_LIBS = @EVIL_LIBS@
183EXEEXT = @EXEEXT@
184EXOTIC_CFLAGS = @EXOTIC_CFLAGS@
185EXOTIC_LIBS = @EXOTIC_LIBS@
186FGREP = @FGREP@
187FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@
188FONTCONFIG_LIBS = @FONTCONFIG_LIBS@
189FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
190FREETYPE_LIBS = @FREETYPE_LIBS@
191FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@
192FRIBIDI_LIBS = @FRIBIDI_LIBS@
193GL_EET_CFLAGS = @GL_EET_CFLAGS@
194GL_EET_LIBS = @GL_EET_LIBS@
195GREP = @GREP@
196HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@
197HARFBUZZ_LIBS = @HARFBUZZ_LIBS@
198INSTALL = @INSTALL@
199INSTALL_DATA = @INSTALL_DATA@
200INSTALL_PROGRAM = @INSTALL_PROGRAM@
201INSTALL_SCRIPT = @INSTALL_SCRIPT@
202INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
203LD = @LD@
204LDFLAGS = @LDFLAGS@
205LIBOBJS = @LIBOBJS@
206LIBS = @LIBS@
207LIBTOOL = @LIBTOOL@
208LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@
209LINEBREAK_LIBS = @LINEBREAK_LIBS@
210LIPO = @LIPO@
211LN_S = @LN_S@
212LTLIBOBJS = @LTLIBOBJS@
213MAKEINFO = @MAKEINFO@
214MKDIR_P = @MKDIR_P@
215MODULE_ARCH = @MODULE_ARCH@
216NM = @NM@
217NMEDIT = @NMEDIT@
218OBJC = @OBJC@
219OBJCDEPMODE = @OBJCDEPMODE@
220OBJCFLAGS = @OBJCFLAGS@
221OBJDUMP = @OBJDUMP@
222OBJEXT = @OBJEXT@
223OTOOL = @OTOOL@
224OTOOL64 = @OTOOL64@
225PACKAGE = @PACKAGE@
226PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
227PACKAGE_NAME = @PACKAGE_NAME@
228PACKAGE_STRING = @PACKAGE_STRING@
229PACKAGE_TARNAME = @PACKAGE_TARNAME@
230PACKAGE_URL = @PACKAGE_URL@
231PACKAGE_VERSION = @PACKAGE_VERSION@
232PATH_SEPARATOR = @PATH_SEPARATOR@
233PIXMAN_CFLAGS = @PIXMAN_CFLAGS@
234PIXMAN_LIBS = @PIXMAN_LIBS@
235PKG_CONFIG = @PKG_CONFIG@
236PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
237PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
238PNG_CFLAGS = @PNG_CFLAGS@
239PNG_LIBS = @PNG_LIBS@
240RANLIB = @RANLIB@
241SDL_CFLAGS = @SDL_CFLAGS@
242SDL_LIBS = @SDL_LIBS@
243SED = @SED@
244SET_MAKE = @SET_MAKE@
245SHELL = @SHELL@
246SHM_OPEN_LINK = @SHM_OPEN_LINK@
247STRIP = @STRIP@
248SVG_CFLAGS = @SVG_CFLAGS@
249SVG_LIBS = @SVG_LIBS@
250VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
251VALGRIND_LIBS = @VALGRIND_LIBS@
252VERSION = @VERSION@
253VMAJ = @VMAJ@
254WAYLAND_EGL_CFLAGS = @WAYLAND_EGL_CFLAGS@
255WAYLAND_EGL_LIBS = @WAYLAND_EGL_LIBS@
256XCB_CFLAGS = @XCB_CFLAGS@
257XCB_GL_CFLAGS = @XCB_GL_CFLAGS@
258XCB_GL_LIBS = @XCB_GL_LIBS@
259XCB_LIBS = @XCB_LIBS@
260XEXT_CFLAGS = @XEXT_CFLAGS@
261XEXT_LIBS = @XEXT_LIBS@
262XMKMF = @XMKMF@
263X_CFLAGS = @X_CFLAGS@
264X_EXTRA_LIBS = @X_EXTRA_LIBS@
265X_LIBS = @X_LIBS@
266X_PRE_LIBS = @X_PRE_LIBS@
267abs_builddir = @abs_builddir@
268abs_srcdir = @abs_srcdir@
269abs_top_builddir = @abs_top_builddir@
270abs_top_srcdir = @abs_top_srcdir@
271ac_ct_CC = @ac_ct_CC@
272ac_ct_CXX = @ac_ct_CXX@
273ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
274ac_ct_OBJC = @ac_ct_OBJC@
275altivec_cflags = @altivec_cflags@
276am__include = @am__include@
277am__leading_dot = @am__leading_dot@
278am__quote = @am__quote@
279am__tar = @am__tar@
280am__untar = @am__untar@
281bindir = @bindir@
282build = @build@
283build_alias = @build_alias@
284build_cpu = @build_cpu@
285build_os = @build_os@
286build_vendor = @build_vendor@
287builddir = @builddir@
288datadir = @datadir@
289datarootdir = @datarootdir@
290dlopen_libs = @dlopen_libs@
291docdir = @docdir@
292dvidir = @dvidir@
293edje_cc = @edje_cc@
294efl_doxygen = @efl_doxygen@
295efl_have_doxygen = @efl_have_doxygen@
296evas_engine_buffer_cflags = @evas_engine_buffer_cflags@
297evas_engine_buffer_libs = @evas_engine_buffer_libs@
298evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@
299evas_engine_direct3d_libs = @evas_engine_direct3d_libs@
300evas_engine_directfb_cflags = @evas_engine_directfb_cflags@
301evas_engine_directfb_libs = @evas_engine_directfb_libs@
302evas_engine_fb_cflags = @evas_engine_fb_cflags@
303evas_engine_fb_libs = @evas_engine_fb_libs@
304evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@
305evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@
306evas_engine_gl_common_libs = @evas_engine_gl_common_libs@
307evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@
308evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@
309evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@
310evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@
311evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@
312evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@
313evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@
314evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@
315evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@
316evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@
317evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@
318evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@
319evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@
320evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@
321evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@
322evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@
323evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@
324evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@
325evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@
326evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@
327evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@
328evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@
329evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@
330evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@
331evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@
332evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@
333evas_engine_wayland_egl_cflags = @evas_engine_wayland_egl_cflags@
334evas_engine_wayland_egl_libs = @evas_engine_wayland_egl_libs@
335evas_engine_wayland_shm_cflags = @evas_engine_wayland_shm_cflags@
336evas_engine_wayland_shm_libs = @evas_engine_wayland_shm_libs@
337evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@
338evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@
339evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@
340evas_image_loader_edb_libs = @evas_image_loader_edb_libs@
341evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@
342evas_image_loader_eet_libs = @evas_image_loader_eet_libs@
343evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@
344evas_image_loader_generic_libs = @evas_image_loader_generic_libs@
345evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@
346evas_image_loader_gif_libs = @evas_image_loader_gif_libs@
347evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@
348evas_image_loader_ico_libs = @evas_image_loader_ico_libs@
349evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@
350evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@
351evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@
352evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@
353evas_image_loader_png_cflags = @evas_image_loader_png_cflags@
354evas_image_loader_png_libs = @evas_image_loader_png_libs@
355evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@
356evas_image_loader_psd_libs = @evas_image_loader_psd_libs@
357evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@
358evas_image_loader_svg_libs = @evas_image_loader_svg_libs@
359evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@
360evas_image_loader_tga_libs = @evas_image_loader_tga_libs@
361evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@
362evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@
363evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@
364evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@
365evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@
366evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@
367exec_prefix = @exec_prefix@
368have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@
369have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@
370have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@
371have_evas_engine_software_x11 = @have_evas_engine_software_x11@
372have_evas_engine_software_xcb = @have_evas_engine_software_xcb@
373have_evas_engine_software_xlib = @have_evas_engine_software_xlib@
374have_lcov = @have_lcov@
375host = @host@
376host_alias = @host_alias@
377host_cpu = @host_cpu@
378host_os = @host_os@
379host_vendor = @host_vendor@
380htmldir = @htmldir@
381includedir = @includedir@
382infodir = @infodir@
383install_sh = @install_sh@
384libdir = @libdir@
385libexecdir = @libexecdir@
386localedir = @localedir@
387localstatedir = @localstatedir@
388lt_ECHO = @lt_ECHO@
389lt_enable_auto_import = @lt_enable_auto_import@
390mandir = @mandir@
391mkdir_p = @mkdir_p@
392oldincludedir = @oldincludedir@
393pdfdir = @pdfdir@
394pkgconfig_requires_private = @pkgconfig_requires_private@
395prefix = @prefix@
396program_transform_name = @program_transform_name@
397psdir = @psdir@
398pthread_cflags = @pthread_cflags@
399pthread_libs = @pthread_libs@
400release_info = @release_info@
401requirement_evas = @requirement_evas@
402sbindir = @sbindir@
403sharedstatedir = @sharedstatedir@
404srcdir = @srcdir@
405sysconfdir = @sysconfdir@
406target_alias = @target_alias@
407top_build_prefix = @top_build_prefix@
408top_builddir = @top_builddir@
409top_srcdir = @top_srcdir@
410version_info = @version_info@
411MAINTAINERCLEANFILES = Makefile.in
412AM_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 =
430all: 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
447Makefile: $(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
465clean-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
473install-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
487uninstall-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
496clean-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
504libevas_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)
506module.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
509mostlyclean-compile:
510 -rm -f *.$(OBJEXT)
511
512distclean-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
542module_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
550mostlyclean-libtool:
551 -rm -f *.lo
552
553clean-libtool:
554 -rm -rf .libs _libs
555
556ID: $(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
564tags: TAGS
565
566TAGS: $(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
587ctags: CTAGS
588CTAGS: $(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
600GTAGS:
601 here=`$(am__cd) $(top_builddir) && pwd` \
602 && $(am__cd) $(top_srcdir) \
603 && gtags -i $(GTAGS_ARGS) "$$here"
604
605distclean-tags:
606 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
607
608distdir: $(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
638check-am: all-am
639check: check-am
640all-am: Makefile $(LTLIBRARIES)
641installdirs:
642 for dir in "$(DESTDIR)$(pkgdir)"; do \
643 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
644 done
645install: install-am
646install-exec: install-exec-am
647install-data: install-data-am
648uninstall: uninstall-am
649
650install-am: all-am
651 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
652
653installcheck: installcheck-am
654install-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
659mostlyclean-generic:
660
661clean-generic:
662
663distclean-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
667maintainer-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)
671clean: clean-am
672
673clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
674 clean-pkgLTLIBRARIES mostlyclean-am
675
676distclean: distclean-am
677 -rm -rf ./$(DEPDIR)
678 -rm -f Makefile
679distclean-am: clean-am distclean-compile distclean-generic \
680 distclean-tags
681
682dvi: dvi-am
683
684dvi-am:
685
686html: html-am
687
688html-am:
689
690info: info-am
691
692info-am:
693
694install-data-am: install-pkgLTLIBRARIES
695
696install-dvi: install-dvi-am
697
698install-dvi-am:
699
700install-exec-am:
701
702install-html: install-html-am
703
704install-html-am:
705
706install-info: install-info-am
707
708install-info-am:
709
710install-man:
711
712install-pdf: install-pdf-am
713
714install-pdf-am:
715
716install-ps: install-ps-am
717
718install-ps-am:
719
720installcheck-am:
721
722maintainer-clean: maintainer-clean-am
723 -rm -rf ./$(DEPDIR)
724 -rm -f Makefile
725maintainer-clean-am: distclean-am maintainer-clean-generic
726
727mostlyclean: mostlyclean-am
728
729mostlyclean-am: mostlyclean-compile mostlyclean-generic \
730 mostlyclean-libtool
731
732pdf: pdf-am
733
734pdf-am:
735
736ps: ps-am
737
738ps-am:
739
740uninstall-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
14static 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);
15static 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
17static 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
26static Eina_Bool
27read_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
38static Eina_Bool
39read_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
51static Eina_Bool
52read_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
59static Eina_Bool
60read_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
68enum
69{
70 SMALLEST,
71 BIGGEST,
72 SMALLER,
73 BIGGER
74};
75
76enum
77{
78 ICON = 1,
79 CURSOR = 2
80};
81
82static Eina_Bool
83evas_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
308static Eina_Bool
309evas_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
780static int
781module_open(Evas_Module *em)
782{
783 if (!em) return 0;
784 em->functions = (void *)(&evas_image_load_ico_func);
785 return 1;
786}
787
788static void
789module_close(Evas_Module *em __UNUSED__)
790{
791}
792
793static 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
804EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, ico);
805
806#ifndef EVAS_STATIC_BUILD_ICO
807EVAS_EINA_MODULE_DEFINE(image_loader, ico);
808#endif