Permalink
Browse files

Add the library sources to the build.

  • Loading branch information...
1 parent 2c87b64 commit 4b4a67153381f1cd9bac36747dfec1861d0d478e @alriddoch committed Feb 11, 2010
Showing with 21 additions and 3 deletions.
  1. +9 −0 libcolladadae/Makefile.am
  2. +2 −2 libcolladadae/tests/Makefile.am
  3. +10 −1 libcolladadae/tests/dumpdae.c
@@ -1,3 +1,12 @@
SUBDIRS = tests
INCLUDES = -I$(top_srcdir)
+
+lib_LTLIBRARIES = libcolladadae-0.2.la
+
+libcolladadae_0_2_la_LDFLAGS = $(LIBMF_INTERFACE_VERSION)
+
+libcolladadae_0_2_la_SOURCES = parser.c
+
+libcolladadaeincludedir = $(includedir)/libmodelfile-0.2/libcolladadae
+libcolladadaeinclude = parser.h
@@ -2,8 +2,8 @@ SUBDIRS =
INCLUDES = -I$(top_srcdir)
+LDADD = -L$(top_builddir)/libcolladadae/ -lcolladadae-0.2
+
check_PROGRAMS = dumpdae
TESTS =
-
-dumpdae_LDADD =
@@ -1,10 +1,19 @@
-#include <libxml/parser.h>
+#include <libcolladadae/parser.h>
+
+#include <stdio.h>
int main(int argc, char ** argv)
{
+ libcolladadae_file * ret;
+
if (argc != 2) {
fprintf(stderr, "usage: %s <filename>\n", argv[0]);
return 1;
}
+ ret = libcolladadae_file_load(argv[1]);
+ if (ret == 0) {
+ fprintf(stderr, "Parsing %s failed\n", argv[1]);
+ return 1;
+ }
return 0;
}

0 comments on commit 4b4a671

Please sign in to comment.