diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/evas/src/modules/loaders/ico | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to '')
-rw-r--r-- | libraries/evas/src/modules/loaders/ico/Makefile.am | 33 | ||||
-rw-r--r-- | libraries/evas/src/modules/loaders/ico/Makefile.in | 758 | ||||
-rw-r--r-- | libraries/evas/src/modules/loaders/ico/evas_image_load_ico.c | 770 |
3 files changed, 1561 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/loaders/ico/Makefile.am b/libraries/evas/src/modules/loaders/ico/Makefile.am new file mode 100644 index 0000000..044dd0d --- /dev/null +++ b/libraries/evas/src/modules/loaders/ico/Makefile.am | |||
@@ -0,0 +1,33 @@ | |||
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 | @WIN32_CPPFLAGS@ | ||
13 | |||
14 | if BUILD_LOADER_ICO | ||
15 | if !EVAS_STATIC_BUILD_ICO | ||
16 | |||
17 | pkgdir = $(libdir)/evas/modules/loaders/ico/$(MODULE_ARCH) | ||
18 | pkg_LTLIBRARIES = module.la | ||
19 | |||
20 | module_la_SOURCES = evas_image_load_ico.c | ||
21 | |||
22 | module_la_LIBADD = @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_ico.la | ||
29 | libevas_loader_ico_la_SOURCES = evas_image_load_ico.c | ||
30 | libevas_loader_ico_la_LIBADD = | ||
31 | |||
32 | endif | ||
33 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/ico/Makefile.in b/libraries/evas/src/modules/loaders/ico/Makefile.in new file mode 100644 index 0000000..5c26adf --- /dev/null +++ b/libraries/evas/src/modules/loaders/ico/Makefile.in | |||
@@ -0,0 +1,758 @@ | |||
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 | FGREP = @FGREP@ | ||
185 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
186 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
187 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
188 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
189 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
190 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
191 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
192 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
193 | GREP = @GREP@ | ||
194 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
195 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
196 | INSTALL = @INSTALL@ | ||
197 | INSTALL_DATA = @INSTALL_DATA@ | ||
198 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
199 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
200 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
201 | LD = @LD@ | ||
202 | LDFLAGS = @LDFLAGS@ | ||
203 | LIBOBJS = @LIBOBJS@ | ||
204 | LIBS = @LIBS@ | ||
205 | LIBTOOL = @LIBTOOL@ | ||
206 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
207 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
208 | LIPO = @LIPO@ | ||
209 | LN_S = @LN_S@ | ||
210 | LTLIBOBJS = @LTLIBOBJS@ | ||
211 | MAKEINFO = @MAKEINFO@ | ||
212 | MKDIR_P = @MKDIR_P@ | ||
213 | MODULE_ARCH = @MODULE_ARCH@ | ||
214 | NM = @NM@ | ||
215 | NMEDIT = @NMEDIT@ | ||
216 | OBJC = @OBJC@ | ||
217 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
218 | OBJCFLAGS = @OBJCFLAGS@ | ||
219 | OBJDUMP = @OBJDUMP@ | ||
220 | OBJEXT = @OBJEXT@ | ||
221 | OTOOL = @OTOOL@ | ||
222 | OTOOL64 = @OTOOL64@ | ||
223 | PACKAGE = @PACKAGE@ | ||
224 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
225 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
226 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
227 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
228 | PACKAGE_URL = @PACKAGE_URL@ | ||
229 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
230 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
231 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
232 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
233 | PKG_CONFIG = @PKG_CONFIG@ | ||
234 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
235 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
236 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
237 | PNG_LIBS = @PNG_LIBS@ | ||
238 | RANLIB = @RANLIB@ | ||
239 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
240 | SDL_LIBS = @SDL_LIBS@ | ||
241 | SED = @SED@ | ||
242 | SET_MAKE = @SET_MAKE@ | ||
243 | SHELL = @SHELL@ | ||
244 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
245 | STRIP = @STRIP@ | ||
246 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
247 | SVG_LIBS = @SVG_LIBS@ | ||
248 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
249 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
250 | VERSION = @VERSION@ | ||
251 | VMAJ = @VMAJ@ | ||
252 | WIN32_CFLAGS = @WIN32_CFLAGS@ | ||
253 | WIN32_CPPFLAGS = @WIN32_CPPFLAGS@ | ||
254 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
255 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
256 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
257 | XCB_LIBS = @XCB_LIBS@ | ||
258 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
259 | XEXT_LIBS = @XEXT_LIBS@ | ||
260 | XMKMF = @XMKMF@ | ||
261 | X_CFLAGS = @X_CFLAGS@ | ||
262 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
263 | X_LIBS = @X_LIBS@ | ||
264 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
265 | abs_builddir = @abs_builddir@ | ||
266 | abs_srcdir = @abs_srcdir@ | ||
267 | abs_top_builddir = @abs_top_builddir@ | ||
268 | abs_top_srcdir = @abs_top_srcdir@ | ||
269 | ac_ct_CC = @ac_ct_CC@ | ||
270 | ac_ct_CXX = @ac_ct_CXX@ | ||
271 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
272 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
273 | altivec_cflags = @altivec_cflags@ | ||
274 | am__include = @am__include@ | ||
275 | am__leading_dot = @am__leading_dot@ | ||
276 | am__quote = @am__quote@ | ||
277 | am__tar = @am__tar@ | ||
278 | am__untar = @am__untar@ | ||
279 | bindir = @bindir@ | ||
280 | build = @build@ | ||
281 | build_alias = @build_alias@ | ||
282 | build_cpu = @build_cpu@ | ||
283 | build_os = @build_os@ | ||
284 | build_vendor = @build_vendor@ | ||
285 | builddir = @builddir@ | ||
286 | datadir = @datadir@ | ||
287 | datarootdir = @datarootdir@ | ||
288 | dlopen_libs = @dlopen_libs@ | ||
289 | docdir = @docdir@ | ||
290 | dvidir = @dvidir@ | ||
291 | edje_cc = @edje_cc@ | ||
292 | efl_doxygen = @efl_doxygen@ | ||
293 | efl_have_doxygen = @efl_have_doxygen@ | ||
294 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
295 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
296 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
297 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
298 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
299 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
300 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
301 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
302 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
303 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
304 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
305 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
306 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
307 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
308 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
309 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
310 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
311 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
312 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
313 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
314 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
315 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
316 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
317 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
318 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
319 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
320 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
321 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
322 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
323 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
324 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
325 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
326 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
327 | evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@ | ||
328 | evas_engine_software_sdl_libs = @evas_engine_software_sdl_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_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
334 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
335 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
336 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
337 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
338 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
339 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
340 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
341 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
342 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
343 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
344 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
345 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
346 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
347 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
348 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
349 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
350 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
351 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
352 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
353 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
354 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
355 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
356 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
357 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
358 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
359 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
360 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
361 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
362 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
363 | exec_prefix = @exec_prefix@ | ||
364 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
365 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
366 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
367 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
368 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
369 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
370 | have_lcov = @have_lcov@ | ||
371 | host = @host@ | ||
372 | host_alias = @host_alias@ | ||
373 | host_cpu = @host_cpu@ | ||
374 | host_os = @host_os@ | ||
375 | host_vendor = @host_vendor@ | ||
376 | htmldir = @htmldir@ | ||
377 | includedir = @includedir@ | ||
378 | infodir = @infodir@ | ||
379 | install_sh = @install_sh@ | ||
380 | libdir = @libdir@ | ||
381 | libexecdir = @libexecdir@ | ||
382 | localedir = @localedir@ | ||
383 | localstatedir = @localstatedir@ | ||
384 | lt_ECHO = @lt_ECHO@ | ||
385 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
386 | mandir = @mandir@ | ||
387 | mkdir_p = @mkdir_p@ | ||
388 | oldincludedir = @oldincludedir@ | ||
389 | pdfdir = @pdfdir@ | ||
390 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
391 | prefix = @prefix@ | ||
392 | program_transform_name = @program_transform_name@ | ||
393 | psdir = @psdir@ | ||
394 | pthread_cflags = @pthread_cflags@ | ||
395 | pthread_libs = @pthread_libs@ | ||
396 | release_info = @release_info@ | ||
397 | requirement_evas = @requirement_evas@ | ||
398 | sbindir = @sbindir@ | ||
399 | sharedstatedir = @sharedstatedir@ | ||
400 | srcdir = @srcdir@ | ||
401 | sysconfdir = @sysconfdir@ | ||
402 | target_alias = @target_alias@ | ||
403 | top_build_prefix = @top_build_prefix@ | ||
404 | top_builddir = @top_builddir@ | ||
405 | top_srcdir = @top_srcdir@ | ||
406 | version_info = @version_info@ | ||
407 | MAINTAINERCLEANFILES = Makefile.in | ||
408 | AM_CPPFLAGS = \ | ||
409 | -I. \ | ||
410 | -I$(top_srcdir)/src/lib \ | ||
411 | -I$(top_srcdir)/src/lib/include \ | ||
412 | @FREETYPE_CFLAGS@ \ | ||
413 | @PIXMAN_CFLAGS@ \ | ||
414 | @EINA_CFLAGS@ \ | ||
415 | @EVIL_CFLAGS@ \ | ||
416 | @WIN32_CPPFLAGS@ | ||
417 | |||
418 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@pkgdir = $(libdir)/evas/modules/loaders/ico/$(MODULE_ARCH) | ||
419 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@pkg_LTLIBRARIES = module.la | ||
420 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@module_la_SOURCES = evas_image_load_ico.c | ||
421 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ $(top_builddir)/src/lib/libevas.la | ||
422 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
423 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
424 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_TRUE@noinst_LTLIBRARIES = libevas_loader_ico.la | ||
425 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_TRUE@libevas_loader_ico_la_SOURCES = evas_image_load_ico.c | ||
426 | @BUILD_LOADER_ICO_TRUE@@EVAS_STATIC_BUILD_ICO_TRUE@libevas_loader_ico_la_LIBADD = | ||
427 | all: all-am | ||
428 | |||
429 | .SUFFIXES: | ||
430 | .SUFFIXES: .c .lo .o .obj | ||
431 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
432 | @for dep in $?; do \ | ||
433 | case '$(am__configure_deps)' in \ | ||
434 | *$$dep*) \ | ||
435 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
436 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
437 | exit 1;; \ | ||
438 | esac; \ | ||
439 | done; \ | ||
440 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/ico/Makefile'; \ | ||
441 | $(am__cd) $(top_srcdir) && \ | ||
442 | $(AUTOMAKE) --gnu src/modules/loaders/ico/Makefile | ||
443 | .PRECIOUS: Makefile | ||
444 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
445 | @case '$?' in \ | ||
446 | *config.status*) \ | ||
447 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
448 | *) \ | ||
449 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
450 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
451 | esac; | ||
452 | |||
453 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
454 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
455 | |||
456 | $(top_srcdir)/configure: $(am__configure_deps) | ||
457 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
458 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
459 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
460 | $(am__aclocal_m4_deps): | ||
461 | |||
462 | clean-noinstLTLIBRARIES: | ||
463 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) | ||
464 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | ||
465 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
466 | test "$$dir" != "$$p" || dir=.; \ | ||
467 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
468 | rm -f "$${dir}/so_locations"; \ | ||
469 | done | ||
470 | install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) | ||
471 | @$(NORMAL_INSTALL) | ||
472 | test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)" | ||
473 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
474 | list2=; for p in $$list; do \ | ||
475 | if test -f $$p; then \ | ||
476 | list2="$$list2 $$p"; \ | ||
477 | else :; fi; \ | ||
478 | done; \ | ||
479 | test -z "$$list2" || { \ | ||
480 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ | ||
481 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ | ||
482 | } | ||
483 | |||
484 | uninstall-pkgLTLIBRARIES: | ||
485 | @$(NORMAL_UNINSTALL) | ||
486 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
487 | for p in $$list; do \ | ||
488 | $(am__strip_dir) \ | ||
489 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ | ||
490 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ | ||
491 | done | ||
492 | |||
493 | clean-pkgLTLIBRARIES: | ||
494 | -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) | ||
495 | @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \ | ||
496 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
497 | test "$$dir" != "$$p" || dir=.; \ | ||
498 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
499 | rm -f "$${dir}/so_locations"; \ | ||
500 | done | ||
501 | libevas_loader_ico.la: $(libevas_loader_ico_la_OBJECTS) $(libevas_loader_ico_la_DEPENDENCIES) | ||
502 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_ico_la_rpath) $(libevas_loader_ico_la_OBJECTS) $(libevas_loader_ico_la_LIBADD) $(LIBS) | ||
503 | module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES) | ||
504 | $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS) | ||
505 | |||
506 | mostlyclean-compile: | ||
507 | -rm -f *.$(OBJEXT) | ||
508 | |||
509 | distclean-compile: | ||
510 | -rm -f *.tab.c | ||
511 | |||
512 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_ico.Plo@am__quote@ | ||
513 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_ico.Plo@am__quote@ | ||
514 | |||
515 | .c.o: | ||
516 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
517 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
518 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
519 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
520 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
521 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
522 | |||
523 | .c.obj: | ||
524 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
525 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
526 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
527 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
528 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
529 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
530 | |||
531 | .c.lo: | ||
532 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
533 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
534 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
535 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
536 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
537 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
538 | |||
539 | module_la-evas_image_load_ico.lo: evas_image_load_ico.c | ||
540 | @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 | ||
541 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_ico.Tpo $(DEPDIR)/module_la-evas_image_load_ico.Plo | ||
542 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
543 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_ico.c' object='module_la-evas_image_load_ico.lo' libtool=yes @AMDEPBACKSLASH@ | ||
544 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
545 | @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 | ||
546 | |||
547 | mostlyclean-libtool: | ||
548 | -rm -f *.lo | ||
549 | |||
550 | clean-libtool: | ||
551 | -rm -rf .libs _libs | ||
552 | |||
553 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
554 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
555 | unique=`for i in $$list; do \ | ||
556 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
557 | done | \ | ||
558 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
559 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
560 | mkid -fID $$unique | ||
561 | tags: TAGS | ||
562 | |||
563 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
564 | $(TAGS_FILES) $(LISP) | ||
565 | set x; \ | ||
566 | here=`pwd`; \ | ||
567 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
568 | unique=`for i in $$list; do \ | ||
569 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
570 | done | \ | ||
571 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
572 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
573 | shift; \ | ||
574 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
575 | test -n "$$unique" || unique=$$empty_fix; \ | ||
576 | if test $$# -gt 0; then \ | ||
577 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
578 | "$$@" $$unique; \ | ||
579 | else \ | ||
580 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
581 | $$unique; \ | ||
582 | fi; \ | ||
583 | fi | ||
584 | ctags: CTAGS | ||
585 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
586 | $(TAGS_FILES) $(LISP) | ||
587 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
588 | unique=`for i in $$list; do \ | ||
589 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
590 | done | \ | ||
591 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
592 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
593 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
594 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
595 | $$unique | ||
596 | |||
597 | GTAGS: | ||
598 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
599 | && $(am__cd) $(top_srcdir) \ | ||
600 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
601 | |||
602 | distclean-tags: | ||
603 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
604 | |||
605 | distdir: $(DISTFILES) | ||
606 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
607 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
608 | list='$(DISTFILES)'; \ | ||
609 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
610 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
611 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
612 | case $$dist_files in \ | ||
613 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
614 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
615 | sort -u` ;; \ | ||
616 | esac; \ | ||
617 | for file in $$dist_files; do \ | ||
618 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
619 | if test -d $$d/$$file; then \ | ||
620 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
621 | if test -d "$(distdir)/$$file"; then \ | ||
622 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
623 | fi; \ | ||
624 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
625 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
626 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
627 | fi; \ | ||
628 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
629 | else \ | ||
630 | test -f "$(distdir)/$$file" \ | ||
631 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
632 | || exit 1; \ | ||
633 | fi; \ | ||
634 | done | ||
635 | check-am: all-am | ||
636 | check: check-am | ||
637 | all-am: Makefile $(LTLIBRARIES) | ||
638 | installdirs: | ||
639 | for dir in "$(DESTDIR)$(pkgdir)"; do \ | ||
640 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
641 | done | ||
642 | install: install-am | ||
643 | install-exec: install-exec-am | ||
644 | install-data: install-data-am | ||
645 | uninstall: uninstall-am | ||
646 | |||
647 | install-am: all-am | ||
648 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
649 | |||
650 | installcheck: installcheck-am | ||
651 | install-strip: | ||
652 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
653 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
654 | `test -z '$(STRIP)' || \ | ||
655 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
656 | mostlyclean-generic: | ||
657 | |||
658 | clean-generic: | ||
659 | |||
660 | distclean-generic: | ||
661 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
662 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
663 | |||
664 | maintainer-clean-generic: | ||
665 | @echo "This command is intended for maintainers to use" | ||
666 | @echo "it deletes files that may require special tools to rebuild." | ||
667 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
668 | clean: clean-am | ||
669 | |||
670 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ | ||
671 | clean-pkgLTLIBRARIES mostlyclean-am | ||
672 | |||
673 | distclean: distclean-am | ||
674 | -rm -rf ./$(DEPDIR) | ||
675 | -rm -f Makefile | ||
676 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
677 | distclean-tags | ||
678 | |||
679 | dvi: dvi-am | ||
680 | |||
681 | dvi-am: | ||
682 | |||
683 | html: html-am | ||
684 | |||
685 | html-am: | ||
686 | |||
687 | info: info-am | ||
688 | |||
689 | info-am: | ||
690 | |||
691 | install-data-am: install-pkgLTLIBRARIES | ||
692 | |||
693 | install-dvi: install-dvi-am | ||
694 | |||
695 | install-dvi-am: | ||
696 | |||
697 | install-exec-am: | ||
698 | |||
699 | install-html: install-html-am | ||
700 | |||
701 | install-html-am: | ||
702 | |||
703 | install-info: install-info-am | ||
704 | |||
705 | install-info-am: | ||
706 | |||
707 | install-man: | ||
708 | |||
709 | install-pdf: install-pdf-am | ||
710 | |||
711 | install-pdf-am: | ||
712 | |||
713 | install-ps: install-ps-am | ||
714 | |||
715 | install-ps-am: | ||
716 | |||
717 | installcheck-am: | ||
718 | |||
719 | maintainer-clean: maintainer-clean-am | ||
720 | -rm -rf ./$(DEPDIR) | ||
721 | -rm -f Makefile | ||
722 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
723 | |||
724 | mostlyclean: mostlyclean-am | ||
725 | |||
726 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
727 | mostlyclean-libtool | ||
728 | |||
729 | pdf: pdf-am | ||
730 | |||
731 | pdf-am: | ||
732 | |||
733 | ps: ps-am | ||
734 | |||
735 | ps-am: | ||
736 | |||
737 | uninstall-am: uninstall-pkgLTLIBRARIES | ||
738 | |||
739 | .MAKE: install-am install-strip | ||
740 | |||
741 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
742 | clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \ | ||
743 | ctags distclean distclean-compile 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-pkgLTLIBRARIES install-ps install-ps-am install-strip \ | ||
750 | installcheck installcheck-am installdirs maintainer-clean \ | ||
751 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
752 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
753 | tags uninstall uninstall-am uninstall-pkgLTLIBRARIES | ||
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/ico/evas_image_load_ico.c b/libraries/evas/src/modules/loaders/ico/evas_image_load_ico.c new file mode 100644 index 0000000..17a7f7e --- /dev/null +++ b/libraries/evas/src/modules/loaders/ico/evas_image_load_ico.c | |||
@@ -0,0 +1,770 @@ | |||
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 | }; | ||
24 | |||
25 | static int | ||
26 | read_ushort(FILE *file, unsigned short *ret) | ||
27 | { | ||
28 | unsigned char b[2]; | ||
29 | if (fread(b, sizeof(unsigned char), 2, file) != 2) return 0; | ||
30 | *ret = (b[1] << 8) | b[0]; | ||
31 | return 1; | ||
32 | } | ||
33 | |||
34 | static int | ||
35 | read_uint(FILE *file, unsigned int *ret) | ||
36 | { | ||
37 | unsigned char b[4]; | ||
38 | if (fread(b, sizeof(unsigned char), 4, file) != 4) return 0; | ||
39 | *ret = ARGB_JOIN(b[3], b[2], b[1], b[0]); | ||
40 | return 1; | ||
41 | } | ||
42 | |||
43 | enum | ||
44 | { | ||
45 | SMALLEST, | ||
46 | BIGGEST, | ||
47 | SMALLER, | ||
48 | BIGGER | ||
49 | }; | ||
50 | |||
51 | enum | ||
52 | { | ||
53 | ICON = 1, | ||
54 | CURSOR = 2 | ||
55 | }; | ||
56 | |||
57 | static Eina_Bool | ||
58 | evas_image_load_file_head_ico(Image_Entry *ie, const char *file, const char *key, int *error) | ||
59 | { | ||
60 | unsigned short word; | ||
61 | unsigned char byte; | ||
62 | FILE *f; | ||
63 | int wanted_w = 0, wanted_h = 0, w, h, cols, i, planes = 0, | ||
64 | hot_x = 0, hot_y = 0, bpp = 0, pdelta, search = -1, have_choice = 0, | ||
65 | hasa = 1; | ||
66 | unsigned int bmoffset, bmsize, fsize; | ||
67 | unsigned short reserved, type, count; | ||
68 | struct { | ||
69 | int pdelta; | ||
70 | int w, h; | ||
71 | int cols; | ||
72 | int bpp, planes; | ||
73 | int hot_x, hot_y; | ||
74 | unsigned int bmoffset, bmsize; | ||
75 | } chosen = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; | ||
76 | |||
77 | f = fopen(file, "rb"); | ||
78 | if (!f) | ||
79 | { | ||
80 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
81 | return EINA_FALSE; | ||
82 | } | ||
83 | |||
84 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
85 | fseek(f, 0, SEEK_END); | ||
86 | fsize = ftell(f); | ||
87 | fseek(f, 0, SEEK_SET); | ||
88 | if (fsize < (6 + 16 + 40)) goto close_file; | ||
89 | |||
90 | // key: | ||
91 | // NULL == highest res | ||
92 | // biggest == highest res | ||
93 | // smallest == lowest res | ||
94 | // | ||
95 | // smaller == next size SMALLER than load opts WxH (if possible) | ||
96 | // bigger == next size BIGGER than load opts WxH (if possible) | ||
97 | // more ? | ||
98 | |||
99 | search = BIGGEST; | ||
100 | if ((ie->load_opts.w > 0) && (ie->load_opts.h > 0)) | ||
101 | { | ||
102 | wanted_w = ie->load_opts.w; | ||
103 | wanted_h = ie->load_opts.h; | ||
104 | search = SMALLER; | ||
105 | } | ||
106 | |||
107 | if (!read_ushort(f, &reserved)) goto close_file; | ||
108 | if (!read_ushort(f, &type)) goto close_file; | ||
109 | if (!read_ushort(f, &count)) goto close_file; | ||
110 | if (!((reserved == 0) && | ||
111 | ((type == ICON) || (type == CURSOR)) && (count > 0))) | ||
112 | goto close_file; | ||
113 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
114 | |||
115 | if (key) | ||
116 | { | ||
117 | if (!strcmp(key, "biggest")) | ||
118 | { | ||
119 | wanted_w = 0; | ||
120 | wanted_h = 0; | ||
121 | search = BIGGEST; | ||
122 | chosen.pdelta = 0; | ||
123 | } | ||
124 | else if (!strcmp(key, "smallest")) | ||
125 | { | ||
126 | wanted_w = 1; | ||
127 | wanted_h = 1; | ||
128 | search = SMALLEST; | ||
129 | chosen.pdelta = 0x7fffffff; | ||
130 | } | ||
131 | else if (!strcmp(key, "smaller")) | ||
132 | { | ||
133 | chosen.pdelta = 0x7fffffff; | ||
134 | search = SMALLER; | ||
135 | } | ||
136 | else if (!strcmp(key, "bigger")) | ||
137 | { | ||
138 | chosen.pdelta = 0x7fffffff; | ||
139 | search = BIGGER; | ||
140 | } | ||
141 | } | ||
142 | for (i = 0; i < count; i++) | ||
143 | { | ||
144 | if (fread(&byte, 1, 1, f) != 1) goto close_file; | ||
145 | w = byte; | ||
146 | if (w <= 0) w = 256; | ||
147 | if (fread(&byte, 1, 1, f) != 1) goto close_file; | ||
148 | h = byte; | ||
149 | if (h <= 0) h = 256; | ||
150 | if (fread(&byte, 1, 1, f) != 1) goto close_file; | ||
151 | cols = byte; | ||
152 | if (cols <= 0) cols = 256; | ||
153 | if (fread(&byte, 1, 1, f) != 1) goto close_file; | ||
154 | if (!read_ushort(f, &word)) goto close_file; | ||
155 | if (type == CURSOR) planes = word; | ||
156 | else hot_x = word; | ||
157 | if (!read_ushort(f, &word)) goto close_file; | ||
158 | if (type == CURSOR) bpp = word; | ||
159 | else hot_y = word; | ||
160 | if (!read_uint(f, &bmsize)) goto close_file; | ||
161 | if (!read_uint(f, &bmoffset)) goto close_file; | ||
162 | if ((bmsize <= 0) || (bmoffset <= 0) || (bmoffset >= fsize)) goto close_file; | ||
163 | if (search == BIGGEST) | ||
164 | { | ||
165 | pdelta = w * h; | ||
166 | if ((!have_choice) || | ||
167 | ((pdelta >= chosen.pdelta) && | ||
168 | (((bpp >= 3) && (bpp >= chosen.bpp)) || | ||
169 | ((bpp < 3) && (cols >= chosen.cols))))) | ||
170 | { | ||
171 | have_choice = 1; | ||
172 | chosen.pdelta = pdelta; | ||
173 | chosen.w = w; | ||
174 | chosen.h = h; | ||
175 | chosen.cols = cols; | ||
176 | chosen.bpp = bpp; | ||
177 | chosen.planes = planes; | ||
178 | chosen.bmsize = bmsize; | ||
179 | chosen.bmoffset = bmoffset; | ||
180 | } | ||
181 | } | ||
182 | else | ||
183 | { | ||
184 | if (search == SMALLEST) | ||
185 | { | ||
186 | pdelta = w * h; | ||
187 | if ((!have_choice) || | ||
188 | ((pdelta <= chosen.pdelta) && | ||
189 | (((bpp >= 3) && (bpp >= chosen.bpp)) || | ||
190 | ((bpp < 3) && (cols >= chosen.cols))))) | ||
191 | { | ||
192 | have_choice = 1; | ||
193 | chosen.pdelta = pdelta; | ||
194 | chosen.w = w; | ||
195 | chosen.h = h; | ||
196 | chosen.cols = cols; | ||
197 | chosen.bpp = bpp; | ||
198 | chosen.planes = planes; | ||
199 | chosen.bmsize = bmsize; | ||
200 | chosen.bmoffset = bmoffset; | ||
201 | } | ||
202 | } | ||
203 | else if (search == SMALLER) | ||
204 | { | ||
205 | pdelta = (wanted_w * wanted_h) - (w * h); | ||
206 | if ((!have_choice) || | ||
207 | ((w <= wanted_w) && (h <= wanted_h) && | ||
208 | (pdelta <= chosen.pdelta) && | ||
209 | (((bpp >= 3) && (bpp >= chosen.bpp)) || | ||
210 | ((bpp < 3) && (cols >= chosen.cols))))) | ||
211 | { | ||
212 | have_choice = 1; | ||
213 | if (pdelta < 0) pdelta = 0x7fffffff; | ||
214 | chosen.pdelta = pdelta; | ||
215 | chosen.w = w; | ||
216 | chosen.h = h; | ||
217 | chosen.cols = cols; | ||
218 | chosen.bpp = bpp; | ||
219 | chosen.planes = planes; | ||
220 | chosen.bmsize = bmsize; | ||
221 | chosen.bmoffset = bmoffset; | ||
222 | } | ||
223 | } | ||
224 | else if (search == BIGGER) | ||
225 | { | ||
226 | pdelta = (w * h) - (wanted_w * wanted_h); | ||
227 | if ((!have_choice) || | ||
228 | ((w >= wanted_w) && (h >= wanted_h) && | ||
229 | (pdelta <= chosen.pdelta) && | ||
230 | (((bpp >= 3) && (bpp >= chosen.bpp)) || | ||
231 | ((bpp < 3) && (cols >= chosen.cols))))) | ||
232 | { | ||
233 | have_choice = 1; | ||
234 | if (pdelta < 0) pdelta = 0x7fffffff; | ||
235 | chosen.pdelta = pdelta; | ||
236 | chosen.w = w; | ||
237 | chosen.h = h; | ||
238 | chosen.cols = cols; | ||
239 | chosen.bpp = bpp; | ||
240 | chosen.planes = planes; | ||
241 | chosen.bmsize = bmsize; | ||
242 | chosen.bmoffset = bmoffset; | ||
243 | } | ||
244 | } | ||
245 | } | ||
246 | } | ||
247 | if (chosen.bmoffset == 0) goto close_file; | ||
248 | if (fseek(f, chosen.bmoffset, SEEK_SET) != 0) goto close_file; | ||
249 | |||
250 | w = chosen.w; | ||
251 | h = chosen.h; | ||
252 | if ((w > 256) || (h > 256)) goto close_file; | ||
253 | if ((w < 1) || (h < 1) || (w > IMG_MAX_SIZE) || (h > IMG_MAX_SIZE) || | ||
254 | IMG_TOO_BIG(w, h)) | ||
255 | { | ||
256 | if (IMG_TOO_BIG(w, h)) | ||
257 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
258 | else | ||
259 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
260 | goto close_file; | ||
261 | } | ||
262 | |||
263 | ie->w = w; | ||
264 | ie->h = h; | ||
265 | if (hasa) ie->flags.alpha = 1; | ||
266 | |||
267 | fclose(f); | ||
268 | *error = EVAS_LOAD_ERROR_NONE; | ||
269 | return EINA_TRUE; | ||
270 | |||
271 | close_file: | ||
272 | fclose(f); | ||
273 | return EINA_FALSE; | ||
274 | } | ||
275 | |||
276 | static Eina_Bool | ||
277 | evas_image_load_file_data_ico(Image_Entry *ie, const char *file, const char *key, int *error) | ||
278 | { | ||
279 | unsigned short word; | ||
280 | unsigned char byte; | ||
281 | unsigned int dword; | ||
282 | FILE *f; | ||
283 | int wanted_w = 0, wanted_h = 0, w, h, cols, i, planes = 0, | ||
284 | hot_x = 0, hot_y = 0, bpp = 0, pdelta, search = -1, have_choice = 0, | ||
285 | stride, pstride, j, right_way_up = 0, diff_size = 0, cols2; | ||
286 | unsigned int bmoffset, bmsize, bitcount, compression, imagesize, fsize, | ||
287 | colorsused, colorsimportant, *pal, *surface, *pix, none_zero_alpha = 0; | ||
288 | unsigned short reserved, type, count, planes2; | ||
289 | unsigned char *maskbuf, *pixbuf, *p; | ||
290 | struct { | ||
291 | int pdelta; | ||
292 | int w, h; | ||
293 | int cols; | ||
294 | int bpp, planes; | ||
295 | int hot_x, hot_y; | ||
296 | unsigned int bmoffset, bmsize; | ||
297 | } chosen = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; | ||
298 | |||
299 | f = fopen(file, "rb"); | ||
300 | if (!f) | ||
301 | { | ||
302 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
303 | return EINA_FALSE; | ||
304 | } | ||
305 | |||
306 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
307 | fseek(f, 0, SEEK_END); | ||
308 | fsize = ftell(f); | ||
309 | fseek(f, 0, SEEK_SET); | ||
310 | if (fsize < (6 + 16 + 40)) goto close_file; | ||
311 | |||
312 | // key: | ||
313 | // NULL == highest res | ||
314 | // biggest == highest res | ||
315 | // smallest == lowest res | ||
316 | // | ||
317 | // smaller == next size SMALLER than load opts WxH (if possible) | ||
318 | // bigger == next size BIGGER than load opts WxH (if possible) | ||
319 | // more ? | ||
320 | |||
321 | search = BIGGEST; | ||
322 | if ((ie->load_opts.w > 0) && (ie->load_opts.h > 0)) | ||
323 | { | ||
324 | wanted_w = ie->load_opts.w; | ||
325 | wanted_h = ie->load_opts.h; | ||
326 | search = SMALLER; | ||
327 | } | ||
328 | |||
329 | if (!read_ushort(f, &reserved)) goto close_file; | ||
330 | if (!read_ushort(f, &type)) goto close_file; | ||
331 | if (!read_ushort(f, &count)) goto close_file; | ||
332 | if (!((reserved == 0) && | ||
333 | ((type == ICON) || (type == CURSOR)) && (count > 0))) | ||
334 | goto close_file; | ||
335 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
336 | |||
337 | if (key) | ||
338 | { | ||
339 | if (!strcmp(key, "biggest")) | ||
340 | { | ||
341 | wanted_w = 0; | ||
342 | wanted_h = 0; | ||
343 | search = BIGGEST; | ||
344 | chosen.pdelta = 0; | ||
345 | } | ||
346 | else if (!strcmp(key, "smallest")) | ||
347 | { | ||
348 | wanted_w = 1; | ||
349 | wanted_h = 1; | ||
350 | search = SMALLEST; | ||
351 | chosen.pdelta = 0x7fffffff; | ||
352 | } | ||
353 | else if (!strcmp(key, "smaller")) | ||
354 | { | ||
355 | chosen.pdelta = 0x7fffffff; | ||
356 | search = SMALLER; | ||
357 | } | ||
358 | else if (!strcmp(key, "bigger")) | ||
359 | { | ||
360 | chosen.pdelta = 0x7fffffff; | ||
361 | search = BIGGER; | ||
362 | } | ||
363 | } | ||
364 | for (i = 0; i < count; i++) | ||
365 | { | ||
366 | if (fread(&byte, 1, 1, f) != 1) goto close_file; | ||
367 | w = byte; | ||
368 | if (w <= 0) w = 256; | ||
369 | if (fread(&byte, 1, 1, f) != 1) goto close_file; | ||
370 | h = byte; | ||
371 | if (h <= 0) h = 256; | ||
372 | if (fread(&byte, 1, 1, f) != 1) goto close_file; | ||
373 | cols = byte; | ||
374 | if (cols <= 0) cols = 256; | ||
375 | if (fread(&byte, 1, 1, f) != 1) goto close_file; | ||
376 | if (!read_ushort(f, &word)) goto close_file; | ||
377 | if (type == 1) planes = word; | ||
378 | else hot_x = word; | ||
379 | if (!read_ushort(f, &word)) goto close_file; | ||
380 | if (type == 1) bpp = word; | ||
381 | else hot_y = word; | ||
382 | if (!read_uint(f, &bmsize)) goto close_file; | ||
383 | if (!read_uint(f, &bmoffset)) goto close_file; | ||
384 | if ((bmsize <= 0) || (bmoffset <= 0) || (bmoffset >= fsize)) goto close_file; | ||
385 | if (search == BIGGEST) | ||
386 | { | ||
387 | pdelta = w * h; | ||
388 | if ((!have_choice) || | ||
389 | ((pdelta >= chosen.pdelta) && | ||
390 | (((bpp >= 3) && (bpp >= chosen.bpp)) || | ||
391 | ((bpp < 3) && (cols >= chosen.cols))))) | ||
392 | { | ||
393 | have_choice = 1; | ||
394 | chosen.pdelta = pdelta; | ||
395 | chosen.w = w; | ||
396 | chosen.h = h; | ||
397 | chosen.cols = cols; | ||
398 | chosen.bpp = bpp; | ||
399 | chosen.planes = planes; | ||
400 | chosen.bmsize = bmsize; | ||
401 | chosen.bmoffset = bmoffset; | ||
402 | } | ||
403 | } | ||
404 | else | ||
405 | { | ||
406 | if (search == SMALLEST) | ||
407 | { | ||
408 | pdelta = w * h; | ||
409 | if ((!have_choice) || | ||
410 | ((pdelta <= chosen.pdelta) && | ||
411 | (((bpp >= 3) && (bpp >= chosen.bpp)) || | ||
412 | ((bpp < 3) && (cols >= chosen.cols))))) | ||
413 | { | ||
414 | have_choice = 1; | ||
415 | chosen.pdelta = pdelta; | ||
416 | chosen.w = w; | ||
417 | chosen.h = h; | ||
418 | chosen.cols = cols; | ||
419 | chosen.bpp = bpp; | ||
420 | chosen.planes = planes; | ||
421 | chosen.bmsize = bmsize; | ||
422 | chosen.bmoffset = bmoffset; | ||
423 | } | ||
424 | } | ||
425 | else if (search == SMALLER) | ||
426 | { | ||
427 | pdelta = (wanted_w * wanted_h) - (w * h); | ||
428 | if ((!have_choice) || | ||
429 | ((w <= wanted_w) && (h <= wanted_h) && | ||
430 | (pdelta <= chosen.pdelta) && | ||
431 | (((bpp >= 3) && (bpp >= chosen.bpp)) || | ||
432 | ((bpp < 3) && (cols >= chosen.cols))))) | ||
433 | { | ||
434 | have_choice = 1; | ||
435 | if (pdelta < 0) pdelta = 0x7fffffff; | ||
436 | chosen.pdelta = pdelta; | ||
437 | chosen.w = w; | ||
438 | chosen.h = h; | ||
439 | chosen.cols = cols; | ||
440 | chosen.bpp = bpp; | ||
441 | chosen.planes = planes; | ||
442 | chosen.bmsize = bmsize; | ||
443 | chosen.bmoffset = bmoffset; | ||
444 | } | ||
445 | } | ||
446 | else if (search == BIGGER) | ||
447 | { | ||
448 | pdelta = (w * h) - (wanted_w * wanted_h); | ||
449 | if ((!have_choice) || | ||
450 | ((w >= wanted_w) && (h >= wanted_h) && | ||
451 | (pdelta <= chosen.pdelta) && | ||
452 | (((bpp >= 3) && (bpp >= chosen.bpp)) || | ||
453 | ((bpp < 3) && (cols >= chosen.cols))))) | ||
454 | { | ||
455 | have_choice = 1; | ||
456 | if (pdelta < 0) pdelta = 0x7fffffff; | ||
457 | chosen.pdelta = pdelta; | ||
458 | chosen.w = w; | ||
459 | chosen.h = h; | ||
460 | chosen.cols = cols; | ||
461 | chosen.bpp = bpp; | ||
462 | chosen.planes = planes; | ||
463 | chosen.bmsize = bmsize; | ||
464 | chosen.bmoffset = bmoffset; | ||
465 | } | ||
466 | } | ||
467 | } | ||
468 | } | ||
469 | if (chosen.bmoffset == 0) goto close_file; | ||
470 | if (fseek(f, chosen.bmoffset, SEEK_SET) != 0) goto close_file; | ||
471 | |||
472 | w = chosen.w; | ||
473 | h = chosen.h; | ||
474 | cols = chosen.cols; | ||
475 | bpp = chosen.bpp; | ||
476 | // changed since we loaded header? | ||
477 | if (((int)ie->w != w) || ((int)ie->h != h)) goto close_file; | ||
478 | |||
479 | // read bmp header time... let's do some checking | ||
480 | if (!read_uint(f, &dword)) goto close_file; // headersize - dont care | ||
481 | if (!read_uint(f, &dword)) goto close_file; // width | ||
482 | if (dword > 0) | ||
483 | { | ||
484 | if ((int)dword != w) | ||
485 | { | ||
486 | w = dword; | ||
487 | diff_size = 1; | ||
488 | } | ||
489 | } | ||
490 | if (!read_uint(f, &dword)) goto close_file; // height | ||
491 | if (dword > 0) | ||
492 | { | ||
493 | if ((int)dword != (h * 2)) | ||
494 | { | ||
495 | h = dword / 2; | ||
496 | diff_size = 1; | ||
497 | } | ||
498 | } | ||
499 | if (diff_size) | ||
500 | { | ||
501 | ERR("Broken ICO file: %s - " | ||
502 | " Reporting size of %ix%i in index, but bitmap is %ix%i. " | ||
503 | " May be expanded or cropped.", | ||
504 | file, ie->w, ie->h, w, h); | ||
505 | } | ||
506 | if (!read_ushort(f, &word)) goto close_file; // planes | ||
507 | planes2 = word; | ||
508 | if (!read_ushort(f, &word)) goto close_file; // bitcount | ||
509 | bitcount = word; | ||
510 | if (!read_uint(f, &dword)) goto close_file; // compression | ||
511 | compression = dword; | ||
512 | if (!read_uint(f, &dword)) goto close_file; // imagesize | ||
513 | imagesize = dword; | ||
514 | if (!read_uint(f, &dword)) goto close_file; // z pixels per m | ||
515 | if (!read_uint(f, &dword)) goto close_file; // y pizels per m | ||
516 | if (!read_uint(f, &dword)) goto close_file; // colors used | ||
517 | colorsused = dword; | ||
518 | if (!read_uint(f, &dword)) goto close_file; // colors important | ||
519 | colorsimportant = dword; | ||
520 | |||
521 | evas_cache_image_surface_alloc(ie, ie->w, ie->h); | ||
522 | surface = evas_cache_image_pixels(ie); | ||
523 | if (!surface) | ||
524 | { | ||
525 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
526 | goto close_file; | ||
527 | } | ||
528 | memset(surface, 0, ie->w * ie->h * 4); | ||
529 | |||
530 | if (!((bitcount == 1) || (bitcount == 4) || (bitcount == 8) || | ||
531 | (bitcount == 24) || (bitcount == 32))) | ||
532 | goto close_file; | ||
533 | if (bitcount <= 8) | ||
534 | { | ||
535 | cols2 = 1 << bitcount; | ||
536 | if (cols == 0) cols = cols2; | ||
537 | if (cols > cols2) cols = cols2; | ||
538 | if (cols > 256) cols = 256; | ||
539 | } | ||
540 | else | ||
541 | cols = 0; | ||
542 | if (bitcount > 8) cols = 0; | ||
543 | |||
544 | pal = alloca(256 * 4); | ||
545 | for (i = 0; i < cols; i++) | ||
546 | { | ||
547 | unsigned char a, r, g, b; | ||
548 | |||
549 | if (fread(&b, 1, 1, f) != 1) goto close_file; | ||
550 | if (fread(&g, 1, 1, f) != 1) goto close_file; | ||
551 | if (fread(&r, 1, 1, f) != 1) goto close_file; | ||
552 | if (fread(&a, 1, 1, f) != 1) goto close_file; | ||
553 | a = 0xff; | ||
554 | pal[i] = ARGB_JOIN(a, r, g, b); | ||
555 | } | ||
556 | stride = ((w + 31) / 32); | ||
557 | maskbuf = alloca(stride * h); | ||
558 | pixbuf = alloca(stride * 32 * 4); // more than enough | ||
559 | if (bitcount == 1) | ||
560 | { | ||
561 | pstride = stride * 4; | ||
562 | for (i = 0; i < h; i++) | ||
563 | { | ||
564 | pix = surface + (i * ie->w); | ||
565 | if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w); | ||
566 | if (fread(pixbuf, pstride, 1, f) != 1) goto close_file; | ||
567 | p = pixbuf; | ||
568 | if (i >= (int)ie->h) continue; | ||
569 | for (j = 0; j < w; j++) | ||
570 | { | ||
571 | if (j >= (int)ie->w) break; | ||
572 | if ((j & 0x7) == 0x0) | ||
573 | { | ||
574 | *pix = pal[*p >> 7]; | ||
575 | } | ||
576 | else if ((j & 0x7) == 0x1) | ||
577 | { | ||
578 | *pix = pal[(*p >> 6) & 0x1]; | ||
579 | } | ||
580 | else if ((j & 0x7) == 0x2) | ||
581 | { | ||
582 | *pix = pal[(*p >> 5) & 0x1]; | ||
583 | } | ||
584 | else if ((j & 0x7) == 0x3) | ||
585 | { | ||
586 | *pix = pal[(*p >> 4) & 0x1]; | ||
587 | } | ||
588 | else if ((j & 0x7) == 0x4) | ||
589 | { | ||
590 | *pix = pal[(*p >> 3) & 0x1]; | ||
591 | } | ||
592 | else if ((j & 0x7) == 0x5) | ||
593 | { | ||
594 | *pix = pal[(*p >> 2) & 0x1]; | ||
595 | } | ||
596 | else if ((j & 0x7) == 0x6) | ||
597 | { | ||
598 | *pix = pal[(*p >> 1) & 0x1]; | ||
599 | } | ||
600 | else | ||
601 | { | ||
602 | *pix = pal[*p & 0x1]; | ||
603 | p++; | ||
604 | } | ||
605 | pix++; | ||
606 | } | ||
607 | } | ||
608 | } | ||
609 | else if (bitcount == 4) | ||
610 | { | ||
611 | pstride = ((w + 7) / 8) * 4; | ||
612 | for (i = 0; i < h; i++) | ||
613 | { | ||
614 | pix = surface + (i * ie->w); | ||
615 | if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w); | ||
616 | if (fread(pixbuf, pstride, 1, f) != 1) goto close_file; | ||
617 | p = pixbuf; | ||
618 | if (i >= (int)ie->h) continue; | ||
619 | for (j = 0; j < w; j++) | ||
620 | { | ||
621 | if (j >= (int)ie->w) break; | ||
622 | if ((j & 0x1) == 0x1) | ||
623 | { | ||
624 | *pix = pal[*p & 0x0f]; | ||
625 | p++; | ||
626 | } | ||
627 | else | ||
628 | { | ||
629 | *pix = pal[*p >> 4]; | ||
630 | } | ||
631 | pix++; | ||
632 | } | ||
633 | } | ||
634 | } | ||
635 | else if (bitcount == 8) | ||
636 | { | ||
637 | pstride = ((w + 3) / 4) * 4; | ||
638 | for (i = 0; i < h; i++) | ||
639 | { | ||
640 | pix = surface + (i * ie->w); | ||
641 | if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w); | ||
642 | if (fread(pixbuf, pstride, 1, f) != 1) goto close_file; | ||
643 | p = pixbuf; | ||
644 | if (i >= (int)ie->h) continue; | ||
645 | for (j = 0; j < w; j++) | ||
646 | { | ||
647 | if (j >= (int)ie->w) break; | ||
648 | *pix = pal[*p]; | ||
649 | p++; | ||
650 | pix++; | ||
651 | } | ||
652 | } | ||
653 | } | ||
654 | else if (bitcount == 24) | ||
655 | { | ||
656 | pstride = w * 3; | ||
657 | for (i = 0; i < h; i++) | ||
658 | { | ||
659 | pix = surface + (i * ie->w); | ||
660 | if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w); | ||
661 | if (fread(pixbuf, pstride, 1, f) != 1) goto close_file; | ||
662 | p = pixbuf; | ||
663 | if (i >= (int)ie->h) continue; | ||
664 | for (j = 0; j < w; j++) | ||
665 | { | ||
666 | unsigned char a, r, g, b; | ||
667 | |||
668 | if (j >= (int)ie->w) break; | ||
669 | b = p[0]; | ||
670 | g = p[1]; | ||
671 | r = p[2]; | ||
672 | p += 3; | ||
673 | a = 0xff; | ||
674 | *pix = ARGB_JOIN(a, r, g, b); | ||
675 | pix++; | ||
676 | } | ||
677 | } | ||
678 | } | ||
679 | else if (bitcount == 32) | ||
680 | { | ||
681 | pstride = w * 4; | ||
682 | for (i = 0; i < h; i++) | ||
683 | { | ||
684 | pix = surface + (i * ie->w); | ||
685 | if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w); | ||
686 | if (fread(pixbuf, pstride, 1, f) != 1) goto close_file; | ||
687 | p = pixbuf; | ||
688 | if (i >= (int)ie->h) continue; | ||
689 | for (j = 0; j < w; j++) | ||
690 | { | ||
691 | unsigned char a, r, g, b; | ||
692 | |||
693 | if (j >= (int)ie->w) break; | ||
694 | b = p[0]; | ||
695 | g = p[1]; | ||
696 | r = p[2]; | ||
697 | a = p[3]; | ||
698 | p += 4; | ||
699 | if (a) none_zero_alpha = 1; | ||
700 | *pix = ARGB_JOIN(a, r, g, b); | ||
701 | pix++; | ||
702 | } | ||
703 | } | ||
704 | } | ||
705 | if (!none_zero_alpha) | ||
706 | { | ||
707 | if (fread(maskbuf, stride * 4 * h, 1, f) != 1) goto close_file; | ||
708 | // apply mask | ||
709 | pix = surface; | ||
710 | for (i = 0; i < h; i++) | ||
711 | { | ||
712 | unsigned char *m; | ||
713 | |||
714 | pix = surface + (i * ie->w); | ||
715 | if (!right_way_up) pix = surface + ((ie->h - 1 - i) * ie->w); | ||
716 | m = maskbuf + (stride * i * 4); | ||
717 | if (i >= (int)ie->h) continue; | ||
718 | for (j = 0; j < w; j++) | ||
719 | { | ||
720 | if (j >= (int)ie->w) break; | ||
721 | if (*m & (1 << (7 - (j & 0x7)))) | ||
722 | A_VAL(pix) = 0x00; | ||
723 | else | ||
724 | A_VAL(pix) = 0xff; | ||
725 | if ((j & 0x7) == 0x7) m++; | ||
726 | pix++; | ||
727 | } | ||
728 | } | ||
729 | } | ||
730 | |||
731 | fclose(f); | ||
732 | |||
733 | evas_common_image_premul(ie); | ||
734 | *error = EVAS_LOAD_ERROR_NONE; | ||
735 | return EINA_TRUE; | ||
736 | |||
737 | close_file: | ||
738 | fclose(f); | ||
739 | return EINA_FALSE; | ||
740 | } | ||
741 | |||
742 | static int | ||
743 | module_open(Evas_Module *em) | ||
744 | { | ||
745 | if (!em) return 0; | ||
746 | em->functions = (void *)(&evas_image_load_ico_func); | ||
747 | return 1; | ||
748 | } | ||
749 | |||
750 | static void | ||
751 | module_close(Evas_Module *em __UNUSED__) | ||
752 | { | ||
753 | } | ||
754 | |||
755 | static Evas_Module_Api evas_modapi = | ||
756 | { | ||
757 | EVAS_MODULE_API_VERSION, | ||
758 | "ico", | ||
759 | "none", | ||
760 | { | ||
761 | module_open, | ||
762 | module_close | ||
763 | } | ||
764 | }; | ||
765 | |||
766 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, ico); | ||
767 | |||
768 | #ifndef EVAS_STATIC_BUILD_ICO | ||
769 | EVAS_EINA_MODULE_DEFINE(image_loader, ico); | ||
770 | #endif | ||