X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web%2FMakefile;h=c2ee6241f1fa0502d7165cdc1f5b0bc26bb76ae1;hb=e5f18f5de34b1d86d5a66c3c3440653bac4a9bc4;hp=fa76f8ebba7b72c6e1e86f374f231ee93eff9a4a;hpb=eb0925b7ff51d5b93a8c9170d72278c59aa1b7a8;p=mono.git diff --git a/mcs/class/System.Web/Makefile b/mcs/class/System.Web/Makefile index fa76f8ebba7..c2ee6241f1f 100644 --- a/mcs/class/System.Web/Makefile +++ b/mcs/class/System.Web/Makefile @@ -2,7 +2,26 @@ thisdir = class/System.Web SUBDIRS = Test include ../../build/rules.make -RESOURCE_FILES = \ +LIBRARY = System.Web.dll + +ifeq (net_2_0, $(PROFILE)) + +LIBRARY_USE_INTERMEDIATE_FILE = yes + +# Because System.Web.dll and System.Web.Services.dll have a cyclic dependency, we need a two-pass build. +# 1st pass - build System.Web.dll without System.Web.Services.dll reference +# 2nd pass - build System.Web.dll with System.Web.Services.dll reference + +WEBSERVICES_DEP := System.Web.Services.dll +WEBSERVICES_DEP_FILE := $(wildcard ../lib/$(PROFILE)/$(WEBSERVICES_DEP)) +CYCLIC_DEPS := $(WEBSERVICES_DEP) +CYCLIC_DEP_FILES := $(WEBSERVICES_DEP_FILE) +endif + +RESOURCE_FILES_1= \ + resources/WebUIValidation.js + +RESOURCE_FILES_2 = \ resources/arrow_minus.gif \ resources/arrow_noexpand.gif \ resources/arrow_plus.gif \ @@ -37,25 +56,110 @@ RESOURCE_FILES = \ resources/TreeView_t.gif \ resources/TreeView_tminus.gif \ resources/TreeView_tplus.gif \ + resources/transparent.gif \ resources/callback.js \ + resources/webform.js \ + resources/MaintainScrollPositionOnPostBack.js \ + System.Web.UI.WebControls/GridView.js \ System.Web.UI.WebControls/TreeView.js \ System.Web.UI.WebControls/Menu.js +OTHER_RES = $(RESOURCE_FILES_1) +TEST_RESOURCE_FILES = \ + Test/mainsoft/NunitWeb/NunitWeb/Resources/My.master \ + Test/mainsoft/NunitWeb/NunitWeb/Resources/MyPage.aspx \ + Test/mainsoft/NunitWeb/NunitWeb/Resources/MyPage.aspx.cs \ + Test/mainsoft/NunitWeb/NunitWeb/Resources/MyPageWithMaster.aspx \ + Test/mainsoft/NunitWeb/NunitWeb/Resources/Web.config \ + Test/mainsoft/NunitWebResources/menuclass.aspx \ + Test/mainsoft/NunitWebResources/FormView.aspx \ + Test/mainsoft/NunitWebResources/PostBackMenuTest.aspx \ + Test/mainsoft/NunitWebResources/PageWithStyleSheet.aspx \ + Test/mainsoft/NunitWebResources/PageWithTheme.aspx \ + Test/mainsoft/NunitWebResources/RunTimeSetTheme.aspx \ + Test/mainsoft/NunitWebResources/ReadOnlyPropertyBind.aspx \ + Test/mainsoft/NunitWebResources/ReadOnlyPropertyControl.ascx \ + Test/mainsoft/NunitWebResources/Theme1.skin \ + Test/mainsoft/NunitWebResources/UrlProperty.aspx \ + Test/mainsoft/NunitWebResources/UrlProperty.ascx \ + Test/mainsoft/NunitWebResources/UrlProperty.ascx.cs \ + Test/mainsoft/NunitWebResources/Web.sitemap \ + Test/mainsoft/NunitWebResources/WizardTest.skin \ + Test/mainsoft/NunitWebResources/FooterTemplateTest.aspx \ + Test/mainsoft/NunitWebResources/DetailsViewTemplates.aspx \ + Test/mainsoft/NunitWebResources/DetailsViewDataActions.aspx \ + Test/mainsoft/NunitWebResources/DetailsViewProperties1.aspx \ + Test/mainsoft/NunitWebResources/Bluehills.jpg \ + Test/mainsoft/NunitWebResources/FormViewTest1.aspx \ + Test/mainsoft/NunitWebResources/FormViewInsertEditDelete.aspx \ + Test/mainsoft/NunitWebResources/XMLDataSourceTest.xml \ + Test/mainsoft/NunitWebResources/XMLDataSourceTest.xsl \ + Test/mainsoft/NunitWebResources/XMLDataSourceTest1.aspx \ + Test/mainsoft/NunitWebResources/XMLDataSourceTest2.aspx \ + Test/mainsoft/NunitWebResources/XMLDataSourceTest3.aspx \ + Test/mainsoft/NunitWebResources/XMLDataSourceTest4.aspx \ + Test/mainsoft/NunitWebResources/LoginViewTest1.aspx \ + Test/mainsoft/NunitWebResources/WebLogin.config \ + Test/mainsoft/NunitWebResources/CallbackTest1.aspx \ + Test/mainsoft/NunitWebResources/CallbackTest2.aspx \ + Test/mainsoft/MainsoftWebTest/nunitweb_config.xml + +NUNIT_RESOURCE_FILES = $(TEST_RESOURCE_FILES) ifeq (net_2_0, $(PROFILE)) -OTHER_RES = $(RESOURCE_FILES) +OTHER_RES += $(RESOURCE_FILES_2) +OTHER_LIB_MCS_FLAGS = -nowarn:618 -r:System.Configuration.dll endif -LIBRARY = System.Web.dll LIB_MCS_FLAGS = \ - /nowarn:649 \ - /r:$(corlib) \ - /r:System.dll \ - /r:System.Drawing.dll \ - /r:System.Data.dll \ - /r:System.Xml.dll \ - /r:System.EnterpriseServices.dll \ + -unsafe \ + -nowarn:612,618,649 \ + -r:$(corlib) \ + -r:System.dll \ + -r:System.Drawing.dll \ + -r:System.Data.dll \ + -r:System.Xml.dll \ + -r:System.EnterpriseServices.dll \ + $(OTHER_LIB_MCS_FLAGS) \ $(OTHER_RES:%=/resource:%) -EXTRA_DISTFILES = $(RESOURCE_FILES) +ifneq ($(CYCLIC_DEPS:%=../lib/$(PROFILE)/%), $(CYCLIC_DEP_FILES)) +NO_SIGN_ASSEMBLY = yes +NO_INSTALL = yes +all-local: echo-warning +.PHONY: echo-warning + +ifeq (, $(strip $(CYCLIC_DEP_FILES))) +echo-warning: + @echo "** Warning: System.Web.dll built without parts that depend on: $(CYCLIC_DEPS)" +endif +endif + +TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -doc:$(test_lib:.dll=.xml) -nowarn:219 -nowarn:169 $(NUNIT_RESOURCE_FILES:%=/resource:%) + +EXTRA_DISTFILES = $(RESOURCE_FILES_2) $(RESOURCE_FILES_1) $(TEST_RESOURCE_FILES) include ../../build/library.make + +ifdef WEBSERVICES_DEP_FILE +LIB_MCS_FLAGS += -define:WEBSERVICES_DEP -r:$(WEBSERVICES_DEP) +$(the_lib): $(WEBSERVICES_DEP_FILE) +endif + +run-aaa: test + $(TEST_RUNTIME) $(TEST_HARNESS) $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) \ + /output:TestResult-$(PROFILE).log /include:aaa /xml:TestResult-$(PROFILE).xml $(test_assemblies) || ok=false; \ + (echo ''; cat TestResult-$(PROFILE).log) | sed '1,/^Tests run: /d'; \ + $$ok + +run-nunitweb: test + $(TEST_RUNTIME) $(TEST_HARNESS) $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) \ + /output:TestResult-$(PROFILE).log /include:NunitWeb /xml:TestResult-$(PROFILE).xml $(test_assemblies) || ok=false; \ + (echo ''; cat TestResult-$(PROFILE).log) | sed '1,/^Tests run: /d'; \ + $$ok + +run-nunitweb-ondotnet: test + $(TEST_HARNESS) $(TEST_HARNESS_FLAGS) $(LOCAL_TEST_HARNESS_FLAGS) \ + /output:TestResult-ondotnet-$(PROFILE).log /include:NunitWeb /xml:TestResult-ondotnet-$(PROFILE).xml $(test_assemblies) || ok=false; \ + (echo ''; cat TestResult-ondotnet-$(PROFILE).log) | sed '1,/^Tests run: /d'; \ + $$ok +