1 ## Makefile.am fragment sourced by src/Makefile.am.
3 #
4 # Sodipodi svg wrapper
5 # Author: Lauris Kaplinski <lauris@ariman.ee>
6 # Most code is actually written by Raph Levien
7 #
8 # Implements svg interpretation of xml tree
9 #
11 svg/all: svg/libspsvg.a
13 svg/clean:
14 rm -f svg/libspsvg.a $(svg_libspsvg_a_OBJECTS)
16 svg_libspsvg_a_SOURCES = \
17 svg/css-ostringstream.h \
18 svg/css-ostringstream.cpp \
19 svg/gnome-canvas-bpath-util.cpp \
20 svg/gnome-canvas-bpath-util.h \
21 svg/itos.cpp \
22 svg/path-string.h \
23 svg/path-string.cpp \
24 svg/round.cpp \
25 svg/stringstream.h \
26 svg/stringstream.cpp \
27 svg/strip-trailing-zeros.h \
28 svg/strip-trailing-zeros.cpp \
29 svg/svg-affine.cpp \
30 svg/svg-color.cpp \
31 svg/svg-color.h \
32 svg/svg-icc-color.h \
33 svg/svg-length.cpp \
34 svg/svg-length.h \
35 svg/svg-path.cpp \
36 svg/svg.h
39 # This CxxTest stuff is adapted blindly from libnr/Makefile_insert.
40 # It would be nice to reduce the amount of boilerplate / copy&paste here.
41 svg/test-svg-main.cpp: svg/test-svg.cpp
42 $(top_srcdir)/cxxtest/cxxtestgen.pl --template=$(srcdir)/selfname.tpl -root -o svg/test-svg-main.cpp $(svg_test_svg_includes)
44 svg/test-svg.cpp: $(svg_test_svg_includes) svg/Makefile_insert
45 $(top_srcdir)/cxxtest/cxxtestgen.pl -part -o svg/test-svg.cpp $(svg_test_svg_includes)
47 svg_test_svg_includes = \
48 $(srcdir)/svg/css-ostringstream-test.h \
49 $(srcdir)/svg/stringstream-test.h \
50 $(srcdir)/svg/svg-color-test.h \
51 $(srcdir)/svg/svg-path-test.h
53 svg_libtest_svg_a_SOURCES = \
54 svg/test-svg.cpp \
55 $(svg_test_svg_includes)
57 svg_libtest_stubs_a_SOURCES = \
58 svg/test-stubs.cpp svg/test-stubs.h
60 svg_test_svg_SOURCES = \
61 svg/test-svg-main.cpp \
62 $(svg_test_svg_includes)
64 svg_test_svg_LDADD = \
65 svg/libspsvg.a \
66 svg/libtest-svg.a \
67 svg/libtest-stubs.a \
68 2geom/lib2geom.a \
69 $(INKSCAPE_LIBS)