Merge pull request #1817 from alexanderkyte/bug30085
[mono.git] / mcs / class / System.Web.Services / Makefile
index a97bfdad2c3cbf399c701f645bdb061d5af1e83c..2ba370c04ab51bc78b7aa505fcefbfb158a0aebe 100644 (file)
@@ -3,18 +3,35 @@ SUBDIRS =
 include ../../build/rules.make
 
 LIBRARY = System.Web.Services.dll
+MOBILE := $(filter monotouch monodroid xammac mobile mobile_static, $(PROFILE))
+ifdef MOBILE
+LIB_REFS = System System.Xml
 LIB_MCS_FLAGS = \
        -nowarn:649 -nowarn:169                 \
        -r:$(corlib)                            \
        -r:System.dll                           \
-       -r:System.EnterpriseServices.dll        \
        -r:System.Xml.dll                       \
-       -r:System.Web.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_REFS = System System.EnterpriseServices System.Xml System.Web System.DirectoryServices System.Data System.Design
+LIB_MCS_FLAGS = -nowarn:168,169,219,414,612,649 -d:MONO_BROKEN_CONFIGURATION_DLL
+
+plainweb_dir = $(the_libdir_base)plainweb
+plainweb = $(plainweb_dir)/System.Web.dll
+system_web_services_deps = $(plainweb)
+
+plaindesign_dir = $(the_libdir_base)plaindesign
+plaindesign = $(plaindesign_dir)/System.Design.dll
+system_design_deps = $(plaindesign)
+
+LOCAL_MCS_FLAGS = -lib:$(plaindesign_dir) -lib:$(plainweb_dir)
 
-ifeq (net_2_0, $(PROFILE))
+LIB_REFS += System.Configuration
 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
 
@@ -23,7 +40,18 @@ 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/test.wsdl
+       Test/System.Web.Services.Description/*.wsdl
 
 include ../../build/library.make
+
+$(the_libdir_base)$(LIBRARY): $(system_web_services_deps) $(system_design_deps)
+
+$(plainweb):
+       (cd ../System.Web; $(MAKE) $@)
+
+$(plaindesign):
+       (cd ../System.Design; $(MAKE) $@)
+
+.NOTPARALLEL: $(plainweb) $(plaindesign)