Merge branch 'master' of github.com:mono/mono
[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.Core.dll \
16                 /r:System.Runtime.Serialization.dll \
17                 $(RESOURCE_FILES:%=/resource:%)
18
19 ifneq (2.1, $(FRAMEWORK_VERSION))
20 LIB_MCS_FLAGS += /d:NET_3_0     \
21                         /r:System.Configuration.dll \
22                         /r:System.Data.dll      \
23                         /r:System.Security.dll \
24                         /r:System.IdentityModel.dll \
25                         /r:System.IdentityModel.Selectors.dll \
26                         /r:System.Transactions.dll \
27                         /r:System.Messaging.dll \
28                         /r:System.Web.dll \
29                         /r:System.Web.Services.dll \
30                         /r:Mono.Security.dll
31 endif
32
33 ifeq (moonlight_raw, $(PROFILE))
34 LIB_MCS_FLAGS += /r:System.Net
35 endif
36
37 ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
38 LIB_MCS_FLAGS += /r:System.Web.ApplicationServices.dll
39 endif
40
41 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
42
43 TEST_EXTRA_FILES = \
44         System.ServiceModel_test_net_3_0.dll.config \
45         Test/config/* \
46         Test/Resources/* \
47         Test/System.ServiceModel.Description/dump.xml
48
49 EXTRA_DISTFILES = $(RESOURCE_FILES) $(TEST_EXTRA_FILES)
50
51 # Useful for debugging under Visual Studio 2005
52 # NO_SIGN_ASSEMBLY = yes
53
54 VALID_PROFILE := $(filter 2.0 2.1 4.0, $(FRAMEWORK_VERSION))
55 ifndef VALID_PROFILE
56 LIBRARY_NAME = dummy-System.ServiceModel.dll
57 NO_INSTALL = yes
58 NO_SIGN_ASSEMBLY = yes
59 NO_TEST = yes
60 endif
61
62
63
64 include ../../build/library.make