Debian Codegraph @

mcs/class/System.Windows.Forms/Makefile

raw
1 thisdir = class/System.Windows.Forms
2 include ../../build/rules.make
3
4 LIBRARY = System.Windows.Forms.dll
5
6 LIB_REFS = System System.Xml System.Drawing Accessibility System.Data Mono.Posix Mono.WebBrowser System.Configuration System.Runtime.Serialization.Formatters.Soap System.Core
7 KEYFILE = ../ecma.pub
8 LIB_MCS_FLAGS = /unsafe \
9 @System.Windows.Forms.dll.resources \
10 -nowarn:618,612,809
11
12 ifeq (true, $(GENERATE_RESOURCES))
13 LIB_MCS_FLAGS += /define:GENERATING_RESOURCES
14 endif
15
16 RESX_RESOURCES = \
17 resources/keyboards.resources \
18 resources/System.Windows.Forms.resources
19
20 CLEAN_FILES += $(RESX_RESOURCES)
21
22 CUR_RESOURCES = resources/NWSE.cur resources/NESW.cur \
23 resources/SplitterNS.cur \
24 resources/SplitterWE.cur \
25 resources/NWSE.cur \
26 resources/NESW.cur \
27 resources/DnDNo.cur \
28 resources/DnDCopy.cur \
29 resources/DnDLink.cur \
30 resources/DnDMove.cur
31
32 RESOURCES = $(RESX_RESOURCES) $(CUR_RESOURCES)
33
34 PREBUILT = $(RESX_RESOURCES:=.prebuilt)
35
36 IMAGES_RESOURCES = \
37 resources/16_computer.png \
38 resources/32_computer.png \
39 resources/computer.png \
40 resources/16_document-open.png \
41 resources/32_document-open.png \
42 resources/document-open.png \
43 resources/16_folder.png \
44 resources/folder-new.png \
45 resources/folder.png \
46 resources/16_folder-remote.png \
47 resources/32_folder-remote.png \
48 resources/folder-remote.png \
49 resources/go-previous.png \
50 resources/go-top.png \
51 resources/22_page-magnifier.png \
52 resources/preferences-system-windows.png\
53 resources/16_printer.png \
54 resources/32_printer.png \
55 resources/text-x-generic.png \
56 resources/16_user-desktop.png \
57 resources/32_user-desktop.png \
58 resources/user-desktop.png \
59 resources/16_user-home.png \
60 resources/32_user-home.png \
61 resources/user-home.png \
62 resources/16_dialog-error.png \
63 resources/16_dialog-information.png \
64 resources/16_dialog-warning.png \
65 resources/1-up.png \
66 resources/2-up.png \
67 resources/3-up.png \
68 resources/4-up.png \
69 resources/6-up.png \
70 resources/nav_delete.png \
71 resources/nav_end.png \
72 resources/nav_first.png \
73 resources/nav_previous.png \
74 resources/nav_next.png \
75 resources/nav_plus.png \
76 resources/image-missing.png \
77 resources/image-x-generic.png \
78 resources/propertygrid-alphabetical.png \
79 resources/propertygrid-categorized.png \
80 resources/EventsTab.bmp \
81 resources/PropertiesTab.bmp \
82 resources/propertygrid-propertypages.png \
83 resources/mono.ico \
84 resources/errorProvider.ico
85
86 TEST_RESOURCE_FILES = \
87 Test/resources/M.gif \
88 Test/resources/a.cur \
89 Test/resources/32x32.ico \
90 Test/System.Resources/compat_1_1.resx \
91 Test/System.Resources/compat_2_0.resx \
92 Test/System.Windows.Forms/bitmaps/a.png
93
94 DUMMY_ASSEMBLY_SRC = \
95 Test/DummyAssembly/AnotherSerializable.cs \
96 Test/DummyAssembly/Convertable.cs \
97 Test/DummyAssembly/Properties/AssemblyInfo.cs \
98
99 EXTRA_DISTFILES = \
100 README System.Windows.Forms.dll.resources \
101 $(RESX_RESOURCES:.resources=.resx) $(CUR_RESOURCES) $(PREBUILT) \
102 $(IMAGES_RESOURCES) \
103 $(TEST_RESOURCE_FILES) \
104 $(DUMMY_ASSEMBLY_SRC) \
105 Test/simple/Program.cs
106
107 TEST_LIB_REFS = System.Data System.Drawing Accessibility System System.Xml System.Runtime.Serialization.Formatters.Soap
108 TEST_MCS_FLAGS = \
109 $(foreach r, $(TEST_RESOURCE_FILES), -resource:$(r),$(r)) \
110 -nowarn:618,612
111
112 $(topdir)/class/lib/$(PROFILE)/tests/DummyAssembly.dll: $(DUMMY_ASSEMBLY_SRC)
113 $(CSCOMPILE) /target:library /out:$@ $^ -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll -r:$(topdir)/class/lib/$(PROFILE)/System.dll
114
115 test-local: $(topdir)/class/lib/$(PROFILE)/tests/DummyAssembly.dll
116
117 include ../../build/library.make
118
119 TEST_HARNESS_EXCLUDES += Interactive
120
121 $(the_lib): $(RESOURCES)
122
123 $(RESX_RESOURCES): %.resources: %.resx
124 $(RESGEN) $< || cp [email protected] $@
125
126 $(LIBRARY): $(CUR_RESOURCES)
127
128 $(PREBUILT): %.prebuilt: %
129 cp $* $@
130
131 dist-default: $(PREBUILT)
132
133 simple-test.exe: Test/simple/Program.cs $(topdir)/class/lib/$(PROFILE)/System.Windows.Forms.dll $(topdir)/class/lib/$(PROFILE)/mscorlib.dll
134 $(CSCOMPILE) -out:$@ Test/simple/Program.cs -r:$(topdir)/class/lib/$(PROFILE)/System.Windows.Forms.dll -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll
135
136 test-simple: simple-test.exe
137 $(TEST_RUNTIME) $(TEST_RUNTIME_FLAGS) simple-test.exe
138
139 notepad.exe: samples/notepad.cs $(topdir)/class/lib/$(PROFILE)/System.Windows.Forms.dll $(topdir)/class/lib/$(PROFILE)/System.Drawing.dll $(topdir)/class/lib/$(PROFILE)/System.dll $(topdir)/class/lib/$(PROFILE)/mscorlib.dll
140 $(CSCOMPILE) -out:$@ samples/notepad.cs -r:$(topdir)/class/lib/$(PROFILE)/System.Windows.Forms.dll -r:$(topdir)/class/lib/$(PROFILE)/System.Drawing.dll -r:$(topdir)/class/lib/$(PROFILE)/System.dll -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll
141
142 test-notepad: notepad.exe
143 $(TEST_RUNTIME) $(TEST_RUNTIME_FLAGS) notepad.exe
144
145 issue%.exe: samples/issue%.cs $(topdir)/class/lib/$(PROFILE)/System.Windows.Forms.dll $(topdir)/class/lib/$(PROFILE)/System.Drawing.dll $(topdir)/class/lib/$(PROFILE)/System.dll $(topdir)/class/lib/$(PROFILE)/mscorlib.dll
146 $(CSCOMPILE) -out:$@ $< -r:$(topdir)/class/lib/$(PROFILE)/System.Windows.Forms.dll -r:$(topdir)/class/lib/$(PROFILE)/System.Drawing.dll -r:$(topdir)/class/lib/$(PROFILE)/System.dll -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll
147
148 test-issue%: issue%.exe
149 $(TEST_RUNTIME) $(TEST_RUNTIME_FLAGS) $<