Merge pull request #587 from madewokherd/gdipdllmap
[mono.git] / mcs / class / System.Web.Services / Makefile
index aa6d3e1e69f636b09de7bc2783c4e2708e19a6bf..9a4d1cfed1fb46646aabccb6626032881d8d53f6 100644 (file)
@@ -3,13 +3,41 @@ SUBDIRS =
 include ../../build/rules.make
 
 LIBRARY = System.Web.Services.dll
+MOBILE := $(filter monotouch monodroid mobile mobile_static, $(PROFILE))
+ifdef MOBILE
 LIB_MCS_FLAGS = \
-       /nowarn:649 /nowarn:169                 \
-       /r:$(corlib)                            \
-       /r:System.dll                           \
-       /r:System.EnterpriseServices.dll        \
-       /r:System.Xml.dll                       \
-       /r:System.Web.dll
+       -nowarn:649 -nowarn:169                 \
+       -r:$(corlib)                            \
+       -r:System.dll                           \
+       -r:System.Xml.dll                       \
+       -resource:System.Web.Services.Description/wsdl-1.1.xsd,wsdl-1.1.xsd \
+       -resource:System.Web.Services.Description/wsdl-1.1-soap.xsd,wsdl-1.1-soap.xsd \
+       -resource:System.Web.Services.Description/web-reference.xsd,web-reference.xsd
+else
+LIB_MCS_FLAGS = \
+       -nowarn:649 -nowarn:169                 \
+       -r:$(corlib)                            \
+       -r:System.dll                           \
+       -r:System.EnterpriseServices.dll        \
+       -r:System.Xml.dll                       \
+       -r:System.Web.dll
+
+ifneq (1, $(FRAMEWORK_VERSION_MAJOR))
+LIB_MCS_FLAGS += \
+       -r:System.Configuration.dll \
+       -resource:System.Web.Services.Description/wsdl-1.1.xsd,wsdl-1.1.xsd \
+       -resource:System.Web.Services.Description/wsdl-1.1-soap.xsd,wsdl-1.1-soap.xsd \
+       -resource:System.Web.Services.Description/web-reference.xsd,web-reference.xsd
+endif
+endif
+
 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:618
 
+EXTRA_DISTFILES = \
+       System.Web.Services.Description/web-reference.xsd       \
+       System.Web.Services.Description/wsdl-1.1.xsd            \
+       System.Web.Services.Description/wsdl-1.1-soap.xsd       \
+       System.Web.Services.Description/wsdl.genxs              \
+       Test/System.Web.Services.Description/*.wsdl
+
 include ../../build/library.make