Merge pull request #2802 from BrzVlad/feature-evacuation-opt2
[mono.git] / mcs / class / System.IdentityModel / Makefile
index da40b0c67a81126ff31eabea87b82c047592d011..5a8a72c4c50e416866c1a7670beb50a626555741 100644 (file)
@@ -3,28 +3,28 @@ SUBDIRS =
 include ../../build/rules.make
 
 LIBRARY = System.IdentityModel.dll
+LIB_REFS = System System.Xml System.Security System.Configuration Mono.Security System.Runtime.Serialization
 LIB_MCS_FLAGS = \
-                       /d:NET_3_0      \
-               /r:System.dll \
-               /r:System.Xml.dll \
-               /r:System.Security.dll \
-               /r:System.Web.dll \
-               /r:Mono.Security.dll \
-               /r:System.Runtime.Serialization.dll
+               /d:NET_3_0      \
+               $(OTHER_LIB_MCS_FLAGS)
+
+ifndef NO_SYSTEM_WEB_DEPENDENCY
+LIB_REFS += System.Web
+endif
+
+
+ifndef NO_SYSTEM_WEB_APPSERVICES_DEPENDENCY
+ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
+LIB_REFS += System.Web.ApplicationServices
+endif
+endif
 
 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
 
 EXTRA_DISTFILES = \
        Test/Resources/test.cer \
+       Test/Resources/test_neg_serial.cer \
        Test/Resources/test.pfx \
        Test/Resources/test2.pfx
 
-VALID_PROFILE := $(filter net_2_0 net_4_0, $(PROFILE))
-ifndef VALID_PROFILE
-LIBRARY_NAME = dummy-System.IdentityModel.dll
-NO_INSTALL = yes
-NO_SIGN_ASSEMBLY = yes
-NO_TEST = yes
-endif
-
 include ../../build/library.make