* WriterTest.cs: Add a message if anyone forgets to close a form again.
[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         @System.Windows.Forms.dll.resources \
11         -debug
12
13 RESX_RESOURCES = \
14         resources/System.Windows.Forms.resources \
15         resources/System.Windows.Forms.en.resources \
16         resources/System.Windows.Forms.de.resources \
17         resources/keyboards.resources
18
19 CUR_RESOURCES = resources/NWSE.cur resources/NESW.cur \
20         resources/SplitterNS.cur \
21         resources/SplitterWE.cur \
22         resources/NWSE.cur \
23         resources/NESW.cur \
24         resources/DnDNo.cur \
25         resources/DnDCopy.cur \
26         resources/DnDLink.cur \
27         resources/DnDMove.cur
28
29 RESOURCES = $(RESX_RESOURCES) $(CUR_RESOURCES)
30
31 PREBUILT = $(RESX_RESOURCES:=.prebuilt)
32
33 IMAGES_RESOURCES = \
34         resources/16_computer.png               \
35         resources/32_computer.png               \
36         resources/computer.png                  \
37         resources/16_document-open.png          \
38         resources/32_document-open.png          \
39         resources/document-open.png             \
40         resources/16_folder.png                 \
41         resources/folder-new.png                \
42         resources/folder.png                    \
43         resources/16_folder-remote.png          \
44         resources/32_folder-remote.png          \
45         resources/folder-remote.png             \
46         resources/go-previous.png               \
47         resources/go-top.png                    \
48         resources/22_page-magnifier.png         \
49         resources/preferences-system-windows.png\
50         resources/16_printer.png                \
51         resources/32_printer.png                \
52         resources/text-x-generic.png            \
53         resources/16_user-desktop.png           \
54         resources/32_user-desktop.png           \
55         resources/user-desktop.png              \
56         resources/16_user-home.png              \
57         resources/32_user-home.png              \
58         resources/user-home.png         \
59         resources/dialog-error.png              \
60         resources/16_dialog-error.png           \
61         resources/dialog-information.png        \
62         resources/16_dialog-information.png     \
63         resources/dialog-question.png           \
64         resources/dialog-warning.png            \
65         resources/16_dialog-warning.png         \
66         resources/1-up.png                      \
67         resources/2-up.png                      \
68         resources/3-up.png                      \
69         resources/4-up.png                      \
70         resources/6-up.png                      \
71         resources/nav_delete.png                \
72         resources/nav_end.png                   \
73         resources/nav_first.png                 \
74         resources/nav_previous.png              \
75         resources/nav_next.png                  \
76         resources/nav_plus.png
77
78
79 TEST_DISTFILES = \
80         M.gif \
81         Test/resources/a.cur \
82         Test/resources/32x32.ico \
83         Test/System.Resources/compat_1_1.resx \
84         Test/System.Resources/compat_2_0.resx \
85         Test/System.Windows.Forms/bitmaps/a.png
86
87 EXTRA_DISTFILES = \
88         README System.Windows.Forms.dll.resources \
89         $(RESX_RESOURCES:.resources=.resx) $(CUR_RESOURCES) $(PREBUILT) build-csproj build-csproj2k5 \
90         $(IMAGES_RESOURCES) \
91         $(TEST_DISTFILES)
92
93 TEST_MCS_FLAGS = /r:System.Data.dll /r:System.Drawing.dll \
94         -resource:Test/resources/a.cur,a.cur \
95         -resource:Test/resources/32x32.ico,32x32.ico \
96         -nowarn:618,612
97
98 SWF.csproj: System.Windows.Forms.dll.sources System.Windows.Forms.dll.resources build-csproj
99         ./build-csproj
100
101 SWF2k5.csproj: System.Windows.Forms.dll.sources System.Windows.Forms.dll.resources build-csproj2k5
102         ./build-csproj2k5
103
104 include ../../build/library.make
105
106 TEST_HARNESS_EXCLUDES = /exclude:Interactive,NotWorking,ValueAdd,CAS,InetAccess
107 TEST_HARNESS_EXCLUDES_ONDOTNET = /exclude:Interactive,NotDotNet,CAS
108
109 $(the_lib): $(RESOURCES) SWF.csproj SWF2k5.csproj
110
111 $(RESX_RESOURCES): %.resources: %.resx
112         $(RESGEN) $< || cp $@.prebuilt $@
113
114 $(LIBRARY): $(CUR_RESOURCES)
115
116 $(PREBUILT): %.prebuilt: %
117         cp $* $@
118
119 dist-default: $(PREBUILT)