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