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