Xerces 3 revisions.
[shibboleth/cpp-xmltooling.git] / xmltoolingtest / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 if BUILD_UNITTEST
4
5 bin_PROGRAMS = xmltoolingtest
6 xmltoolingtest_CXXFLAGS = $(CXXTESTFLAGS)
7 if BUILD_XMLSEC
8 xmltoolingtest_LDFLAGS = $(XMLSEC_LIBS)
9 xmltoolingtest_LDADD = $(top_builddir)/xmltooling/libxmltooling.la
10 else
11 xmltoolingtest_LDADD = $(top_builddir)/xmltooling/libxmltooling-lite.la
12 endif
13
14 else
15
16 bin_PROGRAMS = 
17
18 endif
19
20 if BUILD_XMLSEC
21 xmlsec_sources = \
22     EncryptionTest.h \
23     FilesystemCredentialResolverTest.h \
24     InlineKeyResolverTest.h \
25     MemoryStorageServiceTest.h \
26     SecurityHelperTest.h \
27     SignatureTest.h
28 else
29 xmlsec_sources =
30 endif
31
32 xmltoolingtest_h = \
33     ComplexXMLObjectTest.h \
34     DateTimeTest.h \
35     ExceptionTest.h \
36     KeyInfoTest.h \
37     MarshallingTest.h \
38     UnmarshallingTest.h \
39     TemplateEngineTest.h \
40     xmltoolingtest.h \
41     ${xmlsec_sources}
42
43 noinst_HEADERS = \
44     XMLObjectBaseTestCase.h
45
46 nodist_xmltoolingtest_SOURCES = $(xmltoolingtest_h:.h=.cpp)
47
48 CLEANFILES = $(nodist_xmltoolingtest_SOURCES)
49
50 do-cxxtestgen:
51         if test $(HFILE) = "xmltoolingtest.h"; then \
52                 $(CXXTEST) --error-printer --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
53         else \
54                 $(CXXTEST) --part --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
55         fi;
56
57 $(nodist_xmltoolingtest_SOURCES): %.cpp: %.h
58         $(MAKE) do-cxxtestgen HFILE=$< CPPFILE=$@
59
60 EXTRA_DIST = xmltoolingtest.vcproj $(xmltoolingtest_h) data