merge -r 60439:60440
[mono.git] / mcs / class / System.Web / Makefile
1 thisdir = class/System.Web
2 SUBDIRS = Test
3 include ../../build/rules.make
4
5 LIBRARY = System.Web.dll
6
7 ifeq (net_2_0, $(PROFILE))
8
9 LIBRARY_USE_INTERMEDIATE_FILE = yes
10
11 # Because System.Web.dll and System.Web.Services.dll have a cyclic dependency, we need a two-pass build.
12 # 1st pass - build System.Web.dll without System.Web.Services.dll reference
13 # 2nd pass - build System.Web.dll with System.Web.Services.dll reference
14
15 WEBSERVICES_DEP := System.Web.Services.dll
16 WEBSERVICES_DEP_FILE := $(wildcard ../lib/$(PROFILE)/$(WEBSERVICES_DEP))
17 CYCLIC_DEPS := $(WEBSERVICES_DEP)
18 CYCLIC_DEP_FILES := $(WEBSERVICES_DEP_FILE)
19 endif
20
21 RESOURCE_FILES_1= \
22         resources/WebUIValidation.js
23
24 RESOURCE_FILES_2 = \
25         resources/arrow_minus.gif \
26         resources/arrow_noexpand.gif \
27         resources/arrow_plus.gif \
28         resources/arrow_up.gif \
29         resources/arrow_down.gif \
30         resources/box_full.gif \
31         resources/box_empty.gif \
32         resources/box_minus.gif \
33         resources/box_noexpand.gif \
34         resources/box_plus.gif \
35         resources/contact.gif \
36         resources/dot_empty.gif \
37         resources/dot_full.gif \
38         resources/dots.gif \
39         resources/inbox.gif \
40         resources/star_empty.gif \
41         resources/star_full.gif \
42         resources/warning.gif \
43         resources/TreeView_noexpand.gif \
44         resources/TreeView_dash.gif \
45         resources/TreeView_dashminus.gif \
46         resources/TreeView_dashplus.gif \
47         resources/TreeView_i.gif \
48         resources/TreeView_l.gif \
49         resources/TreeView_lminus.gif \
50         resources/TreeView_lplus.gif \
51         resources/TreeView_minus.gif \
52         resources/TreeView_plus.gif \
53         resources/TreeView_r.gif \
54         resources/TreeView_rminus.gif \
55         resources/TreeView_rplus.gif \
56         resources/TreeView_t.gif \
57         resources/TreeView_tminus.gif \
58         resources/TreeView_tplus.gif \
59         resources/transparent.gif \
60         resources/callback.js \
61         resources/webform.js \
62         System.Web.UI.WebControls/GridView.js \
63         System.Web.UI.WebControls/TreeView.js \
64         System.Web.UI.WebControls/Menu.js
65
66 OTHER_RES = $(RESOURCE_FILES_1)
67 ifeq (net_2_0, $(PROFILE))
68 OTHER_RES += $(RESOURCE_FILES_2)
69 OTHER_LIB_MCS_FLAGS = -nowarn:618 -r:System.Configuration.dll
70 endif
71
72
73 LIB_MCS_FLAGS = \
74         -unsafe \
75         -nowarn:612,618,649     \
76         -r:$(corlib)                    \
77         -r:System.dll                   \
78         -r:System.Drawing.dll           \
79         -r:System.Data.dll              \
80         -r:System.Xml.dll               \
81         -r:System.EnterpriseServices.dll \
82         $(OTHER_LIB_MCS_FLAGS) \
83         $(OTHER_RES:%=/resource:%)
84
85 ifneq ($(CYCLIC_DEPS:%=../lib/$(PROFILE)/%), $(CYCLIC_DEP_FILES))
86 NO_SIGN_ASSEMBLY = yes
87 NO_INSTALL = yes
88 all-local: echo-warning
89 .PHONY: echo-warning
90
91 ifeq   (, $(strip $(CYCLIC_DEP_FILES)))
92 echo-warning:
93         @echo "** Warning: System.Web.dll built without parts that depend on: $(CYCLIC_DEPS)"
94 endif
95 endif
96
97 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:219 -nowarn:169
98
99 EXTRA_DISTFILES = $(RESOURCE_FILES_2) $(RESOURCE_FILES_1)
100
101 include ../../build/library.make
102
103 ifdef WEBSERVICES_DEP_FILE
104 LIB_MCS_FLAGS += -define:WEBSERVICES_DEP -r:$(WEBSERVICES_DEP)
105 $(the_lib): $(WEBSERVICES_DEP_FILE)
106 endif