Merge pull request #1603 from iainx/coverage-null-protect
[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         resources/mstypes.schema
7
8 LIBRARY = System.Runtime.Serialization.dll
9 LIB_REFS = System System.Xml System.Core
10 LIB_MCS_FLAGS = \
11                 -unsafe \
12                 /nowarn:168,169,219,414 \
13                 /r:System.dll \
14                 /r:System.Xml.dll \
15                 /r:System.Core.dll \
16                 $(RESOURCE_FILES:%=/resource:%)
17
18 RESOURCE_STRINGS = ../../../external/referencesource/System.Runtime.Serialization/System.Runtime.Serialization.txt
19
20 ifneq (2.1, $(FRAMEWORK_VERSION))
21 LIB_REFS += System.Data System.Configuration
22 LIB_MCS_FLAGS += /d:NET_3_0 /r:System.Data.dll /r:System.Configuration.dll
23 endif
24
25 TEST_RESOURCE_FILES = \
26         Test/Resources/WSDL/collections.wsdl    \
27         Test/Resources/WSDL/custom-collections.wsdl
28
29 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) /r:System.ServiceModel.dll /r:System.Web.Services.dll \
30         $(TEST_RESOURCE_FILES:%=/resource:%)
31
32 EXTRA_DISTFILES = $(RESOURCE_FILES) $(TEST_RESOURCE_FILES) \
33         Test/Resources/FrameworkTypes/* \
34         Test/Resources/Schemas/*.xsd \
35         Test/System.Runtime.Serialization/one.xml
36
37 include ../../build/library.make