fixed tests
[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/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 build-csproj2k5 \
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 System.Windows.Forms.dll.resources build-csproj
87         ./build-csproj
88
89 SWF2k5.csproj: System.Windows.Forms.dll.sources System.Windows.Forms.dll.resources build-csproj2k5
90         ./build-csproj2k5
91
92 include ../../build/library.make
93
94 TEST_HARNESS_EXCLUDES = /exclude:Interactive,NotWorking,ValueAdd,CAS,InetAccess
95 TEST_HARNESS_EXCLUDES_ONDOTNET = /exclude:Interactive,NotDotNet,CAS
96
97 $(the_lib): $(RESOURCES) SWF.csproj SWF2k5.csproj
98
99 $(RESX_RESOURCES): %.resources: %.resx
100         $(RESGEN) $< || cp $@.prebuilt $@
101
102 $(LIBRARY): $(CUR_RESOURCES)
103
104 $(PREBUILT): %.prebuilt: %
105         cp $* $@
106
107 dist-default: $(PREBUILT)