[System.Net] Add support for .pac proxy config scripts on mac
[mono.git] / mcs / class / Managed.Windows.Forms / Makefile
1 thisdir = class/Managed.Windows.Forms
2 include ../../build/rules.make
3
4 LIBRARY = System.Windows.Forms.dll
5
6 LIB_MCS_FLAGS = /unsafe \
7         /r:$(corlib) /r:System.dll /r:System.Xml.dll \
8         /r:System.Drawing.dll /r:Accessibility.dll \
9         /r:System.Data.dll /r:Mono.Posix.dll \
10         /r:Mono.WebBrowser \
11         /r:System.Configuration.dll \
12         /r:System.Runtime.Serialization.Formatters.Soap \
13         @System.Windows.Forms.dll.resources \
14         -nowarn:618,612,809
15
16 ifeq (true, $(GENERATE_RESOURCES))
17 LIB_MCS_FLAGS += /define:GENERATING_RESOURCES
18 endif
19
20 RESX_RESOURCES = \
21         resources/keyboards.resources
22         
23 CLEAN_FILES += $(RESX_RESOURCES)
24
25 CUR_RESOURCES = resources/NWSE.cur resources/NESW.cur \
26         resources/SplitterNS.cur \
27         resources/SplitterWE.cur \
28         resources/NWSE.cur \
29         resources/NESW.cur \
30         resources/DnDNo.cur \
31         resources/DnDCopy.cur \
32         resources/DnDLink.cur \
33         resources/DnDMove.cur
34
35 RESOURCES = $(RESX_RESOURCES) $(CUR_RESOURCES)
36
37 PREBUILT = $(RESX_RESOURCES:=.prebuilt)
38
39 IMAGES_RESOURCES = \
40         resources/16_computer.png               \
41         resources/32_computer.png               \
42         resources/computer.png                  \
43         resources/16_document-open.png          \
44         resources/32_document-open.png          \
45         resources/document-open.png             \
46         resources/16_folder.png                 \
47         resources/folder-new.png                \
48         resources/folder.png                    \
49         resources/16_folder-remote.png          \
50         resources/32_folder-remote.png          \
51         resources/folder-remote.png             \
52         resources/go-previous.png               \
53         resources/go-top.png                    \
54         resources/22_page-magnifier.png         \
55         resources/preferences-system-windows.png\
56         resources/16_printer.png                \
57         resources/32_printer.png                \
58         resources/text-x-generic.png            \
59         resources/16_user-desktop.png           \
60         resources/32_user-desktop.png           \
61         resources/user-desktop.png              \
62         resources/16_user-home.png              \
63         resources/32_user-home.png              \
64         resources/user-home.png         \
65         resources/16_dialog-error.png           \
66         resources/16_dialog-information.png     \
67         resources/16_dialog-warning.png         \
68         resources/1-up.png                      \
69         resources/2-up.png                      \
70         resources/3-up.png                      \
71         resources/4-up.png                      \
72         resources/6-up.png                      \
73         resources/nav_delete.png                \
74         resources/nav_end.png                   \
75         resources/nav_first.png                 \
76         resources/nav_previous.png              \
77         resources/nav_next.png                  \
78         resources/nav_plus.png                  \
79         resources/image-missing.png             \
80         resources/image-x-generic.png           \
81         resources/propertygrid-alphabetical.png \
82         resources/propertygrid-categorized.png  \
83         resources/EventsTab.bmp                 \
84         resources/PropertiesTab.bmp             \
85         resources/propertygrid-propertypages.png        \
86         resources/mono.ico                      \
87         resources/errorProvider.ico
88
89
90 TEST_DISTFILES = \
91         M.gif \
92         Test/resources/a.cur \
93         Test/resources/32x32.ico \
94         Test/System.Resources/compat_1_1.resx \
95         Test/System.Resources/compat_2_0.resx \
96         Test/System.Windows.Forms/bitmaps/a.png \
97         Test/DummyAssembly/AnotherSerializable.cs \
98         Test/DummyAssembly/Convertable.cs \
99         Test/DummyAssembly/Properties/AssemblyInfo.cs \
100
101 EXTRA_DISTFILES = \
102         README System.Windows.Forms.dll.resources \
103         $(RESX_RESOURCES:.resources=.resx) $(CUR_RESOURCES) $(PREBUILT) build-csproj build-csproj2k5 \
104         $(IMAGES_RESOURCES) \
105         $(TEST_DISTFILES)
106
107 TEST_MCS_FLAGS = /r:System.Data.dll /r:System.Drawing.dll /r:Accessibility.dll -r:System.dll -r:System.Xml.dll -r:System.Runtime.Serialization.Formatters.Soap\
108         -resource:Test/resources/a.cur,a.cur \
109         -resource:Test/resources/32x32.ico,32x32.ico \
110         -nowarn:618,612
111
112 DummyAssembly.dll:
113         $(CSCOMPILE) /target:library /out:$@ Test/DummyAssembly/AnotherSerializable.cs Test/DummyAssembly/Convertable.cs Test/DummyAssembly/Properties/AssemblyInfo.cs
114
115 test-local: DummyAssembly.dll
116
117 include ../../build/library.make
118
119 TEST_HARNESS_EXCLUDES = -exclude=Interactive,NotWorking,ValueAdd,CAS,InetAccess
120 TEST_HARNESS_EXCLUDES_ONDOTNET = -exclude=Interactive,NotDotNet,CAS
121
122 $(the_lib): $(RESOURCES)
123
124 $(RESX_RESOURCES): %.resources: %.resx
125         $(RESGEN) $< || cp $@.prebuilt $@
126
127 $(LIBRARY): $(CUR_RESOURCES)
128
129 $(PREBUILT): %.prebuilt: %
130         cp $* $@
131
132 dist-default: $(PREBUILT)