0ef8e6e2811a72a8312f225f1f9250b607b2e9de
[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
11 LIB_REFS = System System.Xml System.Core System.Runtime.Serialization
12 LIB_MCS_FLAGS = \
13                 /nowarn:414,169,67,3005,436,219,618 \
14                 /unsafe \
15                 /d:TRACE \
16                 /r:System.dll \
17                 /r:System.Xml.dll \
18                 /r:System.Core.dll \
19                 /r:System.Runtime.Serialization.dll \
20                 $(RESOURCE_FILES:%=/resource:%)
21
22 ifneq (2.1, $(FRAMEWORK_VERSION))
23 LIB_REFS += System.Configuration System.Data System.Security System.IdentityModel System.IdentityModel.Selectors System.Transactions System.Messaging System.Web System.Web.Services Mono.Security
24 LIB_MCS_FLAGS += /d:NET_3_0     \
25                         /r:System.Configuration.dll \
26                         /r:System.Data.dll      \
27                         /r:System.Security.dll \
28                         /r:System.IdentityModel.dll \
29                         /r:System.IdentityModel.Selectors.dll \
30                         /r:System.Transactions.dll \
31                         /r:System.Messaging.dll \
32                         /r:System.Web.dll \
33                         /r:System.Web.Services.dll \
34                         /r:Mono.Security.dll
35 endif
36
37 ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
38 LIB_REFS += System.Web.ApplicationServices
39 LIB_MCS_FLAGS += /r:System.Web.ApplicationServices.dll
40 activation = $(the_libdir_base)System.ServiceModel.Activation.dll
41 servicemodel_deps = $(activation)
42
43 ifneq (plainservice/,$(intermediate))
44 LIB_REFS += System.ServiceModel.Activation
45 LIB_MCS_FLAGS += -define:HAS_ACTIVATION -r:System.ServiceModel.Activation.dll
46 LIB_REFS += System.Web.ApplicationServices
47 LIB_MCS_FLAGS += -r:System.Web.ApplicationServices.dll
48 endif
49 endif
50
51 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
52
53 TEST_EXTRA_FILES = \
54         System.ServiceModel_test_net_3_0.dll.config \
55         Test/config/* \
56         Test/Resources/* \
57         Test/XmlFiles/* \
58         Test/System.ServiceModel.Channels/soap-fault*.xml \
59         Test/System.ServiceModel.Channels/binary-message.raw \
60         Test/System.ServiceModel.Description/dump.xml \
61         Test/MetadataTests/Resources/*
62
63 EXTRA_DISTFILES = $(RESOURCE_FILES) $(TEST_EXTRA_FILES)
64
65 # Useful for debugging under Visual Studio 2005
66 # NO_SIGN_ASSEMBLY = yes
67
68 VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
69 ifndef VALID_PROFILE
70 LIBRARY_NAME = dummy-System.ServiceModel.dll
71 NO_INSTALL = yes
72 NO_SIGN_ASSEMBLY = yes
73 NO_TEST = yes
74 endif
75
76 include ../../build/library.make
77
78 $(the_libdir_base)System.ServiceModel.dll: $(servicemodel_deps)
79
80 $(activation):
81         (cd ../System.ServiceModel.Activation; $(MAKE) $@)
82
83 ifneq (plainservice/,$(intermediate))
84 $(the_libdir_base)plainservice/System.ServiceModel.dll:
85         $(MAKE) intermediate=plainservice/ $(the_libdir_base)plainservice/System.ServiceModel.dll
86 endif
87
88 .NOTPARALLEL: $(servicemodel_deps)
89
90 CLEAN_FILES = $(the_libdir_base)plainservice/System.ServiceModel.dll
91
92 ifndef intermediate
93 csproj-local:
94         $(MAKE) csproj-local intermediate=plainservice/
95 endif