[xbuild] Implements property functions using constructor syntax. Fixes #12999
[mono.git] / mcs / class / System.ServiceModel.Web / Makefile
index cddd588faffa1c7d1d50adf4e22cddf2e25135e7..4db6ae805b3a07ad81884797fc95a1a147169a55 100644 (file)
@@ -3,14 +3,26 @@ SUBDIRS =
 include ../../build/rules.make
 
 LIBRARY = System.ServiceModel.Web.dll
-LIB_MCS_FLAGS = -r:System.dll -r:System.Xml.dll -r:System.Configuration.dll -r:../lib/net_3_0/System.Runtime.Serialization.dll -r:../lib/net_3_0/System.ServiceModel.dll
+LIB_MCS_FLAGS = -r:System.dll -r:System.Xml.dll -r:System.Runtime.Serialization.dll -r:System.ServiceModel.dll -r:System.Core.dll
+
+ifneq (2.1, $(FRAMEWORK_VERSION))
+LIB_MCS_FLAGS += -d:NET_3_5 -d:NET_3_0         \
+                       -r:System.Configuration.dll \
+                       -r:System.Web.Extensions.dll
+endif
+
+ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
+LIB_MCS_FLAGS += -r:System.ServiceModel.Activation.dll
+endif
 
 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
 
-EXTRA_DISTFILES = $(RESOURCE_FILES)
+EXTRA_DISTFILES = $(RESOURCE_FILES) \
+       Test/config/webHttpBinding \
+       Test/config/webHttpBinding.config \
+       System.Runtime.Serialization.Json/DataContractJsonSerializerSettings.cs
 
-# This is a Orcas only assembly
-VALID_PROFILE := $(filter net_3_5, $(PROFILE))
+VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
 ifndef VALID_PROFILE
 LIBRARY_NAME = dummy-System.ServiceModel.Web.dll
 NO_INSTALL = yes
@@ -18,7 +30,7 @@ NO_SIGN_ASSEMBLY = yes
 endif
 
 test-data-ondotnet:
-       csc -out:SyndicationSerializerUtil.exe -r:../lib/net_3_5/System.ServiceModel.Web.dll $(LIB_MCS_FLAGS) Test\\System.ServiceModel.Syndication\\SyndicationSerializerUtil.cs Test\\System.ServiceModel.Syndication\\FeedLib.cs
+       csc -out:SyndicationSerializerUtil.exe -r:System.ServiceModel.Web.dll $(LIB_MCS_FLAGS) Test\\System.ServiceModel.Syndication\\SyndicationSerializerUtil.cs Test\\System.ServiceModel.Syndication\\FeedLib.cs
        ./SyndicationSerializerUtil.exe
 
 test-data: