[build] Change the way how mcs references are passed to compiler to always use full...
[mono.git] / mcs / class / System.Runtime.Serialization / Makefile
index 1ddb249990596a2b309a27825b433b0cdf390ec2..19894c49fd901c0240648f0a428c0fefeb6e6bcc 100644 (file)
@@ -2,34 +2,39 @@ thisdir = class/System.Runtime.Serialization
 SUBDIRS = 
 include ../../build/rules.make
 
-RESOURCE_FILES = \
-       resources/mstypes.schema
+RESOURCE_FILES =
 
 LIBRARY = System.Runtime.Serialization.dll
+LIB_REFS = System System.Xml System.Core System.ServiceModel.Internals SMDiagnostics
 LIB_MCS_FLAGS = \
-                       /nowarn:168,169,219,414 \
-               /r:System.dll \
-               /r:System.Xml.dll \
-               /r:System.Core.dll \
-               $(RESOURCE_FILES:%=/resource:%)
+               -unsafe \
+               -d:NO_DYNAMIC_CODEGEN \
+               /nowarn:168,169,219,414 \
+               $(RESOURCE_FILES:%=/resource:%)
 
 ifneq (2.1, $(FRAMEWORK_VERSION))
-LIB_MCS_FLAGS += /d:NET_3_0 /r:System.Data.dll /r:System.Configuration.dll
+LIB_REFS += System.Data System.Configuration
+LIB_MCS_FLAGS += /d:NET_3_0
+else
+LIB_MCS_FLAGS += /d:NO_CONFIGURATION /d:NO_SECURITY_ATTRIBUTES /d:NO_CODEDOM /d:NO_DESKTOP_SECURITY
 endif
 
-TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) /r:System.ServiceModel.dll
+ifdef XAMMAC_4_5
+LIB_MCS_FLAGS += /d:NO_CONFIGURATION
+endif
+
+TEST_RESOURCE_FILES = \
+       Test/Resources/WSDL/collections.wsdl    \
+       Test/Resources/WSDL/custom-collections.wsdl
 
-EXTRA_DISTFILES = $(RESOURCE_FILES) \
+TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) $(TEST_RESOURCE_FILES:%=/resource:%)
+TEST_LIB_REFS = System.ServiceModel System.Web.Services
+
+EXTRA_DISTFILES = $(RESOURCE_FILES) $(TEST_RESOURCE_FILES) \
        Test/Resources/FrameworkTypes/* \
        Test/Resources/Schemas/*.xsd \
-       Test/System.Runtime.Serialization/one.xml
-
-VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
-ifndef VALID_PROFILE
-LIBRARY_NAME = dummy-System.Runtime.Serialization.dll
-NO_INSTALL = yes
-NO_SIGN_ASSEMBLY = yes
-NO_TEST = yes
-endif
+       Test/System.Runtime.Serialization/one.xml \
+       ReferenceSource.common.sources \
+       ReferenceSource.desktop.sources
 
 include ../../build/library.make