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