Merge pull request #487 from mayerwin/patch-1
[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                 /d:TRACE \
14                 /r:System.dll \
15                 /r:System.Xml.dll \
16                 /r:System.Core.dll \
17                 /r:System.Runtime.Serialization.dll \
18                 $(RESOURCE_FILES:%=/resource:%)
19
20 ifneq (2.1, $(FRAMEWORK_VERSION))
21 LIB_MCS_FLAGS += /d:NET_3_0     \
22                         /r:System.Configuration.dll \
23                         /r:System.Data.dll      \
24                         /r:System.Security.dll \
25                         /r:System.IdentityModel.dll \
26                         /r:System.IdentityModel.Selectors.dll \
27                         /r:System.Transactions.dll \
28                         /r:System.Messaging.dll \
29                         /r:System.Web.dll \
30                         /r:System.Web.Services.dll \
31                         /r:Mono.Security.dll
32 endif
33
34 ifeq (moonlight_raw, $(PROFILE))
35 LIB_MCS_FLAGS += /r:System.Net
36 endif
37
38 ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
39 LIB_MCS_FLAGS += /r:System.Web.ApplicationServices.dll
40 endif
41
42 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
43
44 TEST_EXTRA_FILES = \
45         System.ServiceModel_test_net_3_0.dll.config \
46         Test/config/* \
47         Test/Resources/* \
48         Test/XmlFiles/* \
49         Test/System.ServiceModel.Channels/soap-fault*.xml \
50         Test/System.ServiceModel.Channels/binary-message.raw \
51         Test/System.ServiceModel.Description/dump.xml \
52         Test/MetadataTests/Resources/*
53
54 EXTRA_DISTFILES = $(RESOURCE_FILES) $(TEST_EXTRA_FILES)
55
56 # Useful for debugging under Visual Studio 2005
57 # NO_SIGN_ASSEMBLY = yes
58
59 VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
60 ifndef VALID_PROFILE
61 LIBRARY_NAME = dummy-System.ServiceModel.dll
62 NO_INSTALL = yes
63 NO_SIGN_ASSEMBLY = yes
64 NO_TEST = yes
65 endif
66
67
68
69 include ../../build/library.make