X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltoolingtest%2FMakefile.am;h=9ad2b45ed318d2466b2c0ba2b0da9d2e6cd98b82;hb=47ba040008729fbf96eeab6beeeef1461df52a6f;hp=21ffe27c3d77f54b17746095a0b72b7a9c939009;hpb=c48d7083f8b84057a01867b334393477cb6eab04;p=shibboleth%2Fcpp-xmltooling.git diff --git a/xmltoolingtest/Makefile.am b/xmltoolingtest/Makefile.am index 21ffe27..9ad2b45 100644 --- a/xmltoolingtest/Makefile.am +++ b/xmltoolingtest/Makefile.am @@ -1,35 +1,61 @@ 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 \ + PKIXEngineTest.h \ + SecurityHelperTest.h \ SignatureTest.h else xmlsec_sources = endif -noinst_HEADERS = \ - XMLObjectBaseTestCase.h \ +xmltoolingtest_h = \ ComplexXMLObjectTest.h \ + DateTimeTest.h \ ExceptionTest.h \ KeyInfoTest.h \ MarshallingTest.h \ + NonVisibleNamespaceTest.h \ + SOAPTest.h \ UnmarshallingTest.h \ + TemplateEngineTest.h \ xmltoolingtest.h \ ${xmlsec_sources} +noinst_HEADERS = \ + XMLObjectBaseTestCase.h \ + $(xmltoolingtest_h) + nodist_xmltoolingtest_SOURCES = $(xmltoolingtest_h:.h=.cpp) +if BUILD_UNITTEST +BUILT_SOURCES = $(nodist_xmltoolingtest_SOURCES) CLEANFILES = $(nodist_xmltoolingtest_SOURCES) +endif do-cxxtestgen: - if test $(HFILE) = "xmltoolingtest.h"; then \ + if test "$(CPPFILE)" = "xmltoolingtest.cpp"; then \ $(CXXTEST) --error-printer --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \ else \ $(CXXTEST) --part --have-eh --have-std --abort-on-fail -o $(CPPFILE) $(HFILE); \ @@ -38,6 +64,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.vcxproj.filters data