38f0a60528040ac2211955bf022fce0803a595fa
[mono.git] / mcs / class / System.ServiceModel / Makefile
1 thisdir = class/System.ServiceModel
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 RESOURCE_FILES = \
6         resources/WS-Addressing.schema  \
7         resources/ws-addr.xsd
8
9 LIBRARY = System.ServiceModel.dll
10 LIB_MCS_FLAGS = \
11                 /nowarn:414,169,67,3005,436,219,618 \
12                 /unsafe \
13                 /r:System.dll \
14                 /r:System.Xml.dll \
15                 /r:System.Runtime.Serialization.dll \
16                 $(RESOURCE_FILES:%=/resource:%)
17
18 ifneq (2.1, $(FRAMEWORK_VERSION))
19 LIB_MCS_FLAGS += /d:NET_3_0     \
20                         /r:System.Configuration.dll \
21                         /r:System.Data.dll      \
22                         /r:System.Security.dll \
23                         /r:System.IdentityModel.dll \
24                         /r:System.IdentityModel.Selectors.dll \
25                         /r:System.Transactions.dll \
26                         /r:System.Messaging.dll \
27                         /r:System.Web.dll \
28                         /r:System.Web.Services.dll \
29                         /r:Mono.Security.dll
30 endif
31
32 ifeq (2.1, $(FRAMEWORK_VERSION))
33 LIB_MCS_FLAGS += /r:System.Net /r:System.Core /r:System.Xml.Linq
34 endif
35
36 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
37
38 TEST_EXTRA_FILES = \
39         System.ServiceModel_test_net_3_0.dll.config \
40         Test/config/* \
41         Test/Resources/* \
42         Test/System.ServiceModel.Description/dump.xml
43
44 EXTRA_DISTFILES = $(RESOURCE_FILES) $(TEST_EXTRA_FILES)
45
46 # Useful for debugging under Visual Studio 2005
47 # NO_SIGN_ASSEMBLY = yes
48
49 VALID_PROFILE := $(filter net_2_0 net_2_1_raw, $(PROFILE))
50 ifndef VALID_PROFILE
51 LIBRARY_NAME = dummy-System.ServiceModel.dll
52 NO_INSTALL = yes
53 NO_SIGN_ASSEMBLY = yes
54 NO_TEST = yes
55 endif
56
57
58
59 include ../../build/library.make