2010-04-15 Jb Evain <jbevain@novell.com>
[mcs.git] / class / Managed.Windows.Forms / Makefile
blob5a7cf2ec64b5c0312795c9f5292621dd255539c8
1 thisdir = class/Managed.Windows.Forms
2 include ../../build/rules.make
4 LIBRARY = System.Windows.Forms.dll
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.WebBrowser \
11 @System.Windows.Forms.dll.resources \
12 -debug -nowarn:618,612,809
14 ifneq (1, $(FRAMEWORK_VERSION_MAJOR))
15 LIB_MCS_FLAGS += /r:System.Configuration.dll
16 endif
18 ifeq (true, $(GENERATE_RESOURCES))
19 LIB_MCS_FLAGS += /define:GENERATING_RESOURCES
20 endif
22 RESX_RESOURCES = \
23 resources/keyboards.resources
25 CUR_RESOURCES = resources/NWSE.cur resources/NESW.cur \
26 resources/SplitterNS.cur \
27 resources/SplitterWE.cur \
28 resources/NWSE.cur \
29 resources/NESW.cur \
30 resources/DnDNo.cur \
31 resources/DnDCopy.cur \
32 resources/DnDLink.cur \
33 resources/DnDMove.cur
35 RESOURCES = $(RESX_RESOURCES) $(CUR_RESOURCES)
37 PREBUILT = $(RESX_RESOURCES:=.prebuilt)
39 IMAGES_RESOURCES = \
40 resources/16_computer.png \
41 resources/32_computer.png \
42 resources/computer.png \
43 resources/16_document-open.png \
44 resources/32_document-open.png \
45 resources/document-open.png \
46 resources/16_folder.png \
47 resources/folder-new.png \
48 resources/folder.png \
49 resources/16_folder-remote.png \
50 resources/32_folder-remote.png \
51 resources/folder-remote.png \
52 resources/go-previous.png \
53 resources/go-top.png \
54 resources/22_page-magnifier.png \
55 resources/preferences-system-windows.png\
56 resources/16_printer.png \
57 resources/32_printer.png \
58 resources/text-x-generic.png \
59 resources/16_user-desktop.png \
60 resources/32_user-desktop.png \
61 resources/user-desktop.png \
62 resources/16_user-home.png \
63 resources/32_user-home.png \
64 resources/user-home.png \
65 resources/16_dialog-error.png \
66 resources/16_dialog-information.png \
67 resources/16_dialog-warning.png \
68 resources/1-up.png \
69 resources/2-up.png \
70 resources/3-up.png \
71 resources/4-up.png \
72 resources/6-up.png \
73 resources/nav_delete.png \
74 resources/nav_end.png \
75 resources/nav_first.png \
76 resources/nav_previous.png \
77 resources/nav_next.png \
78 resources/nav_plus.png \
79 resources/image-missing.png \
80 resources/image-x-generic.png \
81 resources/propertygrid-alphabetical.png \
82 resources/propertygrid-categorized.png \
83 resources/EventsTab.bmp \
84 resources/PropertiesTab.bmp \
85 resources/propertygrid-propertypages.png \
86 resources/mono.ico \
87 resources/errorProvider.ico
90 TEST_DISTFILES = \
91 M.gif \
92 Test/resources/a.cur \
93 Test/resources/32x32.ico \
94 Test/System.Resources/compat_1_1.resx \
95 Test/System.Resources/compat_2_0.resx \
96 Test/System.Windows.Forms/bitmaps/a.png
98 EXTRA_DISTFILES = \
99 README System.Windows.Forms.dll.resources \
100 $(RESX_RESOURCES:.resources=.resx) $(CUR_RESOURCES) $(PREBUILT) build-csproj build-csproj2k5 \
101 $(IMAGES_RESOURCES) \
102 $(TEST_DISTFILES)
104 TEST_MCS_FLAGS = /r:System.Data.dll /r:System.Drawing.dll \
105 -resource:Test/resources/a.cur,a.cur \
106 -resource:Test/resources/32x32.ico,32x32.ico \
107 -nowarn:618,612
109 include ../../build/library.make
111 TEST_HARNESS_EXCLUDES = -exclude=Interactive,NotWorking,ValueAdd,CAS,InetAccess
112 TEST_HARNESS_EXCLUDES_ONDOTNET = -exclude=Interactive,NotDotNet,CAS
114 $(the_lib): $(RESOURCES)
116 $(RESX_RESOURCES): %.resources: %.resx
117 $(RESGEN) $< || cp $@.prebuilt $@
119 $(LIBRARY): $(CUR_RESOURCES)
121 $(PREBUILT): %.prebuilt: %
122 cp $* $@
124 dist-default: $(PREBUILT)