Changes to split library into a lite and full version.
[shibboleth/xmltooling.git] / xmltoolingtest / Makefile.am
index 1718841..6705fd9 100644 (file)
@@ -7,14 +7,29 @@ else
 bin_PROGRAMS = 
 endif
 
+if BUILD_XMLSEC
+xmlsec_sources = \
+    EncryptionTest.h \
+    FilesystemCredentialResolverTest.h \
+    InlineKeyResolverTest.h \
+    SignatureTest.h
+else
+xmlsec_sources =
+endif
+
 xmltoolingtest_h = \
-       xmltoolingtest.h \
-       MarshallingTest.h \
-       UnknownTest.h \
-       UnmarshallingTest.h
+    ComplexXMLObjectTest.h \
+    ExceptionTest.h \
+    KeyInfoTest.h \
+    MarshallingTest.h \
+    MemoryStorageServiceTest.h \
+    UnmarshallingTest.h \
+    TemplateEngineTest.h \
+    xmltoolingtest.h \
+    ${xmlsec_sources}
 
 noinst_HEADERS = \
-       XMLObjectBaseTestCase.h
+    XMLObjectBaseTestCase.h
 
 nodist_xmltoolingtest_SOURCES = $(xmltoolingtest_h:.h=.cpp)
 
@@ -30,6 +45,10 @@ do-cxxtestgen:
 $(nodist_xmltoolingtest_SOURCES): %.cpp: %.h
        $(MAKE) do-cxxtestgen HFILE=$< CPPFILE=$@
 
+if BUILD_XMLSEC
 xmltoolingtest_LDADD = $(top_builddir)/xmltooling/libxmltooling.la
+else
+xmltoolingtest_LDADD = $(top_builddir)/xmltooling/libxmltooling-lite.la
+endif
 
 EXTRA_DIST = xmltoolingtest.vcproj $(xmltoolingtest_h) data