Merge pull request #1899 from saper/resgencond
[mono.git] / mcs / class / System.ServiceModel.Web / Makefile
1 thisdir = class/System.ServiceModel.Web
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = System.ServiceModel.Web.dll
6 LIB_REFS = System System.Xml System.Runtime.Serialization System.ServiceModel System.Core
7 LIB_MCS_FLAGS =
8
9 ifneq (2.1, $(FRAMEWORK_VERSION))
10 LIB_REFS += System.Configuration 
11
12 ifndef NO_SYSTEM_WEB_DEPENDENCY
13 LIB_REFS += System.Web.Extensions
14 endif
15
16 LIB_MCS_FLAGS += -d:NET_3_5 -d:NET_3_0
17 endif
18
19 ifndef NO_SYSTEM_SERVICEMODEL_ACTIVATION_DEPENDENCY
20 ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
21 LIB_REFS += System.ServiceModel.Activation
22 endif
23 endif
24
25 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
26
27 EXTRA_DISTFILES = $(RESOURCE_FILES) \
28         Test/config/webHttpBinding \
29         Test/config/webHttpBinding.config
30
31 VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
32 ifndef VALID_PROFILE
33 LIBRARY_NAME = dummy-System.ServiceModel.Web.dll
34 NO_INSTALL = yes
35 NO_SIGN_ASSEMBLY = yes
36 endif
37
38 test-data-ondotnet:
39         csc -out:SyndicationSerializerUtil.exe -r:System.ServiceModel.Web.dll $(LIB_MCS_FLAGS) Test\\System.ServiceModel.Syndication\\SyndicationSerializerUtil.cs Test\\System.ServiceModel.Syndication\\FeedLib.cs
40         ./SyndicationSerializerUtil.exe
41
42 test-data:
43         $(LIBRARY_COMPILE) Test/System.ServiceModel.Syndication/SyndicationSerializerUtil.cs Test/System.ServiceModel.Syndication/FeedLib.cs -out:SyndicationSerializerUtil.exe -r:System.ServiceModel.Web.dll $(LIB_MCS_FLAGS)
44         ./SyndicationSerializerUtil.exe
45
46 include ../../build/library.make