diff options
author | David Walter Seikel | 2016-03-29 02:16:55 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-03-29 02:16:55 +1000 |
commit | cb3716ffb584fe0f593b6f1669a8efdba1305104 (patch) | |
tree | 5d1ebc4b6fc17b30f4b34e7e64a2d9514893459b /src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob | |
parent | Add Prosody build script. (diff) | |
download | SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.zip SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.tar.gz SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.tar.bz2 SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.tar.xz |
Added my version of libg3d and friends.
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob')
4 files changed, 1468 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile new file mode 100644 index 0000000..d870ee3 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile | |||
@@ -0,0 +1,509 @@ | |||
1 | # Makefile.in generated by automake 1.10.1 from Makefile.am. | ||
2 | # plugins/import/imp_cob/Makefile. Generated from Makefile.in by configure. | ||
3 | |||
4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | |||
16 | |||
17 | |||
18 | pkgdatadir = $(datadir)/libg3d | ||
19 | pkglibdir = $(libdir)/libg3d | ||
20 | pkgincludedir = $(includedir)/libg3d | ||
21 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
22 | install_sh_DATA = $(install_sh) -c -m 644 | ||
23 | install_sh_PROGRAM = $(install_sh) -c | ||
24 | install_sh_SCRIPT = $(install_sh) -c | ||
25 | INSTALL_HEADER = $(INSTALL_DATA) | ||
26 | transform = $(program_transform_name) | ||
27 | NORMAL_INSTALL = : | ||
28 | PRE_INSTALL = : | ||
29 | POST_INSTALL = : | ||
30 | NORMAL_UNINSTALL = : | ||
31 | PRE_UNINSTALL = : | ||
32 | POST_UNINSTALL = : | ||
33 | build_triplet = x86_64-unknown-linux-gnu | ||
34 | host_triplet = x86_64-unknown-linux-gnu | ||
35 | subdir = plugins/import/imp_cob | ||
36 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
37 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
38 | am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ | ||
39 | $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ | ||
40 | $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
41 | $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ | ||
42 | $(top_srcdir)/configure.in | ||
43 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
44 | $(ACLOCAL_M4) | ||
45 | mkinstalldirs = $(install_sh) -d | ||
46 | CONFIG_HEADER = $(top_builddir)/include/g3d/config.h | ||
47 | CONFIG_CLEAN_FILES = | ||
48 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
49 | am__vpath_adj = case $$p in \ | ||
50 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
51 | *) f=$$p;; \ | ||
52 | esac; | ||
53 | am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | ||
54 | am__installdirs = "$(DESTDIR)$(pluginimpdir)" | ||
55 | pluginimpLTLIBRARIES_INSTALL = $(INSTALL) | ||
56 | LTLIBRARIES = $(pluginimp_LTLIBRARIES) | ||
57 | imp_cob_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la | ||
58 | am_imp_cob_la_OBJECTS = imp_cob.lo | ||
59 | imp_cob_la_OBJECTS = $(am_imp_cob_la_OBJECTS) | ||
60 | DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d | ||
61 | depcomp = $(SHELL) $(top_srcdir)/config/depcomp | ||
62 | am__depfiles_maybe = depfiles | ||
63 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
64 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
65 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
66 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
67 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
68 | CCLD = $(CC) | ||
69 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
70 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | ||
71 | $(LDFLAGS) -o $@ | ||
72 | SOURCES = $(imp_cob_la_SOURCES) | ||
73 | DIST_SOURCES = $(imp_cob_la_SOURCES) | ||
74 | ETAGS = etags | ||
75 | CTAGS = ctags | ||
76 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
77 | ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 | ||
78 | AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar | ||
79 | AR = ar | ||
80 | AS = as | ||
81 | AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf | ||
82 | AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader | ||
83 | AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 | ||
84 | AWK = gawk | ||
85 | CC = gcc | ||
86 | CCDEPMODE = depmode=gcc3 | ||
87 | CFLAGS = -g -O2 | ||
88 | CPP = gcc -E | ||
89 | CPPFLAGS = | ||
90 | CXX = g++ | ||
91 | CXXCPP = g++ -E | ||
92 | CXXDEPMODE = depmode=gcc3 | ||
93 | CXXFLAGS = -g -O2 | ||
94 | CYGPATH_W = echo | ||
95 | DBG_CFLAGS = -O2 | ||
96 | DEBUG = 0 | ||
97 | DEFS = -DHAVE_CONFIG_H | ||
98 | DEPDIR = .deps | ||
99 | DLLTOOL = dlltool | ||
100 | ECHO = echo | ||
101 | ECHO_C = | ||
102 | ECHO_N = -n | ||
103 | ECHO_T = | ||
104 | EGREP = /bin/grep -E | ||
105 | EXEEXT = | ||
106 | F77 = | ||
107 | FFLAGS = | ||
108 | GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
109 | GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
110 | GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
111 | GLIB_GENMARSHAL = glib-genmarshal | ||
112 | GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 | ||
113 | GLIB_MKENUMS = glib-mkenums | ||
114 | GOBJECT_QUERY = gobject-query | ||
115 | GREP = /bin/grep | ||
116 | GTKDOC_CHECK = /usr/bin/gtkdoc-check | ||
117 | GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
118 | GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
119 | HTML_DIR = ${datadir}/gtk-doc/html | ||
120 | INSTALL = /usr/bin/install -c | ||
121 | INSTALL_DATA = ${INSTALL} -m 644 | ||
122 | INSTALL_PROGRAM = ${INSTALL} | ||
123 | INSTALL_SCRIPT = ${INSTALL} | ||
124 | INSTALL_STRIP_PROGRAM = $(install_sh) -c -s | ||
125 | LDFLAGS = | ||
126 | LEX = flex | ||
127 | LEXLIB = -lfl | ||
128 | LEX_OUTPUT_ROOT = lex.yy | ||
129 | LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 | ||
130 | LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 | ||
131 | LIBOBJS = | ||
132 | LIBS = -lm | ||
133 | LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet | ||
134 | LIBXML2_CFLAGS = -I/usr/include/libxml2 | ||
135 | LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 | ||
136 | LN_S = ln -s | ||
137 | LTLIBOBJS = | ||
138 | LTVERSION = 0:8:0 | ||
139 | MAGIC_LIBS = -lmagic | ||
140 | MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo | ||
141 | MATH_LIBS = -lm | ||
142 | MKDIR_P = /bin/mkdir -p | ||
143 | OBJDUMP = objdump | ||
144 | OBJEXT = o | ||
145 | PACKAGE = libg3d | ||
146 | PACKAGE_BUGREPORT = | ||
147 | PACKAGE_NAME = | ||
148 | PACKAGE_STRING = | ||
149 | PACKAGE_TARNAME = | ||
150 | PACKAGE_VERSION = | ||
151 | PATH_SEPARATOR = : | ||
152 | PKG_CONFIG = /usr/bin/pkg-config | ||
153 | PLUGINS_LDFLAGS = -avoid-version -export-dynamic | ||
154 | RANLIB = ranlib | ||
155 | SET_MAKE = | ||
156 | SHELL = /bin/bash | ||
157 | STRIP = strip | ||
158 | VERSION = 0.0.8 | ||
159 | XML2_CONFIG = /usr/bin/xml2-config | ||
160 | XML_CPPFLAGS = -I/usr/include/libxml2 | ||
161 | XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 | ||
162 | Z_CFLAGS = | ||
163 | Z_LIBS = -lz | ||
164 | abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob | ||
165 | abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob | ||
166 | abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 | ||
167 | abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 | ||
168 | ac_ct_CC = gcc | ||
169 | ac_ct_CXX = g++ | ||
170 | ac_ct_F77 = | ||
171 | am__include = include | ||
172 | am__leading_dot = . | ||
173 | am__quote = | ||
174 | am__tar = ${AMTAR} chof - "$$tardir" | ||
175 | am__untar = ${AMTAR} xf - | ||
176 | bindir = ${exec_prefix}/bin | ||
177 | build = x86_64-unknown-linux-gnu | ||
178 | build_alias = | ||
179 | build_cpu = x86_64 | ||
180 | build_os = linux-gnu | ||
181 | build_vendor = unknown | ||
182 | builddir = . | ||
183 | datadir = ${datarootdir} | ||
184 | datarootdir = ${prefix}/share | ||
185 | docdir = ${datarootdir}/doc/${PACKAGE} | ||
186 | dvidir = ${docdir} | ||
187 | exec_prefix = ${prefix} | ||
188 | host = x86_64-unknown-linux-gnu | ||
189 | host_alias = | ||
190 | host_cpu = x86_64 | ||
191 | host_os = linux-gnu | ||
192 | host_vendor = unknown | ||
193 | htmldir = ${docdir} | ||
194 | includedir = ${prefix}/include | ||
195 | infodir = ${datarootdir}/info | ||
196 | install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh | ||
197 | libdir = ${exec_prefix}/lib | ||
198 | libexecdir = ${exec_prefix}/libexec | ||
199 | localedir = ${datarootdir}/locale | ||
200 | localstatedir = ${prefix}/var | ||
201 | mandir = ${datarootdir}/man | ||
202 | mkdir_p = /bin/mkdir -p | ||
203 | oldincludedir = /usr/include | ||
204 | pdfdir = ${docdir} | ||
205 | prefix = /usr/local | ||
206 | program_transform_name = s,x,x, | ||
207 | psdir = ${docdir} | ||
208 | sbindir = ${exec_prefix}/sbin | ||
209 | sharedstatedir = ${prefix}/com | ||
210 | srcdir = . | ||
211 | sysconfdir = ${prefix}/etc | ||
212 | target_alias = | ||
213 | top_builddir = ../../.. | ||
214 | top_srcdir = ../../.. | ||
215 | pluginimpdir = $(pkglibdir)/plugins/import | ||
216 | pluginimp_LTLIBRARIES = imp_cob.la | ||
217 | AM_CFLAGS = \ | ||
218 | -Wall -ansi -pedantic \ | ||
219 | -DG_LOG_DOMAIN=\"LibG3D\" \ | ||
220 | -O2 -DDEBUG=0 \ | ||
221 | -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
222 | |||
223 | INCLUDES = -I$(top_srcdir)/include | ||
224 | AM_LDFLAGS = \ | ||
225 | -no-undefined -module \ | ||
226 | -avoid-version -export-dynamic | ||
227 | |||
228 | imp_cob_la_SOURCES = imp_cob.c | ||
229 | imp_cob_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 | ||
230 | all: all-am | ||
231 | |||
232 | .SUFFIXES: | ||
233 | .SUFFIXES: .c .lo .o .obj | ||
234 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
235 | @for dep in $?; do \ | ||
236 | case '$(am__configure_deps)' in \ | ||
237 | *$$dep*) \ | ||
238 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ | ||
239 | && exit 0; \ | ||
240 | exit 1;; \ | ||
241 | esac; \ | ||
242 | done; \ | ||
243 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_cob/Makefile'; \ | ||
244 | cd $(top_srcdir) && \ | ||
245 | $(AUTOMAKE) --gnu plugins/import/imp_cob/Makefile | ||
246 | .PRECIOUS: Makefile | ||
247 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
248 | @case '$?' in \ | ||
249 | *config.status*) \ | ||
250 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
251 | *) \ | ||
252 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
253 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
254 | esac; | ||
255 | |||
256 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
257 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
258 | |||
259 | $(top_srcdir)/configure: $(am__configure_deps) | ||
260 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
261 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
262 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
263 | install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) | ||
264 | @$(NORMAL_INSTALL) | ||
265 | test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" | ||
266 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
267 | if test -f $$p; then \ | ||
268 | f=$(am__strip_dir) \ | ||
269 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ | ||
270 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ | ||
271 | else :; fi; \ | ||
272 | done | ||
273 | |||
274 | uninstall-pluginimpLTLIBRARIES: | ||
275 | @$(NORMAL_UNINSTALL) | ||
276 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
277 | p=$(am__strip_dir) \ | ||
278 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ | ||
279 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ | ||
280 | done | ||
281 | |||
282 | clean-pluginimpLTLIBRARIES: | ||
283 | -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) | ||
284 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
285 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
286 | test "$$dir" != "$$p" || dir=.; \ | ||
287 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
288 | rm -f "$${dir}/so_locations"; \ | ||
289 | done | ||
290 | imp_cob.la: $(imp_cob_la_OBJECTS) $(imp_cob_la_DEPENDENCIES) | ||
291 | $(LINK) -rpath $(pluginimpdir) $(imp_cob_la_OBJECTS) $(imp_cob_la_LIBADD) $(LIBS) | ||
292 | |||
293 | mostlyclean-compile: | ||
294 | -rm -f *.$(OBJEXT) | ||
295 | |||
296 | distclean-compile: | ||
297 | -rm -f *.tab.c | ||
298 | |||
299 | include ./$(DEPDIR)/imp_cob.Plo | ||
300 | |||
301 | .c.o: | ||
302 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
303 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
304 | # source='$<' object='$@' libtool=no \ | ||
305 | # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ | ||
306 | # $(COMPILE) -c $< | ||
307 | |||
308 | .c.obj: | ||
309 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
310 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
311 | # source='$<' object='$@' libtool=no \ | ||
312 | # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ | ||
313 | # $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
314 | |||
315 | .c.lo: | ||
316 | $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
317 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
318 | # source='$<' object='$@' libtool=yes \ | ||
319 | # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ | ||
320 | # $(LTCOMPILE) -c -o $@ $< | ||
321 | |||
322 | mostlyclean-libtool: | ||
323 | -rm -f *.lo | ||
324 | |||
325 | clean-libtool: | ||
326 | -rm -rf .libs _libs | ||
327 | |||
328 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
329 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
330 | unique=`for i in $$list; do \ | ||
331 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
332 | done | \ | ||
333 | $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ | ||
334 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
335 | mkid -fID $$unique | ||
336 | tags: TAGS | ||
337 | |||
338 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
339 | $(TAGS_FILES) $(LISP) | ||
340 | tags=; \ | ||
341 | here=`pwd`; \ | ||
342 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
343 | unique=`for i in $$list; do \ | ||
344 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
345 | done | \ | ||
346 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
347 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
348 | if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ | ||
349 | test -n "$$unique" || unique=$$empty_fix; \ | ||
350 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
351 | $$tags $$unique; \ | ||
352 | fi | ||
353 | ctags: CTAGS | ||
354 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
355 | $(TAGS_FILES) $(LISP) | ||
356 | tags=; \ | ||
357 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
358 | unique=`for i in $$list; do \ | ||
359 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
360 | done | \ | ||
361 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
362 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
363 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | ||
364 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
365 | $$tags $$unique | ||
366 | |||
367 | GTAGS: | ||
368 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
369 | && cd $(top_srcdir) \ | ||
370 | && gtags -i $(GTAGS_ARGS) $$here | ||
371 | |||
372 | distclean-tags: | ||
373 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
374 | |||
375 | distdir: $(DISTFILES) | ||
376 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
377 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
378 | list='$(DISTFILES)'; \ | ||
379 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
380 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
381 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
382 | case $$dist_files in \ | ||
383 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
384 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
385 | sort -u` ;; \ | ||
386 | esac; \ | ||
387 | for file in $$dist_files; do \ | ||
388 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
389 | if test -d $$d/$$file; then \ | ||
390 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
391 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
392 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
393 | fi; \ | ||
394 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
395 | else \ | ||
396 | test -f $(distdir)/$$file \ | ||
397 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
398 | || exit 1; \ | ||
399 | fi; \ | ||
400 | done | ||
401 | check-am: all-am | ||
402 | check: check-am | ||
403 | all-am: Makefile $(LTLIBRARIES) | ||
404 | installdirs: | ||
405 | for dir in "$(DESTDIR)$(pluginimpdir)"; do \ | ||
406 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
407 | done | ||
408 | install: install-am | ||
409 | install-exec: install-exec-am | ||
410 | install-data: install-data-am | ||
411 | uninstall: uninstall-am | ||
412 | |||
413 | install-am: all-am | ||
414 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
415 | |||
416 | installcheck: installcheck-am | ||
417 | install-strip: | ||
418 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
419 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
420 | `test -z '$(STRIP)' || \ | ||
421 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
422 | mostlyclean-generic: | ||
423 | |||
424 | clean-generic: | ||
425 | |||
426 | distclean-generic: | ||
427 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
428 | |||
429 | maintainer-clean-generic: | ||
430 | @echo "This command is intended for maintainers to use" | ||
431 | @echo "it deletes files that may require special tools to rebuild." | ||
432 | clean: clean-am | ||
433 | |||
434 | clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ | ||
435 | mostlyclean-am | ||
436 | |||
437 | distclean: distclean-am | ||
438 | -rm -rf ./$(DEPDIR) | ||
439 | -rm -f Makefile | ||
440 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
441 | distclean-tags | ||
442 | |||
443 | dvi: dvi-am | ||
444 | |||
445 | dvi-am: | ||
446 | |||
447 | html: html-am | ||
448 | |||
449 | info: info-am | ||
450 | |||
451 | info-am: | ||
452 | |||
453 | install-data-am: install-pluginimpLTLIBRARIES | ||
454 | |||
455 | install-dvi: install-dvi-am | ||
456 | |||
457 | install-exec-am: | ||
458 | |||
459 | install-html: install-html-am | ||
460 | |||
461 | install-info: install-info-am | ||
462 | |||
463 | install-man: | ||
464 | |||
465 | install-pdf: install-pdf-am | ||
466 | |||
467 | install-ps: install-ps-am | ||
468 | |||
469 | installcheck-am: | ||
470 | |||
471 | maintainer-clean: maintainer-clean-am | ||
472 | -rm -rf ./$(DEPDIR) | ||
473 | -rm -f Makefile | ||
474 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
475 | |||
476 | mostlyclean: mostlyclean-am | ||
477 | |||
478 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
479 | mostlyclean-libtool | ||
480 | |||
481 | pdf: pdf-am | ||
482 | |||
483 | pdf-am: | ||
484 | |||
485 | ps: ps-am | ||
486 | |||
487 | ps-am: | ||
488 | |||
489 | uninstall-am: uninstall-pluginimpLTLIBRARIES | ||
490 | |||
491 | .MAKE: install-am install-strip | ||
492 | |||
493 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
494 | clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ | ||
495 | distclean-compile distclean-generic distclean-libtool \ | ||
496 | distclean-tags distdir dvi dvi-am html html-am info info-am \ | ||
497 | install install-am install-data install-data-am install-dvi \ | ||
498 | install-dvi-am install-exec install-exec-am install-html \ | ||
499 | install-html-am install-info install-info-am install-man \ | ||
500 | install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ | ||
501 | install-ps install-ps-am install-strip installcheck \ | ||
502 | installcheck-am installdirs maintainer-clean \ | ||
503 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
504 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
505 | tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES | ||
506 | |||
507 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
508 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
509 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.am new file mode 100644 index 0000000..523e7c0 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.am | |||
@@ -0,0 +1,20 @@ | |||
1 | pluginimpdir = $(pkglibdir)/plugins/import | ||
2 | |||
3 | pluginimp_LTLIBRARIES = imp_cob.la | ||
4 | |||
5 | AM_CFLAGS = \ | ||
6 | -Wall -ansi -pedantic \ | ||
7 | -DG_LOG_DOMAIN=\"LibG3D\" \ | ||
8 | @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ | ||
9 | @GLIB_CFLAGS@ | ||
10 | |||
11 | INCLUDES = -I$(top_srcdir)/include | ||
12 | |||
13 | AM_LDFLAGS = \ | ||
14 | -no-undefined -module \ | ||
15 | @PLUGINS_LDFLAGS@ | ||
16 | |||
17 | LIBTOOL += --quiet | ||
18 | |||
19 | imp_cob_la_SOURCES = imp_cob.c | ||
20 | imp_cob_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.in new file mode 100644 index 0000000..d65e4c6 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.in | |||
@@ -0,0 +1,509 @@ | |||
1 | # Makefile.in generated by automake 1.10.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 Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | @SET_MAKE@ | ||
16 | |||
17 | VPATH = @srcdir@ | ||
18 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
19 | pkglibdir = $(libdir)/@PACKAGE@ | ||
20 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
21 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
22 | install_sh_DATA = $(install_sh) -c -m 644 | ||
23 | install_sh_PROGRAM = $(install_sh) -c | ||
24 | install_sh_SCRIPT = $(install_sh) -c | ||
25 | INSTALL_HEADER = $(INSTALL_DATA) | ||
26 | transform = $(program_transform_name) | ||
27 | NORMAL_INSTALL = : | ||
28 | PRE_INSTALL = : | ||
29 | POST_INSTALL = : | ||
30 | NORMAL_UNINSTALL = : | ||
31 | PRE_UNINSTALL = : | ||
32 | POST_UNINSTALL = : | ||
33 | build_triplet = @build@ | ||
34 | host_triplet = @host@ | ||
35 | subdir = plugins/import/imp_cob | ||
36 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
37 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
38 | am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ | ||
39 | $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ | ||
40 | $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
41 | $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ | ||
42 | $(top_srcdir)/configure.in | ||
43 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
44 | $(ACLOCAL_M4) | ||
45 | mkinstalldirs = $(install_sh) -d | ||
46 | CONFIG_HEADER = $(top_builddir)/include/g3d/config.h | ||
47 | CONFIG_CLEAN_FILES = | ||
48 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
49 | am__vpath_adj = case $$p in \ | ||
50 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
51 | *) f=$$p;; \ | ||
52 | esac; | ||
53 | am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | ||
54 | am__installdirs = "$(DESTDIR)$(pluginimpdir)" | ||
55 | pluginimpLTLIBRARIES_INSTALL = $(INSTALL) | ||
56 | LTLIBRARIES = $(pluginimp_LTLIBRARIES) | ||
57 | imp_cob_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la | ||
58 | am_imp_cob_la_OBJECTS = imp_cob.lo | ||
59 | imp_cob_la_OBJECTS = $(am_imp_cob_la_OBJECTS) | ||
60 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d | ||
61 | depcomp = $(SHELL) $(top_srcdir)/config/depcomp | ||
62 | am__depfiles_maybe = depfiles | ||
63 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
64 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
65 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
66 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
67 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
68 | CCLD = $(CC) | ||
69 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
70 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | ||
71 | $(LDFLAGS) -o $@ | ||
72 | SOURCES = $(imp_cob_la_SOURCES) | ||
73 | DIST_SOURCES = $(imp_cob_la_SOURCES) | ||
74 | ETAGS = etags | ||
75 | CTAGS = ctags | ||
76 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
77 | ACLOCAL = @ACLOCAL@ | ||
78 | AMTAR = @AMTAR@ | ||
79 | AR = @AR@ | ||
80 | AS = @AS@ | ||
81 | AUTOCONF = @AUTOCONF@ | ||
82 | AUTOHEADER = @AUTOHEADER@ | ||
83 | AUTOMAKE = @AUTOMAKE@ | ||
84 | AWK = @AWK@ | ||
85 | CC = @CC@ | ||
86 | CCDEPMODE = @CCDEPMODE@ | ||
87 | CFLAGS = @CFLAGS@ | ||
88 | CPP = @CPP@ | ||
89 | CPPFLAGS = @CPPFLAGS@ | ||
90 | CXX = @CXX@ | ||
91 | CXXCPP = @CXXCPP@ | ||
92 | CXXDEPMODE = @CXXDEPMODE@ | ||
93 | CXXFLAGS = @CXXFLAGS@ | ||
94 | CYGPATH_W = @CYGPATH_W@ | ||
95 | DBG_CFLAGS = @DBG_CFLAGS@ | ||
96 | DEBUG = @DEBUG@ | ||
97 | DEFS = @DEFS@ | ||
98 | DEPDIR = @DEPDIR@ | ||
99 | DLLTOOL = @DLLTOOL@ | ||
100 | ECHO = @ECHO@ | ||
101 | ECHO_C = @ECHO_C@ | ||
102 | ECHO_N = @ECHO_N@ | ||
103 | ECHO_T = @ECHO_T@ | ||
104 | EGREP = @EGREP@ | ||
105 | EXEEXT = @EXEEXT@ | ||
106 | F77 = @F77@ | ||
107 | FFLAGS = @FFLAGS@ | ||
108 | GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ | ||
109 | GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ | ||
110 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
111 | GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ | ||
112 | GLIB_LIBS = @GLIB_LIBS@ | ||
113 | GLIB_MKENUMS = @GLIB_MKENUMS@ | ||
114 | GOBJECT_QUERY = @GOBJECT_QUERY@ | ||
115 | GREP = @GREP@ | ||
116 | GTKDOC_CHECK = @GTKDOC_CHECK@ | ||
117 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
118 | GTK_LIBS = @GTK_LIBS@ | ||
119 | HTML_DIR = @HTML_DIR@ | ||
120 | INSTALL = @INSTALL@ | ||
121 | INSTALL_DATA = @INSTALL_DATA@ | ||
122 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
123 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
124 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
125 | LDFLAGS = @LDFLAGS@ | ||
126 | LEX = @LEX@ | ||
127 | LEXLIB = @LEXLIB@ | ||
128 | LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ | ||
129 | LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ | ||
130 | LIBGSF_LIBS = @LIBGSF_LIBS@ | ||
131 | LIBOBJS = @LIBOBJS@ | ||
132 | LIBS = @LIBS@ | ||
133 | LIBTOOL = @LIBTOOL@ --quiet | ||
134 | LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ | ||
135 | LIBXML2_LIBS = @LIBXML2_LIBS@ | ||
136 | LN_S = @LN_S@ | ||
137 | LTLIBOBJS = @LTLIBOBJS@ | ||
138 | LTVERSION = @LTVERSION@ | ||
139 | MAGIC_LIBS = @MAGIC_LIBS@ | ||
140 | MAKEINFO = @MAKEINFO@ | ||
141 | MATH_LIBS = @MATH_LIBS@ | ||
142 | MKDIR_P = @MKDIR_P@ | ||
143 | OBJDUMP = @OBJDUMP@ | ||
144 | OBJEXT = @OBJEXT@ | ||
145 | PACKAGE = @PACKAGE@ | ||
146 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
147 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
148 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
149 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
150 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
151 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
152 | PKG_CONFIG = @PKG_CONFIG@ | ||
153 | PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ | ||
154 | RANLIB = @RANLIB@ | ||
155 | SET_MAKE = @SET_MAKE@ | ||
156 | SHELL = @SHELL@ | ||
157 | STRIP = @STRIP@ | ||
158 | VERSION = @VERSION@ | ||
159 | XML2_CONFIG = @XML2_CONFIG@ | ||
160 | XML_CPPFLAGS = @XML_CPPFLAGS@ | ||
161 | XML_LIBS = @XML_LIBS@ | ||
162 | Z_CFLAGS = @Z_CFLAGS@ | ||
163 | Z_LIBS = @Z_LIBS@ | ||
164 | abs_builddir = @abs_builddir@ | ||
165 | abs_srcdir = @abs_srcdir@ | ||
166 | abs_top_builddir = @abs_top_builddir@ | ||
167 | abs_top_srcdir = @abs_top_srcdir@ | ||
168 | ac_ct_CC = @ac_ct_CC@ | ||
169 | ac_ct_CXX = @ac_ct_CXX@ | ||
170 | ac_ct_F77 = @ac_ct_F77@ | ||
171 | am__include = @am__include@ | ||
172 | am__leading_dot = @am__leading_dot@ | ||
173 | am__quote = @am__quote@ | ||
174 | am__tar = @am__tar@ | ||
175 | am__untar = @am__untar@ | ||
176 | bindir = @bindir@ | ||
177 | build = @build@ | ||
178 | build_alias = @build_alias@ | ||
179 | build_cpu = @build_cpu@ | ||
180 | build_os = @build_os@ | ||
181 | build_vendor = @build_vendor@ | ||
182 | builddir = @builddir@ | ||
183 | datadir = @datadir@ | ||
184 | datarootdir = @datarootdir@ | ||
185 | docdir = @docdir@ | ||
186 | dvidir = @dvidir@ | ||
187 | exec_prefix = @exec_prefix@ | ||
188 | host = @host@ | ||
189 | host_alias = @host_alias@ | ||
190 | host_cpu = @host_cpu@ | ||
191 | host_os = @host_os@ | ||
192 | host_vendor = @host_vendor@ | ||
193 | htmldir = @htmldir@ | ||
194 | includedir = @includedir@ | ||
195 | infodir = @infodir@ | ||
196 | install_sh = @install_sh@ | ||
197 | libdir = @libdir@ | ||
198 | libexecdir = @libexecdir@ | ||
199 | localedir = @localedir@ | ||
200 | localstatedir = @localstatedir@ | ||
201 | mandir = @mandir@ | ||
202 | mkdir_p = @mkdir_p@ | ||
203 | oldincludedir = @oldincludedir@ | ||
204 | pdfdir = @pdfdir@ | ||
205 | prefix = @prefix@ | ||
206 | program_transform_name = @program_transform_name@ | ||
207 | psdir = @psdir@ | ||
208 | sbindir = @sbindir@ | ||
209 | sharedstatedir = @sharedstatedir@ | ||
210 | srcdir = @srcdir@ | ||
211 | sysconfdir = @sysconfdir@ | ||
212 | target_alias = @target_alias@ | ||
213 | top_builddir = @top_builddir@ | ||
214 | top_srcdir = @top_srcdir@ | ||
215 | pluginimpdir = $(pkglibdir)/plugins/import | ||
216 | pluginimp_LTLIBRARIES = imp_cob.la | ||
217 | AM_CFLAGS = \ | ||
218 | -Wall -ansi -pedantic \ | ||
219 | -DG_LOG_DOMAIN=\"LibG3D\" \ | ||
220 | @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ | ||
221 | @GLIB_CFLAGS@ | ||
222 | |||
223 | INCLUDES = -I$(top_srcdir)/include | ||
224 | AM_LDFLAGS = \ | ||
225 | -no-undefined -module \ | ||
226 | @PLUGINS_LDFLAGS@ | ||
227 | |||
228 | imp_cob_la_SOURCES = imp_cob.c | ||
229 | imp_cob_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ | ||
230 | all: all-am | ||
231 | |||
232 | .SUFFIXES: | ||
233 | .SUFFIXES: .c .lo .o .obj | ||
234 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
235 | @for dep in $?; do \ | ||
236 | case '$(am__configure_deps)' in \ | ||
237 | *$$dep*) \ | ||
238 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ | ||
239 | && exit 0; \ | ||
240 | exit 1;; \ | ||
241 | esac; \ | ||
242 | done; \ | ||
243 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_cob/Makefile'; \ | ||
244 | cd $(top_srcdir) && \ | ||
245 | $(AUTOMAKE) --gnu plugins/import/imp_cob/Makefile | ||
246 | .PRECIOUS: Makefile | ||
247 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
248 | @case '$?' in \ | ||
249 | *config.status*) \ | ||
250 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
251 | *) \ | ||
252 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
253 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
254 | esac; | ||
255 | |||
256 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
257 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
258 | |||
259 | $(top_srcdir)/configure: $(am__configure_deps) | ||
260 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
261 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
262 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
263 | install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) | ||
264 | @$(NORMAL_INSTALL) | ||
265 | test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" | ||
266 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
267 | if test -f $$p; then \ | ||
268 | f=$(am__strip_dir) \ | ||
269 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ | ||
270 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ | ||
271 | else :; fi; \ | ||
272 | done | ||
273 | |||
274 | uninstall-pluginimpLTLIBRARIES: | ||
275 | @$(NORMAL_UNINSTALL) | ||
276 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
277 | p=$(am__strip_dir) \ | ||
278 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ | ||
279 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ | ||
280 | done | ||
281 | |||
282 | clean-pluginimpLTLIBRARIES: | ||
283 | -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) | ||
284 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
285 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
286 | test "$$dir" != "$$p" || dir=.; \ | ||
287 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
288 | rm -f "$${dir}/so_locations"; \ | ||
289 | done | ||
290 | imp_cob.la: $(imp_cob_la_OBJECTS) $(imp_cob_la_DEPENDENCIES) | ||
291 | $(LINK) -rpath $(pluginimpdir) $(imp_cob_la_OBJECTS) $(imp_cob_la_LIBADD) $(LIBS) | ||
292 | |||
293 | mostlyclean-compile: | ||
294 | -rm -f *.$(OBJEXT) | ||
295 | |||
296 | distclean-compile: | ||
297 | -rm -f *.tab.c | ||
298 | |||
299 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_cob.Plo@am__quote@ | ||
300 | |||
301 | .c.o: | ||
302 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
303 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
304 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
305 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
306 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
307 | |||
308 | .c.obj: | ||
309 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
310 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
311 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
312 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
313 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
314 | |||
315 | .c.lo: | ||
316 | @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
317 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
318 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
319 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
320 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
321 | |||
322 | mostlyclean-libtool: | ||
323 | -rm -f *.lo | ||
324 | |||
325 | clean-libtool: | ||
326 | -rm -rf .libs _libs | ||
327 | |||
328 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
329 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
330 | unique=`for i in $$list; do \ | ||
331 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
332 | done | \ | ||
333 | $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ | ||
334 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
335 | mkid -fID $$unique | ||
336 | tags: TAGS | ||
337 | |||
338 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
339 | $(TAGS_FILES) $(LISP) | ||
340 | tags=; \ | ||
341 | here=`pwd`; \ | ||
342 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
343 | unique=`for i in $$list; do \ | ||
344 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
345 | done | \ | ||
346 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
347 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
348 | if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ | ||
349 | test -n "$$unique" || unique=$$empty_fix; \ | ||
350 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
351 | $$tags $$unique; \ | ||
352 | fi | ||
353 | ctags: CTAGS | ||
354 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
355 | $(TAGS_FILES) $(LISP) | ||
356 | tags=; \ | ||
357 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
358 | unique=`for i in $$list; do \ | ||
359 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
360 | done | \ | ||
361 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
362 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
363 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | ||
364 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
365 | $$tags $$unique | ||
366 | |||
367 | GTAGS: | ||
368 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
369 | && cd $(top_srcdir) \ | ||
370 | && gtags -i $(GTAGS_ARGS) $$here | ||
371 | |||
372 | distclean-tags: | ||
373 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
374 | |||
375 | distdir: $(DISTFILES) | ||
376 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
377 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
378 | list='$(DISTFILES)'; \ | ||
379 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
380 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
381 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
382 | case $$dist_files in \ | ||
383 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
384 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
385 | sort -u` ;; \ | ||
386 | esac; \ | ||
387 | for file in $$dist_files; do \ | ||
388 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
389 | if test -d $$d/$$file; then \ | ||
390 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
391 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
392 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
393 | fi; \ | ||
394 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
395 | else \ | ||
396 | test -f $(distdir)/$$file \ | ||
397 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
398 | || exit 1; \ | ||
399 | fi; \ | ||
400 | done | ||
401 | check-am: all-am | ||
402 | check: check-am | ||
403 | all-am: Makefile $(LTLIBRARIES) | ||
404 | installdirs: | ||
405 | for dir in "$(DESTDIR)$(pluginimpdir)"; do \ | ||
406 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
407 | done | ||
408 | install: install-am | ||
409 | install-exec: install-exec-am | ||
410 | install-data: install-data-am | ||
411 | uninstall: uninstall-am | ||
412 | |||
413 | install-am: all-am | ||
414 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
415 | |||
416 | installcheck: installcheck-am | ||
417 | install-strip: | ||
418 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
419 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
420 | `test -z '$(STRIP)' || \ | ||
421 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
422 | mostlyclean-generic: | ||
423 | |||
424 | clean-generic: | ||
425 | |||
426 | distclean-generic: | ||
427 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
428 | |||
429 | maintainer-clean-generic: | ||
430 | @echo "This command is intended for maintainers to use" | ||
431 | @echo "it deletes files that may require special tools to rebuild." | ||
432 | clean: clean-am | ||
433 | |||
434 | clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ | ||
435 | mostlyclean-am | ||
436 | |||
437 | distclean: distclean-am | ||
438 | -rm -rf ./$(DEPDIR) | ||
439 | -rm -f Makefile | ||
440 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
441 | distclean-tags | ||
442 | |||
443 | dvi: dvi-am | ||
444 | |||
445 | dvi-am: | ||
446 | |||
447 | html: html-am | ||
448 | |||
449 | info: info-am | ||
450 | |||
451 | info-am: | ||
452 | |||
453 | install-data-am: install-pluginimpLTLIBRARIES | ||
454 | |||
455 | install-dvi: install-dvi-am | ||
456 | |||
457 | install-exec-am: | ||
458 | |||
459 | install-html: install-html-am | ||
460 | |||
461 | install-info: install-info-am | ||
462 | |||
463 | install-man: | ||
464 | |||
465 | install-pdf: install-pdf-am | ||
466 | |||
467 | install-ps: install-ps-am | ||
468 | |||
469 | installcheck-am: | ||
470 | |||
471 | maintainer-clean: maintainer-clean-am | ||
472 | -rm -rf ./$(DEPDIR) | ||
473 | -rm -f Makefile | ||
474 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
475 | |||
476 | mostlyclean: mostlyclean-am | ||
477 | |||
478 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
479 | mostlyclean-libtool | ||
480 | |||
481 | pdf: pdf-am | ||
482 | |||
483 | pdf-am: | ||
484 | |||
485 | ps: ps-am | ||
486 | |||
487 | ps-am: | ||
488 | |||
489 | uninstall-am: uninstall-pluginimpLTLIBRARIES | ||
490 | |||
491 | .MAKE: install-am install-strip | ||
492 | |||
493 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
494 | clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ | ||
495 | distclean-compile distclean-generic distclean-libtool \ | ||
496 | distclean-tags distdir dvi dvi-am html html-am info info-am \ | ||
497 | install install-am install-data install-data-am install-dvi \ | ||
498 | install-dvi-am install-exec install-exec-am install-html \ | ||
499 | install-html-am install-info install-info-am install-man \ | ||
500 | install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ | ||
501 | install-ps install-ps-am install-strip installcheck \ | ||
502 | installcheck-am installdirs maintainer-clean \ | ||
503 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
504 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
505 | tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES | ||
506 | |||
507 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
508 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
509 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/imp_cob.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/imp_cob.c new file mode 100644 index 0000000..0e9df6b --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/imp_cob.c | |||
@@ -0,0 +1,430 @@ | |||
1 | /* $Id$ */ | ||
2 | |||
3 | /* | ||
4 | libg3d - 3D object loading library | ||
5 | |||
6 | Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This library is free software; you can redistribute it and/or | ||
9 | modify it under the terms of the GNU Lesser General Public | ||
10 | License as published by the Free Software Foundation; either | ||
11 | version 2.1 of the License, or (at your option) any later version. | ||
12 | |||
13 | This library is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
16 | Lesser General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU Lesser General Public | ||
19 | License along with this library; if not, write to the Free Software | ||
20 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
21 | */ | ||
22 | |||
23 | #include <stdio.h> | ||
24 | #include <stdlib.h> | ||
25 | #include <string.h> | ||
26 | |||
27 | #include <g3d/types.h> | ||
28 | #include <g3d/context.h> | ||
29 | #include <g3d/material.h> | ||
30 | #include <g3d/model.h> | ||
31 | #include <g3d/vector.h> | ||
32 | #include <g3d/matrix.h> | ||
33 | #include <g3d/stream.h> | ||
34 | #include <g3d/iff.h> | ||
35 | |||
36 | static gboolean cob_read_file_bin(G3DStream *stream, G3DModel *model, | ||
37 | gboolean is_be, G3DContext *context); | ||
38 | |||
39 | EAPI | ||
40 | gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, | ||
41 | G3DModel *model, gpointer user_data) | ||
42 | { | ||
43 | gchar header[32]; | ||
44 | gboolean file_is_ascii, file_is_be; | ||
45 | G3DMatrix rmatrix[16]; | ||
46 | |||
47 | if(g3d_stream_read(stream, header, 32) != 32) { | ||
48 | g_warning("COB: could not read header"); | ||
49 | return FALSE; | ||
50 | } | ||
51 | |||
52 | if(strncmp(header, "Caligari ", 9) != 0) { | ||
53 | g_warning("COB: '%s' is not a valid TrueSpace file", stream->uri); | ||
54 | return FALSE; | ||
55 | } | ||
56 | |||
57 | file_is_ascii = (header[15] == 'A'); | ||
58 | file_is_be = (header[16] == 'H'); | ||
59 | |||
60 | #if DEBUG > 0 | ||
61 | g_debug("COB: file version %.*s, %s, %s endian\n", | ||
62 | 6, header + 9, | ||
63 | file_is_ascii ? "ASCII" : "binary", | ||
64 | file_is_be ? "big" : "little" ); | ||
65 | #endif | ||
66 | |||
67 | if(file_is_ascii) { | ||
68 | g_warning("COB: ASCII files are unsupported at the moment"); | ||
69 | return FALSE; | ||
70 | } | ||
71 | |||
72 | cob_read_file_bin(stream, model, file_is_be, context); | ||
73 | |||
74 | g3d_matrix_identity(rmatrix); | ||
75 | g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix); | ||
76 | g3d_model_transform(model, rmatrix); | ||
77 | |||
78 | return TRUE; | ||
79 | } | ||
80 | |||
81 | EAPI | ||
82 | gchar *plugin_description(void) | ||
83 | { | ||
84 | return g_strdup("Caligari TrueSpace models."); | ||
85 | } | ||
86 | |||
87 | EAPI | ||
88 | gchar **plugin_extensions(void) | ||
89 | { | ||
90 | return g_strsplit("cob", ":", 0); | ||
91 | } | ||
92 | |||
93 | /* | ||
94 | * COB specific | ||
95 | */ | ||
96 | |||
97 | #define cob_read_e(stream, what, be) \ | ||
98 | ((be) ? g3d_stream_read_ ## what ## _be(stream) : \ | ||
99 | g3d_stream_read_ ## what ## _le(stream)) | ||
100 | |||
101 | #define COB_F_HOLE 0x08 | ||
102 | #define COB_F_BACKCULL 0x10 | ||
103 | |||
104 | static gboolean cob_read_chunk_header_bin(G3DStream *stream, gboolean is_be, | ||
105 | guint32 *type, guint16 *ver_maj, guint16 *ver_min, | ||
106 | guint32 *id, guint32 *parent_id, guint32 *len) | ||
107 | { | ||
108 | *type = | ||
109 | (g3d_stream_read_int8(stream) << 24) + | ||
110 | (g3d_stream_read_int8(stream) << 16) + | ||
111 | (g3d_stream_read_int8(stream) << 8) + | ||
112 | (g3d_stream_read_int8(stream)); | ||
113 | *ver_maj = cob_read_e(stream, int16, is_be); | ||
114 | *ver_min = cob_read_e(stream, int16, is_be); | ||
115 | *id = cob_read_e(stream, int32, is_be); | ||
116 | *parent_id = cob_read_e(stream, int32, is_be); | ||
117 | *len = cob_read_e(stream, int32, is_be); | ||
118 | |||
119 | return TRUE; | ||
120 | } | ||
121 | |||
122 | static gchar *cob_read_name_bin(G3DStream *stream, guint32 *len, gboolean is_be) | ||
123 | { | ||
124 | gchar *buffer, *name; | ||
125 | guint32 dc, namelen; | ||
126 | |||
127 | dc = cob_read_e(stream, int16, is_be); | ||
128 | *len -= 2; | ||
129 | |||
130 | namelen = cob_read_e(stream, int16, is_be); | ||
131 | *len -= 2; | ||
132 | |||
133 | buffer = g_new0(gchar, namelen + 1); | ||
134 | g3d_stream_read(stream, buffer, namelen); | ||
135 | *len -= namelen; | ||
136 | |||
137 | name = g_strdup_printf("%s (%d)", buffer, dc); | ||
138 | |||
139 | g_free(buffer); | ||
140 | return name; | ||
141 | } | ||
142 | |||
143 | static G3DObject *cob_read_grou_bin(G3DStream *stream, guint32 len, gboolean is_be) | ||
144 | { | ||
145 | G3DObject *object; | ||
146 | |||
147 | object = g_new0(G3DObject, 1); | ||
148 | object->name = cob_read_name_bin(stream, &len, is_be); | ||
149 | #if DEBUG > 0 | ||
150 | g_debug("COB: Grou: name is '%s'", object->name); | ||
151 | #endif | ||
152 | |||
153 | if(len > 0) | ||
154 | g3d_stream_skip(stream, len); | ||
155 | |||
156 | return object; | ||
157 | } | ||
158 | |||
159 | static G3DObject *cob_read_polh_bin(G3DStream *stream, guint32 len, gboolean is_be, | ||
160 | G3DContext *context) | ||
161 | { | ||
162 | G3DObject *object; | ||
163 | guint32 nfaces, i; | ||
164 | G3DFloat curpos[16]; | ||
165 | |||
166 | object = g_new0(G3DObject, 1); | ||
167 | object->name = cob_read_name_bin(stream, &len, is_be); | ||
168 | #if DEBUG > 0 | ||
169 | g_debug("COB: PolH: name is '%s'", object->name); | ||
170 | #endif | ||
171 | |||
172 | /* local axes: 4 x 12 */ | ||
173 | g3d_stream_skip(stream, 48); | ||
174 | len -= 48; | ||
175 | |||
176 | /* current position: 3 x 16 */ | ||
177 | g3d_matrix_identity(curpos); | ||
178 | for(i = 0; i < 12; i ++) | ||
179 | { | ||
180 | curpos[i] = cob_read_e(stream, float, is_be); | ||
181 | len -= 4; | ||
182 | } | ||
183 | g3d_matrix_transpose(curpos); | ||
184 | |||
185 | /*g3d_matrix_dump(curpos);*/ | ||
186 | |||
187 | /* vertex list */ | ||
188 | object->vertex_count = cob_read_e(stream, int32, is_be); | ||
189 | len -= 4; | ||
190 | object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3); | ||
191 | for(i = 0; i < object->vertex_count; i ++) | ||
192 | { | ||
193 | object->vertex_data[i*3+0] = cob_read_e(stream, float, is_be); | ||
194 | object->vertex_data[i*3+1] = cob_read_e(stream, float, is_be); | ||
195 | object->vertex_data[i*3+2] = cob_read_e(stream, float, is_be); | ||
196 | g3d_vector_transform( | ||
197 | &(object->vertex_data[i*3+0]), | ||
198 | &(object->vertex_data[i*3+1]), | ||
199 | &(object->vertex_data[i*3+2]), | ||
200 | curpos); | ||
201 | g3d_context_update_interface(context); | ||
202 | len -= 12; | ||
203 | } | ||
204 | |||
205 | /* texture vertex list */ | ||
206 | object->tex_vertex_count = cob_read_e(stream, int32, is_be); | ||
207 | len -= 4; | ||
208 | object->tex_vertex_data = g_new0(G3DFloat, object->tex_vertex_count * 2); | ||
209 | for(i = 0; i < object->tex_vertex_count; i ++) | ||
210 | { | ||
211 | object->tex_vertex_data[i*2+0] = cob_read_e(stream, float, is_be); | ||
212 | object->tex_vertex_data[i*2+1] = cob_read_e(stream, float, is_be); | ||
213 | g3d_context_update_interface(context); | ||
214 | len -= 8; | ||
215 | } | ||
216 | |||
217 | /* faces and holes */ | ||
218 | nfaces = cob_read_e(stream, int32, is_be); | ||
219 | len -= 4; | ||
220 | for(i = 0; i < nfaces; i ++) | ||
221 | { | ||
222 | G3DFace *face; | ||
223 | guint8 flags; | ||
224 | guint32 nverts, j, matidx; | ||
225 | |||
226 | flags = g3d_stream_read_int8(stream); | ||
227 | len -= 1; | ||
228 | if(flags & COB_F_HOLE) | ||
229 | { | ||
230 | /* hole: ignore for now */ | ||
231 | nverts = cob_read_e(stream, int16, is_be); | ||
232 | len -= 2; | ||
233 | for(j = 0; j < nverts; j ++) | ||
234 | { | ||
235 | cob_read_e(stream, int32, is_be); | ||
236 | cob_read_e(stream, int32, is_be); | ||
237 | len -= 8; | ||
238 | } | ||
239 | } | ||
240 | else | ||
241 | { | ||
242 | /* "real" face */ | ||
243 | nverts = cob_read_e(stream, int16, is_be); | ||
244 | len -= 2; | ||
245 | matidx = cob_read_e(stream, int16, is_be); | ||
246 | len -= 2; | ||
247 | face = g_new0(G3DFace, 1); | ||
248 | |||
249 | face->vertex_count = nverts; | ||
250 | face->vertex_indices = g_new0(guint32, nverts); | ||
251 | for(j = 0; j < nverts; j ++) | ||
252 | { | ||
253 | face->vertex_indices[j] = cob_read_e(stream, int32, is_be); | ||
254 | cob_read_e(stream, int32, is_be); /* UV indices */ | ||
255 | len -= 8; | ||
256 | } | ||
257 | |||
258 | /* set material */ | ||
259 | if(matidx < g_slist_length(object->materials)) | ||
260 | face->material = g_slist_nth_data(object->materials, matidx); | ||
261 | else | ||
262 | { | ||
263 | for(j = g_slist_length(object->materials); j <= matidx; j ++) | ||
264 | { | ||
265 | G3DMaterial *material = g3d_material_new(); | ||
266 | material->name = g_strdup_printf("fallback material %d", | ||
267 | j); | ||
268 | object->materials = | ||
269 | g_slist_append(object->materials, material); | ||
270 | } | ||
271 | |||
272 | face->material = g_slist_nth_data(object->materials, matidx); | ||
273 | } | ||
274 | |||
275 | object->faces = g_slist_prepend(object->faces, face); | ||
276 | } | ||
277 | |||
278 | g3d_context_update_interface(context); | ||
279 | } | ||
280 | |||
281 | if(len > 0) | ||
282 | g3d_stream_skip(stream, len); | ||
283 | |||
284 | return object; | ||
285 | } | ||
286 | |||
287 | static int cob_read_mat1_bin(G3DStream *stream, guint32 len, gboolean is_be, | ||
288 | G3DObject *object) | ||
289 | { | ||
290 | G3DMaterial *material; | ||
291 | guint32 matidx; | ||
292 | |||
293 | g_return_val_if_fail(object != NULL, FALSE); | ||
294 | |||
295 | matidx = cob_read_e(stream, int16, is_be); | ||
296 | len -= 2; | ||
297 | |||
298 | material = g_slist_nth_data(object->materials, matidx); | ||
299 | |||
300 | if(material) | ||
301 | { | ||
302 | g_free(material->name); | ||
303 | material->name = g_strdup_printf("material #%d", matidx); | ||
304 | |||
305 | /* shader type */ | ||
306 | g3d_stream_read_int8(stream); | ||
307 | len --; | ||
308 | |||
309 | /* facet type */ | ||
310 | g3d_stream_read_int8(stream); | ||
311 | len --; | ||
312 | |||
313 | /* autofacet angle */ | ||
314 | g3d_stream_read_int8(stream); | ||
315 | len --; | ||
316 | |||
317 | /* RGBA */ | ||
318 | material->r = cob_read_e(stream, float, is_be); | ||
319 | material->g = cob_read_e(stream, float, is_be); | ||
320 | material->b = cob_read_e(stream, float, is_be); | ||
321 | material->a = cob_read_e(stream, float, is_be); | ||
322 | len -= 16; | ||
323 | } | ||
324 | else | ||
325 | { | ||
326 | #if DEBUG > 0 | ||
327 | g_debug("COB: Mat1: material #%d not used, ignoring...", matidx); | ||
328 | #endif | ||
329 | } | ||
330 | |||
331 | if(len > 0) | ||
332 | g3d_stream_skip(stream, len); | ||
333 | |||
334 | return TRUE; | ||
335 | } | ||
336 | |||
337 | static int cob_read_unit_bin(G3DStream *stream, guint32 len, gboolean is_be) | ||
338 | { | ||
339 | guint16 uidx; | ||
340 | #if DEBUG > 0 | ||
341 | static gchar *units[] = { | ||
342 | "millimeters", | ||
343 | "centimeters", | ||
344 | "meters", | ||
345 | "kilometers", | ||
346 | "inches", | ||
347 | "feet", | ||
348 | "yards", | ||
349 | "miles", | ||
350 | "points" }; | ||
351 | #endif | ||
352 | |||
353 | uidx = cob_read_e(stream, int16, is_be); | ||
354 | #if DEBUG > 0 | ||
355 | if(uidx >= (sizeof(units) / sizeof(gchar *))) | ||
356 | { | ||
357 | g_warning("COB: Unit: out of range (%d)", uidx); | ||
358 | return FALSE; | ||
359 | } | ||
360 | g_debug("COB: units are %s", units[uidx]); | ||
361 | #endif | ||
362 | return TRUE; | ||
363 | } | ||
364 | |||
365 | static gboolean cob_read_file_bin(G3DStream *stream, G3DModel *model, | ||
366 | gboolean is_be, G3DContext *context) | ||
367 | { | ||
368 | G3DObject *object = NULL; | ||
369 | guint32 type, id, parent_id, len; | ||
370 | guint16 ver_min, ver_maj; | ||
371 | gboolean exit = FALSE; | ||
372 | |||
373 | do { | ||
374 | cob_read_chunk_header_bin(stream, is_be, &type, &ver_maj, &ver_min, | ||
375 | &id, &parent_id, &len); | ||
376 | |||
377 | #if DEBUG > 0 | ||
378 | g_debug("\\[%c%c%c%c] 0x%08x (0x%08x) %d bytes", | ||
379 | (type >> 24) & 0xFF, (type >> 16) & 0xFF, | ||
380 | (type >> 8) & 0xFF, type & 0xFF, | ||
381 | id, parent_id, len); | ||
382 | #endif | ||
383 | |||
384 | switch(type) | ||
385 | { | ||
386 | case G3D_IFF_MKID('E', 'N', 'D', ' '): | ||
387 | /* end of file */ | ||
388 | exit = TRUE; | ||
389 | break; | ||
390 | |||
391 | case G3D_IFF_MKID('G', 'r', 'o', 'u'): | ||
392 | /* group */ | ||
393 | object = cob_read_grou_bin(stream, len, is_be); | ||
394 | #if 0 | ||
395 | model->objects = g_slist_append(model->objects, object); | ||
396 | #endif | ||
397 | break; | ||
398 | |||
399 | case G3D_IFF_MKID('M', 'a', 't', '1'): | ||
400 | cob_read_mat1_bin(stream, len, is_be, object); | ||
401 | break; | ||
402 | |||
403 | case G3D_IFF_MKID('P', 'o', 'l', 'H'): | ||
404 | /* polygonal data */ | ||
405 | object = cob_read_polh_bin(stream, len, is_be, context); | ||
406 | model->objects = g_slist_append(model->objects, object); | ||
407 | break; | ||
408 | |||
409 | case G3D_IFF_MKID('U', 'n', 'i', 't'): | ||
410 | cob_read_unit_bin(stream, len, is_be); | ||
411 | break; | ||
412 | |||
413 | default: | ||
414 | #if DEBUG > 0 | ||
415 | g_warning("COB: unknown chunk type: %c%c%c%c: 0x%08x (0x%08x)," | ||
416 | " %u bytes", | ||
417 | (type >> 24) & 0xFF, (type >> 16) & 0xFF, | ||
418 | (type >> 8) & 0xFF, type & 0xFF, | ||
419 | id, parent_id, len); | ||
420 | #endif | ||
421 | g3d_stream_skip(stream, len); | ||
422 | break; | ||
423 | } | ||
424 | } | ||
425 | while(type && !exit); | ||
426 | |||
427 | return TRUE; | ||
428 | } | ||
429 | |||
430 | #undef cob_read_e | ||