2006-08-08 Jonathan Pobst <monkey@jpobst.com>
[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 # UTF-8
7 CODEPAGE = 65001
8
9 LIB_MCS_FLAGS = /unsafe \
10         /r:$(corlib) /r:System.dll /r:System.Xml.dll \
11         /r:System.Drawing.dll /r:Accessibility.dll \
12         /r:System.Data.dll /r:Mono.Posix.dll \
13         @System.Windows.Forms.dll.resources \
14         /nowarn:649 /nowarn:169 /nowarn:67 /nowarn:108 /nowarn:114 -debug
15
16 RESX_RESOURCES = \
17         resources/System.Windows.Forms.resources \
18         resources/System.Windows.Forms.en.resources \
19         resources/System.Windows.Forms.de.resources \
20         resources/keyboards.resources
21
22 CUR_RESOURCES = resources/NWSE.cur resources/NESW.cur \
23         resources/SplitterNS.cur \
24         resources/SplitterWE.cur \
25         resources/NWSE.cur \
26         resources/NESW.cur \
27         resources/DnDNo.cur \
28         resources/DnDCopy.cur \
29         resources/DnDLink.cur \
30         resources/DnDMove.cur
31
32 RESOURCES = $(RESX_RESOURCES) $(CUR_RESOURCES)
33
34 PREBUILT = $(RESX_RESOURCES:=.prebuilt)
35
36 IMAGES_RESOURCES = \
37         resources/16_computer.png               \
38         resources/32_computer.png               \
39         resources/computer.png                  \
40         resources/16_document-open.png          \
41         resources/32_document-open.png          \
42         resources/document-open.png             \
43         resources/16_folder.png                 \
44         resources/folder-new.png                \
45         resources/folder.png                    \
46         resources/16_folder-remote.png          \
47         resources/32_folder-remote.png          \
48         resources/folder-remote.png             \
49         resources/go-previous.png               \
50         resources/go-top.png                    \
51         resources/22_page-magnifier.png         \
52         resources/preferences-system-windows.png\
53         resources/16_printer.png                \
54         resources/32_printer.png                \
55         resources/text-x-generic.png            \
56         resources/16_user-desktop.png           \
57         resources/32_user-desktop.png           \
58         resources/user-desktop.png              \
59         resources/dialog-error.png              \
60         resources/dialog-information.png        \
61         resources/dialog-question.png           \
62         resources/dialog-warning.png            \
63         resources/1-up.png                      \
64         resources/2-up.png                      \
65         resources/3-up.png                      \
66         resources/4-up.png                      \
67         resources/6-up.png
68
69
70 TEST_DISTFILES = \
71         M.gif \
72         Test/resources/a.cur \
73         Test/System.Resources/compat_1_1.resx \
74         Test/System.Resources/compat_2_0.resx \
75         Test/System.Windows.Forms/bitmaps/a.png
76
77 EXTRA_DISTFILES = \
78         README System.Windows.Forms.dll.resources \
79         $(RESX_RESOURCES:.resources=.resx) $(CUR_RESOURCES) $(PREBUILT) build-csproj \
80         $(IMAGES_RESOURCES) \
81         $(TEST_DISTFILES)
82
83 TEST_MCS_FLAGS = /r:System.Data.dll /r:System.Drawing.dll \
84         -resource:Test/resources/a.cur,a.cur
85
86 SWF.csproj: System.Windows.Forms.dll.sources
87         ./build-csproj
88
89 include ../../build/library.make
90
91 $(the_lib): $(RESOURCES) SWF.csproj
92
93 $(RESX_RESOURCES): %.resources: %.resx
94         $(RESGEN) $< || cp $@.prebuilt $@
95
96 $(LIBRARY): $(CUR_RESOURCES)
97
98 $(PREBUILT): %.prebuilt: %
99         cp $* $@
100
101 dist-default: $(PREBUILT)