Multi-line svn commit, see body.
[shibboleth/cpp-opensaml.git] / samltest / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 if BUILD_UNITTEST
4 bin_PROGRAMS = samltest
5 samltest_CXXFLAGS = $(CXXFLAGS) $(CXXTESTFLAGS)
6 else
7 bin_PROGRAMS = 
8 endif
9
10 samltest_h = \
11     samltest.h \
12     signature/SAML1AssertionTest.h \
13     signature/SAML1RequestTest.h \
14     signature/SAML1ResponseTest.h \
15     signature/SAML2AssertionTest.h \
16     saml1/core/impl/ActionTest.h \
17     saml1/core/impl/AdviceTest.h \
18     saml1/core/impl/AssertionIDReferenceTest.h \
19     saml1/core/impl/AssertionTest.h \
20     saml1/core/impl/AttributeDesignatorTest.h \
21     saml1/core/impl/AttributeStatementTest.h \
22     saml1/core/impl/AttributeTest.h \
23     saml1/core/impl/AudienceRestrictionConditionTest.h \
24     saml1/core/impl/AudienceTest.h \
25     saml1/core/impl/AuthenticationStatementTest.h \
26     saml2/core/impl/Artifact20Test.h \
27     saml2/core/impl/ArtifactResolve20Test.h \
28     saml2/core/impl/ArtifactResponse20Test.h \
29     saml2/core/impl/AssertionIDRequest20Test.h \
30     saml2/core/impl/AttributeQuery20Test.h \
31     saml2/core/impl/AuthnQuery20Test.h \
32     saml2/core/impl/AuthnRequest20Test.h \
33     saml2/core/impl/AuthzDecisionQuery20Test.h \
34     saml2/core/impl/GetComplete20Test.h \
35     saml2/core/impl/IDPEntry20Test.h \
36     saml2/core/impl/IDPList20Test.h \
37     saml2/core/impl/LogoutRequest20Test.h \
38     saml2/core/impl/LogoutResponse20Test.h \
39     saml2/core/impl/ManageNameIDRequest20Test.h \
40     saml2/core/impl/ManageNameIDResponse20Test.h \
41     saml2/core/impl/NameIDMappingRequest20Test.h \
42     saml2/core/impl/NameIDMappingResponse20Test.h \
43     saml2/core/impl/NameIDPolicy20Test.h \
44     saml2/core/impl/NewEncryptedID20Test.h \
45     saml2/core/impl/NewID20Test.h \
46     saml2/core/impl/RequesterID20Test.h \
47     saml2/core/impl/RequestedAuthnContext20Test.h \
48     saml2/core/impl/Response20Test.h \
49     saml2/core/impl/Scoping20Test.h \
50     saml2/core/impl/SessionIndex20Test.h \
51     saml2/core/impl/Status20Test.h \
52     saml2/core/impl/StatusCode20Test.h \
53     saml2/core/impl/StatusDetail20Test.h \
54     saml2/core/impl/StatusMessage20Test.h \
55     saml2/core/impl/StatusResponse20Test.h\
56     saml2/core/impl/Terminate20Test.h
57
58 noinst_HEADERS = \
59     internal.h \
60     signature/SAMLSignatureTestBase.h
61
62 nodist_samltest_SOURCES = $(samltest_h:.h=.cpp)
63
64 CLEANFILES = $(nodist_samltest_SOURCES)
65
66 do-cxxtestgen:
67         if test $(HFILE) = "samltest.h"; then \
68                 $(CXXTEST) --error-printer --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
69         else \
70                 $(CXXTEST) --part --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \
71         fi;
72
73 $(nodist_samltest_SOURCES): %.cpp: %.h
74         $(MAKE) do-cxxtestgen HFILE=$< CPPFILE=$@
75
76 samltest_LDADD = $(top_builddir)/saml/libsaml.la
77
78 EXTRA_DIST = samltest.vcproj $(samltest_h) data