[build] Change the way how mcs references are passed to compiler to always use full...
[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 ifdef XAMMAC_4_5
23 LIB_MCS_FLAGS += /d:NO_CONFIGURATION
24 endif
25
26 TEST_RESOURCE_FILES = \
27         Test/Resources/WSDL/collections.wsdl    \
28         Test/Resources/WSDL/custom-collections.wsdl
29
30 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) $(TEST_RESOURCE_FILES:%=/resource:%)
31 TEST_LIB_REFS = System.ServiceModel System.Web.Services
32
33 EXTRA_DISTFILES = $(RESOURCE_FILES) $(TEST_RESOURCE_FILES) \
34         Test/Resources/FrameworkTypes/* \
35         Test/Resources/Schemas/*.xsd \
36         Test/System.Runtime.Serialization/one.xml \
37         ReferenceSource.common.sources \
38         ReferenceSource.desktop.sources
39
40 include ../../build/library.make