X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltoolingtest%2FMakefile.am;h=7dd62b2b0b6e1ee2ff63259f8ed3721c6eca3160;hb=2a45f2268892124b72e677aa65c6e2d730e0318d;hp=92f35d337268aa0cc34dbb20b2584bf8c6050df7;hpb=7068408b1c6000ac3d207c782ba4f8c4e731b178;p=shibboleth%2Fcpp-xmltooling.git diff --git a/xmltoolingtest/Makefile.am b/xmltoolingtest/Makefile.am index 92f35d3..7dd62b2 100644 --- a/xmltoolingtest/Makefile.am +++ b/xmltoolingtest/Makefile.am @@ -1,19 +1,45 @@ AUTOMAKE_OPTIONS = foreign if BUILD_UNITTEST + bin_PROGRAMS = xmltoolingtest -xmltoolingtest_CXXFLAGS = $(CXXFLAGS) $(CXXTESTFLAGS) +xmltoolingtest_CXXFLAGS = $(CXXTESTFLAGS) +if BUILD_XMLSEC +xmltoolingtest_LDFLAGS = $(XMLSEC_LIBS) +xmltoolingtest_LDADD = $(top_builddir)/xmltooling/libxmltooling.la +else +xmltoolingtest_LDADD = $(top_builddir)/xmltooling/libxmltooling-lite.la +endif + else + bin_PROGRAMS = + +endif + +if BUILD_XMLSEC +xmlsec_sources = \ + EncryptionTest.h \ + FilesystemCredentialResolverTest.h \ + InlineKeyResolverTest.h \ + MemoryStorageServiceTest.h \ + SecurityHelperTest.h \ + SignatureTest.h +else +xmlsec_sources = endif xmltoolingtest_h = \ ComplexXMLObjectTest.h \ + DateTimeTest.h \ + ExceptionTest.h \ + KeyInfoTest.h \ MarshallingTest.h \ - Signature.h \ - UnknownTest.h \ + NonVisibleNamespaceTest.h \ UnmarshallingTest.h \ - xmltoolingtest.h + TemplateEngineTest.h \ + xmltoolingtest.h \ + ${xmlsec_sources} noinst_HEADERS = \ XMLObjectBaseTestCase.h @@ -32,6 +58,4 @@ do-cxxtestgen: $(nodist_xmltoolingtest_SOURCES): %.cpp: %.h $(MAKE) do-cxxtestgen HFILE=$< CPPFILE=$@ -xmltoolingtest_LDADD = $(top_builddir)/xmltooling/libxmltooling.la - -EXTRA_DIST = xmltoolingtest.vcproj $(xmltoolingtest_h) data +EXTRA_DIST = xmltoolingtest.vcxproj $(xmltoolingtest_h) data