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/xpm | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/evas/src/modules/loaders/xpm')
-rw-r--r-- | libraries/evas/src/modules/loaders/xpm/Makefile.am | 37 | ||||
-rw-r--r-- | libraries/evas/src/modules/loaders/xpm/Makefile.in | 760 | ||||
-rw-r--r-- | libraries/evas/src/modules/loaders/xpm/evas_image_load_xpm.c | 691 |
3 files changed, 1488 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/loaders/xpm/Makefile.am b/libraries/evas/src/modules/loaders/xpm/Makefile.am new file mode 100644 index 0000000..b8cb1fa --- /dev/null +++ b/libraries/evas/src/modules/loaders/xpm/Makefile.am | |||
@@ -0,0 +1,37 @@ | |||
1 | |||
2 | MAINTAINERCLEANFILES = Makefile.in | ||
3 | |||
4 | AM_CPPFLAGS = \ | ||
5 | -I. \ | ||
6 | -I$(top_srcdir)/src/lib \ | ||
7 | -I$(top_srcdir)/src/lib/include \ | ||
8 | @FREETYPE_CFLAGS@ \ | ||
9 | @PIXMAN_CFLAGS@ \ | ||
10 | @EINA_CFLAGS@ \ | ||
11 | @evas_image_loader_xpm_cflags@ \ | ||
12 | @EVIL_CFLAGS@ \ | ||
13 | @WIN32_CPPFLAGS@ | ||
14 | |||
15 | AM_CFLAGS = @WIN32_CFLAGS@ | ||
16 | |||
17 | if BUILD_LOADER_XPM | ||
18 | if !EVAS_STATIC_BUILD_XPM | ||
19 | pkgdir = $(libdir)/evas/modules/loaders/xpm/$(MODULE_ARCH) | ||
20 | |||
21 | pkg_LTLIBRARIES = module.la | ||
22 | |||
23 | module_la_SOURCES = evas_image_load_xpm.c | ||
24 | |||
25 | module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ @evas_image_loader_xpm_libs@ $(top_builddir)/src/lib/libevas.la | ||
26 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
27 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
28 | |||
29 | else | ||
30 | |||
31 | noinst_LTLIBRARIES = libevas_loader_xpm.la | ||
32 | |||
33 | libevas_loader_xpm_la_SOURCES = evas_image_load_xpm.c | ||
34 | libevas_loader_xpm_la_LIBADD = @evas_image_loader_xpm_libs@ | ||
35 | |||
36 | endif | ||
37 | endif | ||
diff --git a/libraries/evas/src/modules/loaders/xpm/Makefile.in b/libraries/evas/src/modules/loaders/xpm/Makefile.in new file mode 100644 index 0000000..eba8f60 --- /dev/null +++ b/libraries/evas/src/modules/loaders/xpm/Makefile.in | |||
@@ -0,0 +1,760 @@ | |||
1 | # Makefile.in generated by automake 1.11.1 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | ||
6 | # Inc. | ||
7 | # This Makefile.in is free software; the Free Software Foundation | ||
8 | # gives unlimited permission to copy and/or distribute it, | ||
9 | # with or without modifications, as long as this notice is preserved. | ||
10 | |||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
13 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
14 | # PARTICULAR PURPOSE. | ||
15 | |||
16 | @SET_MAKE@ | ||
17 | |||
18 | VPATH = @srcdir@ | ||
19 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
20 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
21 | pkglibdir = $(libdir)/@PACKAGE@ | ||
22 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
23 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
24 | install_sh_DATA = $(install_sh) -c -m 644 | ||
25 | install_sh_PROGRAM = $(install_sh) -c | ||
26 | install_sh_SCRIPT = $(install_sh) -c | ||
27 | INSTALL_HEADER = $(INSTALL_DATA) | ||
28 | transform = $(program_transform_name) | ||
29 | NORMAL_INSTALL = : | ||
30 | PRE_INSTALL = : | ||
31 | POST_INSTALL = : | ||
32 | NORMAL_UNINSTALL = : | ||
33 | PRE_UNINSTALL = : | ||
34 | POST_UNINSTALL = : | ||
35 | build_triplet = @build@ | ||
36 | host_triplet = @host@ | ||
37 | subdir = src/modules/loaders/xpm | ||
38 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
39 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
40 | am__aclocal_m4_deps = $(top_srcdir)/m4/efl_attribute.m4 \ | ||
41 | $(top_srcdir)/m4/efl_coverage.m4 \ | ||
42 | $(top_srcdir)/m4/efl_doxygen.m4 \ | ||
43 | $(top_srcdir)/m4/efl_fnmatch.m4 \ | ||
44 | $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \ | ||
45 | $(top_srcdir)/m4/evas_check_engine.m4 \ | ||
46 | $(top_srcdir)/m4/evas_check_loader.m4 \ | ||
47 | $(top_srcdir)/m4/evas_converter.m4 \ | ||
48 | $(top_srcdir)/m4/evas_dither.m4 \ | ||
49 | $(top_srcdir)/m4/evas_scaler.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
50 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | ||
51 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | ||
52 | $(top_srcdir)/configure.ac | ||
53 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
54 | $(ACLOCAL_M4) | ||
55 | mkinstalldirs = $(install_sh) -d | ||
56 | CONFIG_HEADER = $(top_builddir)/config.h | ||
57 | CONFIG_CLEAN_FILES = | ||
58 | CONFIG_CLEAN_VPATH_FILES = | ||
59 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
60 | am__vpath_adj = case $$p in \ | ||
61 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
62 | *) f=$$p;; \ | ||
63 | esac; | ||
64 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
65 | am__install_max = 40 | ||
66 | am__nobase_strip_setup = \ | ||
67 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
68 | am__nobase_strip = \ | ||
69 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
70 | am__nobase_list = $(am__nobase_strip_setup); \ | ||
71 | for p in $$list; do echo "$$p $$p"; done | \ | ||
72 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | ||
73 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | ||
74 | if (++n[$$2] == $(am__install_max)) \ | ||
75 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | ||
76 | END { for (dir in files) print dir, files[dir] }' | ||
77 | am__base_list = \ | ||
78 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
79 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
80 | am__installdirs = "$(DESTDIR)$(pkgdir)" | ||
81 | LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkg_LTLIBRARIES) | ||
82 | libevas_loader_xpm_la_DEPENDENCIES = | ||
83 | am__libevas_loader_xpm_la_SOURCES_DIST = evas_image_load_xpm.c | ||
84 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_TRUE@am_libevas_loader_xpm_la_OBJECTS = evas_image_load_xpm.lo | ||
85 | libevas_loader_xpm_la_OBJECTS = $(am_libevas_loader_xpm_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_TRUE@am_libevas_loader_xpm_la_rpath = | ||
90 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@module_la_DEPENDENCIES = $(top_builddir)/src/lib/libevas.la | ||
91 | am__module_la_SOURCES_DIST = evas_image_load_xpm.c | ||
92 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@am_module_la_OBJECTS = module_la-evas_image_load_xpm.lo | ||
93 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
94 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
95 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
96 | $(AM_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
97 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@am_module_la_rpath = \ | ||
98 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@ -rpath \ | ||
99 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@ $(pkgdir) | ||
100 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
101 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
102 | am__depfiles_maybe = depfiles | ||
103 | am__mv = mv -f | ||
104 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
105 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
106 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
107 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
108 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
109 | $(AM_CFLAGS) $(CFLAGS) | ||
110 | AM_V_CC = $(am__v_CC_$(V)) | ||
111 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
112 | am__v_CC_0 = @echo " CC " $@; | ||
113 | AM_V_at = $(am__v_at_$(V)) | ||
114 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_at_0 = @ | ||
116 | CCLD = $(CC) | ||
117 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
118 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
119 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
120 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
121 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
122 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
123 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
124 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
125 | am__v_GEN_0 = @echo " GEN " $@; | ||
126 | SOURCES = $(libevas_loader_xpm_la_SOURCES) $(module_la_SOURCES) | ||
127 | DIST_SOURCES = $(am__libevas_loader_xpm_la_SOURCES_DIST) \ | ||
128 | $(am__module_la_SOURCES_DIST) | ||
129 | ETAGS = etags | ||
130 | CTAGS = ctags | ||
131 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
132 | ACLOCAL = @ACLOCAL@ | ||
133 | ALLOCA = @ALLOCA@ | ||
134 | AMTAR = @AMTAR@ | ||
135 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
136 | AR = @AR@ | ||
137 | AS = @AS@ | ||
138 | AUTOCONF = @AUTOCONF@ | ||
139 | AUTOHEADER = @AUTOHEADER@ | ||
140 | AUTOMAKE = @AUTOMAKE@ | ||
141 | AWK = @AWK@ | ||
142 | CC = @CC@ | ||
143 | CCDEPMODE = @CCDEPMODE@ | ||
144 | CFLAGS = @CFLAGS@ | ||
145 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
146 | CHECK_LIBS = @CHECK_LIBS@ | ||
147 | CPP = @CPP@ | ||
148 | CPPFLAGS = @CPPFLAGS@ | ||
149 | CXX = @CXX@ | ||
150 | CXXCPP = @CXXCPP@ | ||
151 | CXXDEPMODE = @CXXDEPMODE@ | ||
152 | CXXFLAGS = @CXXFLAGS@ | ||
153 | CYGPATH_W = @CYGPATH_W@ | ||
154 | DEFS = @DEFS@ | ||
155 | DEPDIR = @DEPDIR@ | ||
156 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
157 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
158 | DLLTOOL = @DLLTOOL@ | ||
159 | DSYMUTIL = @DSYMUTIL@ | ||
160 | DUMPBIN = @DUMPBIN@ | ||
161 | ECHO_C = @ECHO_C@ | ||
162 | ECHO_N = @ECHO_N@ | ||
163 | ECHO_T = @ECHO_T@ | ||
164 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
165 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
166 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
167 | EDB_LIBS = @EDB_LIBS@ | ||
168 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
169 | EDJE_LIBS = @EDJE_LIBS@ | ||
170 | EET_CFLAGS = @EET_CFLAGS@ | ||
171 | EET_LIBS = @EET_LIBS@ | ||
172 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
173 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
174 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
175 | EGREP = @EGREP@ | ||
176 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
177 | EINA_LIBS = @EINA_LIBS@ | ||
178 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
179 | EVAS_LIBS = @EVAS_LIBS@ | ||
180 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
181 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
182 | EVIL_LIBS = @EVIL_LIBS@ | ||
183 | EXEEXT = @EXEEXT@ | ||
184 | 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 | @evas_image_loader_xpm_cflags@ \ | ||
416 | @EVIL_CFLAGS@ \ | ||
417 | @WIN32_CPPFLAGS@ | ||
418 | |||
419 | AM_CFLAGS = @WIN32_CFLAGS@ | ||
420 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@pkgdir = $(libdir)/evas/modules/loaders/xpm/$(MODULE_ARCH) | ||
421 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@pkg_LTLIBRARIES = module.la | ||
422 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@module_la_SOURCES = evas_image_load_xpm.c | ||
423 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@module_la_LIBADD = @EINA_LIBS@ @EVIL_LIBS@ @evas_image_loader_xpm_libs@ $(top_builddir)/src/lib/libevas.la | ||
424 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
425 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_FALSE@module_la_LIBTOOLFLAGS = --tag=disable-static | ||
426 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_TRUE@noinst_LTLIBRARIES = libevas_loader_xpm.la | ||
427 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_TRUE@libevas_loader_xpm_la_SOURCES = evas_image_load_xpm.c | ||
428 | @BUILD_LOADER_XPM_TRUE@@EVAS_STATIC_BUILD_XPM_TRUE@libevas_loader_xpm_la_LIBADD = @evas_image_loader_xpm_libs@ | ||
429 | all: all-am | ||
430 | |||
431 | .SUFFIXES: | ||
432 | .SUFFIXES: .c .lo .o .obj | ||
433 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
434 | @for dep in $?; do \ | ||
435 | case '$(am__configure_deps)' in \ | ||
436 | *$$dep*) \ | ||
437 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
438 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
439 | exit 1;; \ | ||
440 | esac; \ | ||
441 | done; \ | ||
442 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/loaders/xpm/Makefile'; \ | ||
443 | $(am__cd) $(top_srcdir) && \ | ||
444 | $(AUTOMAKE) --gnu src/modules/loaders/xpm/Makefile | ||
445 | .PRECIOUS: Makefile | ||
446 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
447 | @case '$?' in \ | ||
448 | *config.status*) \ | ||
449 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
450 | *) \ | ||
451 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
452 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
453 | esac; | ||
454 | |||
455 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
456 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
457 | |||
458 | $(top_srcdir)/configure: $(am__configure_deps) | ||
459 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
460 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
461 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
462 | $(am__aclocal_m4_deps): | ||
463 | |||
464 | clean-noinstLTLIBRARIES: | ||
465 | -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) | ||
466 | @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ | ||
467 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
468 | test "$$dir" != "$$p" || dir=.; \ | ||
469 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
470 | rm -f "$${dir}/so_locations"; \ | ||
471 | done | ||
472 | install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES) | ||
473 | @$(NORMAL_INSTALL) | ||
474 | test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)" | ||
475 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
476 | list2=; for p in $$list; do \ | ||
477 | if test -f $$p; then \ | ||
478 | list2="$$list2 $$p"; \ | ||
479 | else :; fi; \ | ||
480 | done; \ | ||
481 | test -z "$$list2" || { \ | ||
482 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \ | ||
483 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \ | ||
484 | } | ||
485 | |||
486 | uninstall-pkgLTLIBRARIES: | ||
487 | @$(NORMAL_UNINSTALL) | ||
488 | @list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \ | ||
489 | for p in $$list; do \ | ||
490 | $(am__strip_dir) \ | ||
491 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkgdir)/$$f'"; \ | ||
492 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkgdir)/$$f"; \ | ||
493 | done | ||
494 | |||
495 | clean-pkgLTLIBRARIES: | ||
496 | -test -z "$(pkg_LTLIBRARIES)" || rm -f $(pkg_LTLIBRARIES) | ||
497 | @list='$(pkg_LTLIBRARIES)'; for p in $$list; do \ | ||
498 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
499 | test "$$dir" != "$$p" || dir=.; \ | ||
500 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
501 | rm -f "$${dir}/so_locations"; \ | ||
502 | done | ||
503 | libevas_loader_xpm.la: $(libevas_loader_xpm_la_OBJECTS) $(libevas_loader_xpm_la_DEPENDENCIES) | ||
504 | $(AM_V_CCLD)$(LINK) $(am_libevas_loader_xpm_la_rpath) $(libevas_loader_xpm_la_OBJECTS) $(libevas_loader_xpm_la_LIBADD) $(LIBS) | ||
505 | module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES) | ||
506 | $(AM_V_CCLD)$(module_la_LINK) $(am_module_la_rpath) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS) | ||
507 | |||
508 | mostlyclean-compile: | ||
509 | -rm -f *.$(OBJEXT) | ||
510 | |||
511 | distclean-compile: | ||
512 | -rm -f *.tab.c | ||
513 | |||
514 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/evas_image_load_xpm.Plo@am__quote@ | ||
515 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-evas_image_load_xpm.Plo@am__quote@ | ||
516 | |||
517 | .c.o: | ||
518 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
519 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
520 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
521 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
522 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
523 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
524 | |||
525 | .c.obj: | ||
526 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
527 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
528 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
529 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
530 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
531 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
532 | |||
533 | .c.lo: | ||
534 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
535 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
536 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
537 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
538 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
539 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
540 | |||
541 | module_la-evas_image_load_xpm.lo: evas_image_load_xpm.c | ||
542 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT module_la-evas_image_load_xpm.lo -MD -MP -MF $(DEPDIR)/module_la-evas_image_load_xpm.Tpo -c -o module_la-evas_image_load_xpm.lo `test -f 'evas_image_load_xpm.c' || echo '$(srcdir)/'`evas_image_load_xpm.c | ||
543 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-evas_image_load_xpm.Tpo $(DEPDIR)/module_la-evas_image_load_xpm.Plo | ||
544 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
545 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='evas_image_load_xpm.c' object='module_la-evas_image_load_xpm.lo' libtool=yes @AMDEPBACKSLASH@ | ||
546 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
547 | @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o module_la-evas_image_load_xpm.lo `test -f 'evas_image_load_xpm.c' || echo '$(srcdir)/'`evas_image_load_xpm.c | ||
548 | |||
549 | mostlyclean-libtool: | ||
550 | -rm -f *.lo | ||
551 | |||
552 | clean-libtool: | ||
553 | -rm -rf .libs _libs | ||
554 | |||
555 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
556 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
557 | unique=`for i in $$list; do \ | ||
558 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
559 | done | \ | ||
560 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
561 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
562 | mkid -fID $$unique | ||
563 | tags: TAGS | ||
564 | |||
565 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
566 | $(TAGS_FILES) $(LISP) | ||
567 | set x; \ | ||
568 | here=`pwd`; \ | ||
569 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
570 | unique=`for i in $$list; do \ | ||
571 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
572 | done | \ | ||
573 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
574 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
575 | shift; \ | ||
576 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
577 | test -n "$$unique" || unique=$$empty_fix; \ | ||
578 | if test $$# -gt 0; then \ | ||
579 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
580 | "$$@" $$unique; \ | ||
581 | else \ | ||
582 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
583 | $$unique; \ | ||
584 | fi; \ | ||
585 | fi | ||
586 | ctags: CTAGS | ||
587 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
588 | $(TAGS_FILES) $(LISP) | ||
589 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
590 | unique=`for i in $$list; do \ | ||
591 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
592 | done | \ | ||
593 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
594 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
595 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
596 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
597 | $$unique | ||
598 | |||
599 | GTAGS: | ||
600 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
601 | && $(am__cd) $(top_srcdir) \ | ||
602 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
603 | |||
604 | distclean-tags: | ||
605 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
606 | |||
607 | distdir: $(DISTFILES) | ||
608 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
609 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
610 | list='$(DISTFILES)'; \ | ||
611 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
612 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
613 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
614 | case $$dist_files in \ | ||
615 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
616 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
617 | sort -u` ;; \ | ||
618 | esac; \ | ||
619 | for file in $$dist_files; do \ | ||
620 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
621 | if test -d $$d/$$file; then \ | ||
622 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
623 | if test -d "$(distdir)/$$file"; then \ | ||
624 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
625 | fi; \ | ||
626 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
627 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
628 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
629 | fi; \ | ||
630 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
631 | else \ | ||
632 | test -f "$(distdir)/$$file" \ | ||
633 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
634 | || exit 1; \ | ||
635 | fi; \ | ||
636 | done | ||
637 | check-am: all-am | ||
638 | check: check-am | ||
639 | all-am: Makefile $(LTLIBRARIES) | ||
640 | installdirs: | ||
641 | for dir in "$(DESTDIR)$(pkgdir)"; do \ | ||
642 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
643 | done | ||
644 | install: install-am | ||
645 | install-exec: install-exec-am | ||
646 | install-data: install-data-am | ||
647 | uninstall: uninstall-am | ||
648 | |||
649 | install-am: all-am | ||
650 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
651 | |||
652 | installcheck: installcheck-am | ||
653 | install-strip: | ||
654 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
655 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
656 | `test -z '$(STRIP)' || \ | ||
657 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
658 | mostlyclean-generic: | ||
659 | |||
660 | clean-generic: | ||
661 | |||
662 | distclean-generic: | ||
663 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
664 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
665 | |||
666 | maintainer-clean-generic: | ||
667 | @echo "This command is intended for maintainers to use" | ||
668 | @echo "it deletes files that may require special tools to rebuild." | ||
669 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
670 | clean: clean-am | ||
671 | |||
672 | clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ | ||
673 | clean-pkgLTLIBRARIES mostlyclean-am | ||
674 | |||
675 | distclean: distclean-am | ||
676 | -rm -rf ./$(DEPDIR) | ||
677 | -rm -f Makefile | ||
678 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
679 | distclean-tags | ||
680 | |||
681 | dvi: dvi-am | ||
682 | |||
683 | dvi-am: | ||
684 | |||
685 | html: html-am | ||
686 | |||
687 | html-am: | ||
688 | |||
689 | info: info-am | ||
690 | |||
691 | info-am: | ||
692 | |||
693 | install-data-am: install-pkgLTLIBRARIES | ||
694 | |||
695 | install-dvi: install-dvi-am | ||
696 | |||
697 | install-dvi-am: | ||
698 | |||
699 | install-exec-am: | ||
700 | |||
701 | install-html: install-html-am | ||
702 | |||
703 | install-html-am: | ||
704 | |||
705 | install-info: install-info-am | ||
706 | |||
707 | install-info-am: | ||
708 | |||
709 | install-man: | ||
710 | |||
711 | install-pdf: install-pdf-am | ||
712 | |||
713 | install-pdf-am: | ||
714 | |||
715 | install-ps: install-ps-am | ||
716 | |||
717 | install-ps-am: | ||
718 | |||
719 | installcheck-am: | ||
720 | |||
721 | maintainer-clean: maintainer-clean-am | ||
722 | -rm -rf ./$(DEPDIR) | ||
723 | -rm -f Makefile | ||
724 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
725 | |||
726 | mostlyclean: mostlyclean-am | ||
727 | |||
728 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
729 | mostlyclean-libtool | ||
730 | |||
731 | pdf: pdf-am | ||
732 | |||
733 | pdf-am: | ||
734 | |||
735 | ps: ps-am | ||
736 | |||
737 | ps-am: | ||
738 | |||
739 | uninstall-am: uninstall-pkgLTLIBRARIES | ||
740 | |||
741 | .MAKE: install-am install-strip | ||
742 | |||
743 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
744 | clean-libtool clean-noinstLTLIBRARIES clean-pkgLTLIBRARIES \ | ||
745 | ctags distclean distclean-compile distclean-generic \ | ||
746 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
747 | html-am info info-am install install-am install-data \ | ||
748 | install-data-am install-dvi install-dvi-am install-exec \ | ||
749 | install-exec-am install-html install-html-am install-info \ | ||
750 | install-info-am install-man install-pdf install-pdf-am \ | ||
751 | install-pkgLTLIBRARIES install-ps install-ps-am install-strip \ | ||
752 | installcheck installcheck-am installdirs maintainer-clean \ | ||
753 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
754 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
755 | tags uninstall uninstall-am uninstall-pkgLTLIBRARIES | ||
756 | |||
757 | |||
758 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
759 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
760 | .NOEXPORT: | ||
diff --git a/libraries/evas/src/modules/loaders/xpm/evas_image_load_xpm.c b/libraries/evas/src/modules/loaders/xpm/evas_image_load_xpm.c new file mode 100644 index 0000000..3a04f84 --- /dev/null +++ b/libraries/evas/src/modules/loaders/xpm/evas_image_load_xpm.c | |||
@@ -0,0 +1,691 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include <config.h> | ||
3 | #endif | ||
4 | |||
5 | #ifdef HAVE_EVIL | ||
6 | # include <Evil.h> | ||
7 | #endif | ||
8 | |||
9 | #include "evas_common.h" | ||
10 | #include "evas_private.h" | ||
11 | |||
12 | static int _evas_loader_xpm_log_dom = -1; | ||
13 | |||
14 | #ifdef ERR | ||
15 | # undef ERR | ||
16 | #endif | ||
17 | #define ERR(...) EINA_LOG_DOM_ERR(_evas_loader_xpm_log_dom, __VA_ARGS__) | ||
18 | |||
19 | static Eina_Bool evas_image_load_file_head_xpm(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
20 | static Eina_Bool evas_image_load_file_data_xpm(Image_Entry *ie, const char *file, const char *key, int *error) EINA_ARG_NONNULL(1, 2, 4); | ||
21 | |||
22 | static Evas_Image_Load_Func evas_image_load_xpm_func = | ||
23 | { | ||
24 | EINA_FALSE, | ||
25 | evas_image_load_file_head_xpm, | ||
26 | evas_image_load_file_data_xpm, | ||
27 | NULL | ||
28 | }; | ||
29 | |||
30 | // TODO: REWRITE THIS WITH THREAD SAFE VERSION NOT USING THIS HANDLE!!!! | ||
31 | static FILE *rgb_txt = NULL; | ||
32 | |||
33 | static void | ||
34 | xpm_parse_color(char *color, int *r, int *g, int *b) | ||
35 | { | ||
36 | char buf[4096]; | ||
37 | |||
38 | /* is a #ff00ff like color */ | ||
39 | if (color[0] == '#') | ||
40 | { | ||
41 | int len; | ||
42 | char val[32]; | ||
43 | |||
44 | len = strlen(color) - 1; | ||
45 | if (len < 96) | ||
46 | { | ||
47 | int i; | ||
48 | |||
49 | len /= 3; | ||
50 | for (i = 0; i < len; i++) | ||
51 | val[i] = color[1 + i + (0 * len)]; | ||
52 | val[i] = 0; | ||
53 | sscanf(val, "%x", r); | ||
54 | for (i = 0; i < len; i++) | ||
55 | val[i] = color[1 + i + (1 * len)]; | ||
56 | val[i] = 0; | ||
57 | sscanf(val, "%x", g); | ||
58 | for (i = 0; i < len; i++) | ||
59 | val[i] = color[1 + i + (2 * len)]; | ||
60 | val[i] = 0; | ||
61 | sscanf(val, "%x", b); | ||
62 | if (len == 1) | ||
63 | { | ||
64 | *r = (*r << 4) | *r; | ||
65 | *g = (*g << 4) | *g; | ||
66 | *b = (*b << 4) | *b; | ||
67 | } | ||
68 | else if (len > 2) | ||
69 | { | ||
70 | *r >>= (len - 2) * 4; | ||
71 | *g >>= (len - 2) * 4; | ||
72 | *b >>= (len - 2) * 4; | ||
73 | } | ||
74 | } | ||
75 | return; | ||
76 | } | ||
77 | /* look in rgb txt database */ | ||
78 | if (!rgb_txt) rgb_txt = fopen("/usr/lib/X11/rgb.txt", "r"); | ||
79 | if (!rgb_txt) rgb_txt = fopen("/usr/X11/lib/X11/rgb.txt", "r"); | ||
80 | if (!rgb_txt) rgb_txt = fopen("/usr/X11R6/lib/X11/rgb.txt", "r"); | ||
81 | if (!rgb_txt) rgb_txt = fopen("/usr/openwin/lib/X11/rgb.txt", "r"); | ||
82 | if (!rgb_txt) return; | ||
83 | fseek(rgb_txt, 0, SEEK_SET); | ||
84 | while (fgets(buf, sizeof(buf), rgb_txt)) | ||
85 | { | ||
86 | buf[sizeof(buf) - 1] = 0; | ||
87 | if (buf[0] != '!') | ||
88 | { | ||
89 | int rr, gg, bb; | ||
90 | char name[4096]; | ||
91 | |||
92 | if (sscanf(buf, "%i %i %i %[^\n]", &rr, &gg, &bb, name) == 4) | ||
93 | { | ||
94 | if (!strcasecmp(name, color)) | ||
95 | { | ||
96 | *r = rr; | ||
97 | *g = gg; | ||
98 | *b = bb; | ||
99 | return; | ||
100 | } | ||
101 | } | ||
102 | } | ||
103 | } | ||
104 | } | ||
105 | |||
106 | static void | ||
107 | xpm_parse_done(void) | ||
108 | { | ||
109 | if (rgb_txt) fclose(rgb_txt); | ||
110 | rgb_txt = NULL; | ||
111 | } | ||
112 | |||
113 | |||
114 | /** FIXME: clean this up and make more efficient **/ | ||
115 | static Eina_Bool | ||
116 | evas_image_load_file_xpm(Image_Entry *ie, const char *file, const char *key __UNUSED__, int load_data, int *error) | ||
117 | { | ||
118 | DATA32 *ptr, *end; | ||
119 | FILE *f; | ||
120 | |||
121 | int pc, c, i, j, k, w, h, ncolors, cpp, comment, transp, | ||
122 | quote, context, len, done, r, g, b, backslash, lu1, lu2; | ||
123 | char *line, s[256], tok[128], col[256], *tl; | ||
124 | int lsz = 256; | ||
125 | struct _cmap { | ||
126 | char str[6]; | ||
127 | unsigned char transp; | ||
128 | short r, g, b; | ||
129 | } *cmap; | ||
130 | |||
131 | short lookup[128 - 32][128 - 32]; | ||
132 | int count, pixels; | ||
133 | |||
134 | done = 0; | ||
135 | // transp = -1; | ||
136 | transp = 1; | ||
137 | |||
138 | /* if immediate_load is 1, then dont delay image laoding as below, or */ | ||
139 | /* already data in this image - dont load it again */ | ||
140 | |||
141 | f = fopen(file, "rb"); | ||
142 | if (!f) | ||
143 | { | ||
144 | xpm_parse_done(); | ||
145 | *error = EVAS_LOAD_ERROR_DOES_NOT_EXIST; | ||
146 | return EINA_FALSE; | ||
147 | } | ||
148 | if (fread(s, 9, 1, f) != 1) | ||
149 | { | ||
150 | fclose(f); | ||
151 | xpm_parse_done(); | ||
152 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
153 | return EINA_FALSE; | ||
154 | } | ||
155 | rewind(f); | ||
156 | s[9] = 0; | ||
157 | if (strcmp("/* XPM */", s)) | ||
158 | { | ||
159 | fclose(f); | ||
160 | xpm_parse_done(); | ||
161 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
162 | return EINA_FALSE; | ||
163 | } | ||
164 | |||
165 | i = 0; | ||
166 | j = 0; | ||
167 | cmap = NULL; | ||
168 | w = 10; | ||
169 | h = 10; | ||
170 | ptr = NULL; | ||
171 | end = NULL; | ||
172 | c = ' '; | ||
173 | comment = 0; | ||
174 | quote = 0; | ||
175 | context = 0; | ||
176 | pixels = 0; | ||
177 | count = 0; | ||
178 | line = malloc(lsz); | ||
179 | if (!line) | ||
180 | { | ||
181 | fclose(f); | ||
182 | xpm_parse_done(); | ||
183 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
184 | return EINA_FALSE; | ||
185 | } | ||
186 | |||
187 | backslash = 0; | ||
188 | memset(lookup, 0, sizeof(lookup)); | ||
189 | while (!done) | ||
190 | { | ||
191 | pc = c; | ||
192 | c = fgetc(f); | ||
193 | if (c == EOF) break; | ||
194 | if (!quote) | ||
195 | { | ||
196 | if ((pc == '/') && (c == '*')) | ||
197 | comment = 1; | ||
198 | else if ((pc == '*') && (c == '/') && (comment)) | ||
199 | comment = 0; | ||
200 | } | ||
201 | if (!comment) | ||
202 | { | ||
203 | if ((!quote) && (c == '"')) | ||
204 | { | ||
205 | quote = 1; | ||
206 | i = 0; | ||
207 | } | ||
208 | else if ((quote) && (c == '"')) | ||
209 | { | ||
210 | line[i] = 0; | ||
211 | quote = 0; | ||
212 | if (context == 0) | ||
213 | { | ||
214 | /* Header */ | ||
215 | if (sscanf(line, "%i %i %i %i", &w, &h, &ncolors, &cpp) != 4) | ||
216 | { | ||
217 | ERR("XPM ERROR: XPM file malformed header"); | ||
218 | free(line); | ||
219 | fclose(f); | ||
220 | xpm_parse_done(); | ||
221 | *error = EVAS_LOAD_ERROR_CORRUPT_FILE; | ||
222 | return EINA_FALSE; | ||
223 | } | ||
224 | if ((ncolors > 32766) || (ncolors < 1)) | ||
225 | { | ||
226 | ERR("XPM ERROR: XPM files with colors > 32766 or < 1 not supported"); | ||
227 | free(line); | ||
228 | fclose(f); | ||
229 | xpm_parse_done(); | ||
230 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
231 | return EINA_FALSE; | ||
232 | } | ||
233 | if ((cpp > 5) || (cpp < 1)) | ||
234 | { | ||
235 | ERR("XPM ERROR: XPM files with characters per pixel > 5 or < 1not supported"); | ||
236 | free(line); | ||
237 | fclose(f); | ||
238 | xpm_parse_done(); | ||
239 | *error = EVAS_LOAD_ERROR_UNKNOWN_FORMAT; | ||
240 | return EINA_FALSE; | ||
241 | } | ||
242 | if ((w > IMG_MAX_SIZE) || (w < 1)) | ||
243 | { | ||
244 | ERR("XPM ERROR: Image width > IMG_MAX_SIZE or < 1 pixels for file"); | ||
245 | free(line); | ||
246 | fclose(f); | ||
247 | xpm_parse_done(); | ||
248 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
249 | return EINA_FALSE; | ||
250 | } | ||
251 | if ((h > IMG_MAX_SIZE) || (h < 1)) | ||
252 | { | ||
253 | ERR("XPM ERROR: Image height > IMG_MAX_SIZE or < 1 pixels for file"); | ||
254 | free(line); | ||
255 | fclose(f); | ||
256 | xpm_parse_done(); | ||
257 | *error = EVAS_LOAD_ERROR_GENERIC; | ||
258 | return EINA_FALSE; | ||
259 | } | ||
260 | if (IMG_TOO_BIG(w, h)) | ||
261 | { | ||
262 | ERR("XPM ERROR: Image just too big to ever allocate"); | ||
263 | free(line); | ||
264 | fclose(f); | ||
265 | xpm_parse_done(); | ||
266 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
267 | return EINA_FALSE; | ||
268 | } | ||
269 | |||
270 | if (!cmap) | ||
271 | { | ||
272 | cmap = malloc(sizeof(struct _cmap) * ncolors); | ||
273 | if (!cmap) | ||
274 | { | ||
275 | free(line); | ||
276 | fclose(f); | ||
277 | xpm_parse_done(); | ||
278 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
279 | return EINA_FALSE; | ||
280 | } | ||
281 | } | ||
282 | ie->w = w; | ||
283 | ie->h = h; | ||
284 | |||
285 | j = 0; | ||
286 | context++; | ||
287 | } | ||
288 | else if (context == 1) | ||
289 | { | ||
290 | /* Color Table */ | ||
291 | if (j < ncolors) | ||
292 | { | ||
293 | int slen; | ||
294 | int hascolor, iscolor; | ||
295 | |||
296 | iscolor = 0; | ||
297 | hascolor = 0; | ||
298 | tok[0] = 0; | ||
299 | col[0] = 0; | ||
300 | s[0] = 0; | ||
301 | len = strlen(line); | ||
302 | strncpy(cmap[j].str, line, cpp); | ||
303 | cmap[j].str[cpp] = 0; | ||
304 | for (slen = 0; slen < cpp; slen++) | ||
305 | { | ||
306 | /* fix the ascii of the color string - if its < 32 - just limit to 32 */ | ||
307 | if (cmap[j].str[slen] < 32) cmap[j].str[slen] = 0; | ||
308 | } | ||
309 | cmap[j].r = -1; | ||
310 | cmap[j].transp = 0; | ||
311 | for (k = cpp; k < len; k++) | ||
312 | { | ||
313 | if (line[k] != ' ') | ||
314 | { | ||
315 | s[0] = 0; | ||
316 | sscanf(&line[k], "%255s", s); | ||
317 | slen = strlen(s); | ||
318 | k += slen; | ||
319 | if (!strcmp(s, "c")) iscolor = 1; | ||
320 | if ((!strcmp(s, "m")) || (!strcmp(s, "s")) | ||
321 | || (!strcmp(s, "g4")) || (!strcmp(s, "g")) | ||
322 | || (!strcmp(s, "c")) || (k >= len)) | ||
323 | { | ||
324 | if (k >= len) | ||
325 | { | ||
326 | if (col[0]) | ||
327 | { | ||
328 | if (strlen(col) < (sizeof(col) - 2)) | ||
329 | strcat(col, " "); | ||
330 | else | ||
331 | done = 1; | ||
332 | } | ||
333 | if ((strlen(col) + strlen(s)) < (sizeof(col) - 1)) | ||
334 | strcat(col, s); | ||
335 | } | ||
336 | if (col[0]) | ||
337 | { | ||
338 | if (!strcasecmp(col, "none")) | ||
339 | { | ||
340 | transp = 1; | ||
341 | cmap[j].transp = 1; | ||
342 | cmap[j].r = 0; | ||
343 | cmap[j].g = 0; | ||
344 | cmap[j].b = 0; | ||
345 | } | ||
346 | else | ||
347 | { | ||
348 | if ((((cmap[j].r < 0) || (!strcmp(tok, "c"))) && (!hascolor))) | ||
349 | { | ||
350 | r = g = b = 0; | ||
351 | xpm_parse_color(col, &r, &g, &b); | ||
352 | cmap[j].r = r; | ||
353 | cmap[j].g = g; | ||
354 | cmap[j].b = b; | ||
355 | if (iscolor) hascolor = 1; | ||
356 | } | ||
357 | } | ||
358 | } | ||
359 | strcpy(tok, s); | ||
360 | col[0] = 0; | ||
361 | } | ||
362 | else | ||
363 | { | ||
364 | if (col[0]) | ||
365 | { | ||
366 | if (strlen(col) < ( sizeof(col) - 2)) | ||
367 | strcat(col, " "); | ||
368 | else | ||
369 | done = 1; | ||
370 | } | ||
371 | if ((strlen(col) + strlen(s)) < (sizeof(col) - 1)) | ||
372 | strcat(col, s); | ||
373 | } | ||
374 | } | ||
375 | } | ||
376 | } | ||
377 | j++; | ||
378 | if (j >= ncolors) | ||
379 | { | ||
380 | if (cpp == 1) | ||
381 | { | ||
382 | for (i = 0; i < ncolors; i++) | ||
383 | lookup[(int)cmap[i].str[0] - 32][0] = i; | ||
384 | } | ||
385 | if (cpp == 2) | ||
386 | { | ||
387 | for (i = 0; i < ncolors; i++) | ||
388 | lookup[(int)cmap[i].str[0] - 32][(int)cmap[i].str[1] - 32] = i; | ||
389 | } | ||
390 | context++; | ||
391 | } | ||
392 | |||
393 | if (transp) ie->flags.alpha = 1; | ||
394 | |||
395 | if (load_data) | ||
396 | { | ||
397 | evas_cache_image_surface_alloc(ie, w, h); | ||
398 | ptr = evas_cache_image_pixels(ie); | ||
399 | if (!ptr) | ||
400 | { | ||
401 | free(cmap); | ||
402 | free(line); | ||
403 | fclose(f); | ||
404 | xpm_parse_done(); | ||
405 | *error = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED; | ||
406 | return EINA_FALSE; | ||
407 | } | ||
408 | pixels = w * h; | ||
409 | end = ptr + pixels; | ||
410 | } | ||
411 | else | ||
412 | { | ||
413 | free(cmap); | ||
414 | free(line); | ||
415 | fclose(f); | ||
416 | xpm_parse_done(); | ||
417 | *error = EVAS_LOAD_ERROR_NONE; | ||
418 | return EINA_TRUE; | ||
419 | } | ||
420 | } | ||
421 | else | ||
422 | { | ||
423 | /* Image Data */ | ||
424 | i = 0; | ||
425 | if (cpp == 0) | ||
426 | { | ||
427 | /* Chars per pixel = 0? well u never know */ | ||
428 | } | ||
429 | /* it's xpm - don't care about speed too much. still faster | ||
430 | * that most xpm loaders anyway */ | ||
431 | else if (cpp == 1) | ||
432 | { | ||
433 | if (transp) | ||
434 | { | ||
435 | for (i = 0; | ||
436 | ((i < 65536) && (ptr < end) && (line[i])); | ||
437 | i++) | ||
438 | { | ||
439 | lu1 = (int)line[i] - 32; | ||
440 | if (lu1 < 0) continue; | ||
441 | if (cmap[lookup[lu1][0]].transp) | ||
442 | { | ||
443 | r = (unsigned char)cmap[lookup[lu1][0]].r; | ||
444 | g = (unsigned char)cmap[lookup[lu1][0]].g; | ||
445 | b = (unsigned char)cmap[lookup[lu1][0]].b; | ||
446 | *ptr = RGB_JOIN(r, g, b); | ||
447 | ptr++; | ||
448 | count++; | ||
449 | } | ||
450 | else | ||
451 | { | ||
452 | r = (unsigned char)cmap[lookup[lu1][0]].r; | ||
453 | g = (unsigned char)cmap[lookup[lu1][0]].g; | ||
454 | b = (unsigned char)cmap[lookup[lu1][0]].b; | ||
455 | *ptr = ARGB_JOIN(0xff, r, g, b); | ||
456 | ptr++; | ||
457 | count++; | ||
458 | } | ||
459 | } | ||
460 | } | ||
461 | else | ||
462 | { | ||
463 | for (i = 0; | ||
464 | ((i < 65536) && (ptr < end) && (line[i])); | ||
465 | i++) | ||
466 | { | ||
467 | lu1 = (int)line[i] - 32; | ||
468 | if (lu1 < 0) continue; | ||
469 | r = (unsigned char)cmap[lookup[lu1][0]].r; | ||
470 | g = (unsigned char)cmap[lookup[lu1][0]].g; | ||
471 | b = (unsigned char)cmap[lookup[lu1][0]].b; | ||
472 | *ptr = ARGB_JOIN(0xff, r, g, b); | ||
473 | ptr++; | ||
474 | count++; | ||
475 | } | ||
476 | } | ||
477 | } | ||
478 | else if (cpp == 2) | ||
479 | { | ||
480 | if (transp) | ||
481 | { | ||
482 | for (i = 0; | ||
483 | ((i < 65536) && (ptr < end) && (line[i])); | ||
484 | i++) | ||
485 | { | ||
486 | lu1 = (int)line[i] - 32; | ||
487 | i++; | ||
488 | lu2 = (int)line[i] - 32; | ||
489 | if (lu1 < 0) continue; | ||
490 | if (lu2 < 0) continue; | ||
491 | if (cmap[lookup[lu1][lu2]].transp) | ||
492 | { | ||
493 | r = (unsigned char)cmap[lookup[lu1][lu2]].r; | ||
494 | g = (unsigned char)cmap[lookup[lu1][lu2]].g; | ||
495 | b = (unsigned char)cmap[lookup[lu1][lu2]].b; | ||
496 | *ptr = RGB_JOIN(r, g, b); | ||
497 | ptr++; | ||
498 | count++; | ||
499 | } | ||
500 | else | ||
501 | { | ||
502 | r = (unsigned char)cmap[lookup[lu1][lu2]].r; | ||
503 | g = (unsigned char)cmap[lookup[lu1][lu2]].g; | ||
504 | b = (unsigned char)cmap[lookup[lu1][lu2]].b; | ||
505 | *ptr = ARGB_JOIN(0xff, r, g, b); | ||
506 | ptr++; | ||
507 | count++; | ||
508 | } | ||
509 | } | ||
510 | } | ||
511 | else | ||
512 | { | ||
513 | for (i = 0; | ||
514 | ((i < 65536) && (ptr < end) && (line[i])); | ||
515 | i++) | ||
516 | { | ||
517 | lu1 = (int)line[i] - 32; | ||
518 | i++; | ||
519 | lu2 = (int)line[i] - 32; | ||
520 | if (lu1 < 0) continue; | ||
521 | if (lu2 < 0) continue; | ||
522 | r = (unsigned char)cmap[lookup[lu1][lu2]].r; | ||
523 | g = (unsigned char)cmap[lookup[lu1][lu2]].g; | ||
524 | b = (unsigned char)cmap[lookup[lu1][lu2]].b; | ||
525 | *ptr = ARGB_JOIN(0xff, r, g, b); | ||
526 | ptr++; | ||
527 | count++; | ||
528 | } | ||
529 | } | ||
530 | } | ||
531 | else | ||
532 | { | ||
533 | if (transp) | ||
534 | { | ||
535 | for (i = 0; | ||
536 | ((i < 65536) && (ptr < end) && (line[i])); | ||
537 | i++) | ||
538 | { | ||
539 | for (j = 0; j < cpp; j++, i++) | ||
540 | { | ||
541 | col[j] = line[i]; | ||
542 | if (col[j] < 32) col[j] = 32; | ||
543 | } | ||
544 | col[j] = 0; | ||
545 | i--; | ||
546 | for (j = 0; j < ncolors; j++) | ||
547 | { | ||
548 | if (!strcmp(col, cmap[j].str)) | ||
549 | { | ||
550 | if (cmap[j].transp) | ||
551 | { | ||
552 | r = (unsigned char)cmap[j].r; | ||
553 | g = (unsigned char)cmap[j].g; | ||
554 | b = (unsigned char)cmap[j].b; | ||
555 | *ptr = RGB_JOIN(r, g, b); | ||
556 | ptr++; | ||
557 | count++; | ||
558 | } | ||
559 | else | ||
560 | { | ||
561 | r = (unsigned char)cmap[j].r; | ||
562 | g = (unsigned char)cmap[j].g; | ||
563 | b = (unsigned char)cmap[j].b; | ||
564 | *ptr = ARGB_JOIN(0xff, r, g, b); | ||
565 | ptr++; | ||
566 | count++; | ||
567 | } | ||
568 | break; | ||
569 | } | ||
570 | } | ||
571 | } | ||
572 | } | ||
573 | else | ||
574 | { | ||
575 | for (i = 0; | ||
576 | ((i < 65536) && (ptr < end) && (line[i])); | ||
577 | i++) | ||
578 | { | ||
579 | for (j = 0; j < cpp; j++, i++) | ||
580 | { | ||
581 | col[j] = line[i]; | ||
582 | } | ||
583 | col[j] = 0; | ||
584 | i--; | ||
585 | for (j = 0; j < ncolors; j++) | ||
586 | { | ||
587 | if (!strcmp(col, cmap[j].str)) | ||
588 | { | ||
589 | r = (unsigned char)cmap[j].r; | ||
590 | g = (unsigned char)cmap[j].g; | ||
591 | b = (unsigned char)cmap[j].b; | ||
592 | *ptr = ARGB_JOIN(0xff, r, g, b); | ||
593 | ptr++; | ||
594 | count++; | ||
595 | break; | ||
596 | } | ||
597 | } | ||
598 | } | ||
599 | } | ||
600 | } | ||
601 | } | ||
602 | } | ||
603 | } | ||
604 | /* Scan in line from XPM file */ | ||
605 | if ((!comment) && (quote) && (c != '"')) | ||
606 | { | ||
607 | if (c < 32) c = 32; | ||
608 | else if (c > 127) c = 127; | ||
609 | if (c =='\\') | ||
610 | { | ||
611 | if (++backslash < 2) | ||
612 | line[i++] = c; | ||
613 | else | ||
614 | backslash = 0; | ||
615 | } | ||
616 | else | ||
617 | { | ||
618 | backslash = 0; | ||
619 | line[i++] = c; | ||
620 | } | ||
621 | } | ||
622 | if (i >= lsz) | ||
623 | { | ||
624 | lsz += 256; | ||
625 | tl = realloc(line, lsz); | ||
626 | if (!tl) break; | ||
627 | line = tl; | ||
628 | } | ||
629 | if (((ptr) && ((ptr - evas_cache_image_pixels(ie)) >= (w * h * (int)sizeof(DATA32)))) || | ||
630 | ((context > 1) && (count >= pixels))) | ||
631 | break; | ||
632 | } | ||
633 | |||
634 | free(cmap); | ||
635 | free(line); | ||
636 | fclose(f); | ||
637 | |||
638 | xpm_parse_done(); | ||
639 | *error = EVAS_LOAD_ERROR_NONE; | ||
640 | return EINA_TRUE; | ||
641 | } | ||
642 | |||
643 | static Eina_Bool | ||
644 | evas_image_load_file_head_xpm(Image_Entry *ie, const char *file, const char *key, int *error) | ||
645 | { | ||
646 | return evas_image_load_file_xpm(ie, file, key, 0, error); | ||
647 | } | ||
648 | |||
649 | static Eina_Bool | ||
650 | evas_image_load_file_data_xpm(Image_Entry *ie, const char *file, const char *key, int *error) | ||
651 | { | ||
652 | return evas_image_load_file_xpm(ie, file, key, 1, error); | ||
653 | } | ||
654 | |||
655 | static int | ||
656 | module_open(Evas_Module *em) | ||
657 | { | ||
658 | if (!em) return 0; | ||
659 | _evas_loader_xpm_log_dom = eina_log_domain_register | ||
660 | ("evas-xpm", EVAS_DEFAULT_LOG_COLOR); | ||
661 | if (_evas_loader_xpm_log_dom < 0) | ||
662 | { | ||
663 | EINA_LOG_ERR("Can not create a module log domain."); | ||
664 | return 0; | ||
665 | } | ||
666 | em->functions = (void *)(&evas_image_load_xpm_func); | ||
667 | return 1; | ||
668 | } | ||
669 | |||
670 | static void | ||
671 | module_close(Evas_Module *em __UNUSED__) | ||
672 | { | ||
673 | eina_log_domain_unregister(_evas_loader_xpm_log_dom); | ||
674 | } | ||
675 | |||
676 | static Evas_Module_Api evas_modapi = | ||
677 | { | ||
678 | EVAS_MODULE_API_VERSION, | ||
679 | "xpm", | ||
680 | "none", | ||
681 | { | ||
682 | module_open, | ||
683 | module_close | ||
684 | } | ||
685 | }; | ||
686 | |||
687 | EVAS_MODULE_DEFINE(EVAS_MODULE_TYPE_IMAGE_LOADER, image_loader, xpm); | ||
688 | |||
689 | #ifndef EVAS_STATIC_BUILD_XPM | ||
690 | EVAS_EINA_MODULE_DEFINE(image_loader, xpm); | ||
691 | #endif | ||