2007-03-29 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 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
72
73 TEST_DISTFILES = \
74         M.gif \
75         Test/resources/a.cur \
76         Test/resources/32x32.ico \
77         Test/System.Resources/compat_1_1.resx \
78         Test/System.Resources/compat_2_0.resx \
79         Test/System.Windows.Forms/bitmaps/a.png
80
81 EXTRA_DISTFILES = \
82         README System.Windows.Forms.dll.resources \
83         $(RESX_RESOURCES:.resources=.resx) $(CUR_RESOURCES) $(PREBUILT) build-csproj build-csproj2k5 \
84         $(IMAGES_RESOURCES) \
85         $(TEST_DISTFILES)
86
87 TEST_MCS_FLAGS = /r:System.Data.dll /r:System.Drawing.dll \
88         -resource:Test/resources/a.cur,a.cur \
89         -resource:Test/resources/32x32.ico,32x32.ico \
90         -nowarn:618,612
91
92 SWF.csproj: System.Windows.Forms.dll.sources System.Windows.Forms.dll.resources build-csproj
93         ./build-csproj
94
95 SWF2k5.csproj: System.Windows.Forms.dll.sources System.Windows.Forms.dll.resources build-csproj2k5
96         ./build-csproj2k5
97
98 include ../../build/library.make
99
100 TEST_HARNESS_EXCLUDES = /exclude:Interactive,NotWorking,ValueAdd,CAS,InetAccess
101 TEST_HARNESS_EXCLUDES_ONDOTNET = /exclude:Interactive,NotDotNet,CAS
102
103 $(the_lib): $(RESOURCES) SWF.csproj SWF2k5.csproj
104
105 $(RESX_RESOURCES): %.resources: %.resx
106         $(RESGEN) $< || cp $@.prebuilt $@
107
108 $(LIBRARY): $(CUR_RESOURCES)
109
110 $(PREBUILT): %.prebuilt: %
111         cp $* $@
112
113 dist-default: $(PREBUILT)