Merge pull request #4045 from lambdageek/bug-47867
[mono.git] / mcs / class / System.Runtime.Serialization / Makefile
index b3931890c31b6a0d111ddfc6f920c53aab462fad..2846091bf4da709cda950411f76a90037fcdae46 100644 (file)
@@ -2,22 +2,40 @@ thisdir = class/System.Runtime.Serialization
 SUBDIRS = 
 include ../../build/rules.make
 
+RESOURCE_FILES =
+
 LIBRARY = System.Runtime.Serialization.dll
+LIB_REFS = System System.Xml System.Core System.ServiceModel.Internals
 LIB_MCS_FLAGS = \
-               /r:System.dll \
-               /r:System.Xml.dll
-
-TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
+               -unsafe \
+               -d:NO_DYNAMIC_CODEGEN \
+               /nowarn:168,169,219,414,618,1634 \
+               $(RESOURCE_FILES:%=/resource:%)
+TXT_RESOURCE_STRINGS = ../referencesource/System.Runtime.Serialization/System.Runtime.Serialization.txt
 
-EXTRA_DISTFILES =
+ifneq (2.1, $(FRAMEWORK_VERSION))
+LIB_REFS += System.Data System.Configuration SMDiagnostics
+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
 
-# This is a WinFX only assembly
-VALID_PROFILE := $(filter net_2_0 net_3_0, $(PROFILE))
-ifndef VALID_PROFILE
-LIBRARY_NAME = dummy-System.Runtime.Serialization.dll
-NO_INSTALL = yes
-NO_SIGN_ASSEMBLY = yes
-NO_TEST = yes
+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
+
+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 \
+       ReferenceSource.common.sources \
+       ReferenceSource.desktop.sources
+
 include ../../build/library.make