Merge pull request #1668 from alexanderkyte/bug1856
[mono.git] / mcs / class / System.Runtime.Serialization / Makefile
1 thisdir = class/System.Runtime.Serialization
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 RESOURCE_FILES =
6
7 LIBRARY = System.Runtime.Serialization.dll
8 LIB_REFS = System System.Xml System.Core System.ServiceModel.Internals SMDiagnostics
9 LIB_MCS_FLAGS = \
10                 -unsafe \
11                 -d:NO_DYNAMIC_CODEGEN \
12                 /nowarn:168,169,219,414 \
13                 $(RESOURCE_FILES:%=/resource:%)
14
15 ifneq (2.1, $(FRAMEWORK_VERSION))
16 LIB_REFS += System.Data System.Configuration
17 LIB_MCS_FLAGS += /d:NET_3_0
18 else
19 LIB_MCS_FLAGS += /d:NO_CONFIGURATION /d:NO_SECURITY_ATTRIBUTES /d:NO_CODEDOM /d:NO_DESKTOP_SECURITY
20 endif
21
22 TEST_RESOURCE_FILES = \
23         Test/Resources/WSDL/collections.wsdl    \
24         Test/Resources/WSDL/custom-collections.wsdl
25
26 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) /r:System.ServiceModel.dll /r:System.Web.Services.dll \
27         $(TEST_RESOURCE_FILES:%=/resource:%)
28
29 EXTRA_DISTFILES = $(RESOURCE_FILES) $(TEST_RESOURCE_FILES) \
30         Test/Resources/FrameworkTypes/* \
31         Test/Resources/Schemas/*.xsd \
32         Test/System.Runtime.Serialization/one.xml \
33         ReferenceSource.common.sources \
34         ReferenceSource.desktop.sources
35
36 include ../../build/library.make