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