[runtime] Defer async requests during abort protected blocks
[mono-project.git] / mcs / class / Makefile
blob3016300230ec3394807c44fd1264c78e0f47286c
1 thisdir = class
3 pcl_facade_dirs := Facades
5 -include ../build/config.make
7 ifdef MCS_MODE
8 MCS_MODE_dirs := Mono.Cecil.Mdb
9 endif
11 # The minimal set of csc dependencies
12 basic_SUBDIRS := \
13 corlib \
14 Mono.Security \
15 System \
16 System.XML \
17 System.Core \
18 System.ComponentModel.Composition.4.5 \
19 System.Numerics \
20 System.Xml.Linq \
21 System.Runtime.InteropServices.RuntimeInformation \
22 Mono.Cecil \
23 $(MCS_MODE_dirs) \
24 ../tools/cil-stringreplacer
26 # resgen is corlib specific so we need to wait until corlib is build
27 # and build it just a step before first dll needs it
28 resgen_dir = ../tools/resgen
30 build_SUBDIRS := \
31 corlib \
32 Mono.Security \
33 System \
34 System.XML \
35 Mono.Posix \
36 System.Core \
37 System.ComponentModel.Composition.4.5 \
38 System.Numerics \
39 System.Xml.Linq \
40 System.Runtime.InteropServices.RuntimeInformation \
41 System.IO.Compression \
42 Mono.Cecil \
43 $(MCS_MODE_dirs) \
44 Mono.CompilerServices.SymbolWriter \
45 PEAPI \
46 ../tools/cil-stringreplacer
48 ifdef MCS_MODE
49 basic_PARALLEL_SUBDIRS := ../mcs
50 build_PARALLEL_SUBDIRS := ../mcs
51 else
52 basic_PARALLEL_SUBDIRS := $(pcl_facade_dirs)
53 build_PARALLEL_SUBDIRS := $(pcl_facade_dirs)
54 endif
56 mobile_common_dirs := \
57 corlib \
58 Mono.Security \
59 System \
60 System.Core \
61 System.Security \
62 System.XML \
63 I18N \
64 System.ServiceModel.Internals \
65 System.Runtime.Serialization \
66 System.Xml.Linq \
67 System.IdentityModel \
68 System.ServiceModel \
69 System.ServiceModel.Web \
70 System.Json \
71 System.Web.Services \
72 Mono.Data.Tds \
73 System.Transactions \
74 System.Numerics \
75 System.Numerics.Vectors \
76 System.Data \
77 Mono.Data.Sqlite \
78 System.Data.Services.Client \
79 System.IO.Compression \
80 System.IO.Compression.FileSystem \
81 System.ComponentModel.DataAnnotations \
82 System.ComponentModel.Composition.4.5 \
83 System.Net \
84 System.Net.Http \
85 System.Windows \
86 System.Xml.Serialization \
87 Mono.CSharp \
88 Microsoft.CSharp \
89 System.Runtime.InteropServices.RuntimeInformation \
90 System.Reflection.DispatchProxy \
91 System.Xml.XPath.XmlDocument \
92 System.Reflection.Context \
93 System.Net.Http.WinHttpHandler
95 testing_aot_full_dirs := \
96 $(mobile_common_dirs) \
97 Mono.Simd \
98 $(pcl_facade_dirs)
100 testing_aot_hybrid_dirs := \
101 $(mobile_common_dirs) \
102 Mono.Simd \
103 $(pcl_facade_dirs)
105 xammac_dirs := \
106 $(mobile_common_dirs) \
107 Mono.CompilerServices.SymbolWriter \
108 $(pcl_facade_dirs)
110 monodroid_dirs := \
111 $(mobile_common_dirs) \
112 Mono.CompilerServices.SymbolWriter \
113 Mono.Btls.Interface \
114 $(pcl_facade_dirs)
116 monotouch_dirs := \
117 $(testing_aot_full_dirs)
119 monotouch_watch_dirs := $(filter-out Mono.Security Mono.Data.Tds,$(monotouch_dirs))
120 monotouch_tv_dirs := $(monotouch_dirs)
122 monotouch_runtime_dirs := \
123 corlib \
124 Mono.Security \
125 System \
126 System.Core \
127 System.XML \
128 Mono.CSharp
130 monotouch_watch_runtime_dirs := $(filter-out Mono.Security Mono.Data.Tds,$(monotouch_runtime_dirs))
131 monotouch_tv_runtime_dirs := $(monotouch_runtime_dirs)
133 winaot_dirs := $(monotouch_dirs) System.Drawing
135 xammac_4_5_dirs := \
136 corlib \
137 Mono.Security \
138 System \
139 Mono.Posix \
140 System.Core \
141 System.Security \
142 System.XML \
143 I18N \
144 System.ServiceModel.Internals \
145 SMDiagnostics \
146 System.Numerics \
147 System.Numerics.Vectors \
148 Mono.Data.Tds \
149 System.Transactions \
150 System.EnterpriseServices \
151 System.Data \
152 System.Runtime.Serialization \
153 System.Xml.Linq \
154 Mono.Data.Sqlite \
155 System.Runtime.Serialization.Formatters.Soap \
156 System.ComponentModel.DataAnnotations \
157 System.IdentityModel \
158 System.IdentityModel.Selectors \
159 Mono.Messaging \
160 System.Configuration.Install \
161 System.Messaging \
162 System.Web.Services \
163 System.ServiceModel \
164 System.ServiceModel.Web \
165 System.Json \
166 System.Data.Services.Client \
167 System.IO.Compression \
168 System.IO.Compression.FileSystem \
169 System.ComponentModel.Composition.4.5 \
170 System.Net \
171 System.Windows \
172 System.Xml.Serialization \
173 Mono.CSharp \
174 Microsoft.CSharp \
175 Mono.CompilerServices.SymbolWriter \
176 System.Data.Linq \
177 System.Net.Http \
178 System.Net.Http.WebRequest \
179 System.Runtime.InteropServices.RuntimeInformation \
180 System.Reflection.Context \
181 System.Net.Http.WinHttpHandler \
182 $(pcl_facade_dirs)
184 net_4_x_dirs := \
185 corlib \
186 Mono.Security \
187 System \
188 System.XML \
189 Mono.CompilerServices.SymbolWriter \
190 Mono.Posix \
191 System.Core \
192 System.Security \
193 System.Configuration \
194 $(resgen_dir) \
195 System.IO.Compression \
196 System.IO.Compression.FileSystem \
197 System.Drawing \
198 System.Transactions \
199 System.EnterpriseServices \
200 Mono.Data.Tds \
201 System.Numerics \
202 System.Numerics.Vectors \
203 System.Data \
204 System.ComponentModel.DataAnnotations \
205 Accessibility \
206 Mono.WebBrowser \
207 System.Runtime.Serialization.Formatters.Soap \
208 System.Windows.Forms \
209 Mono.Data.Sqlite \
210 System.Web.ApplicationServices \
211 Novell.Directory.Ldap \
212 System.DirectoryServices \
213 System.Web \
214 System.Web.Services \
215 System.Design \
216 System.Runtime.Remoting \
217 System.Configuration.Install \
218 System.Management \
219 System.Data.OracleClient \
220 Cscompmgd \
221 Commons.Xml.Relaxng \
222 Mono.Messaging \
223 System.Messaging \
224 System.ServiceProcess \
225 System.Drawing.Design \
226 ICSharpCode.SharpZipLib \
227 IBM.Data.DB2 \
228 CustomMarshalers \
229 SystemWebTestShim \
230 System.ServiceModel.Internals \
231 SMDiagnostics \
232 System.Runtime.Serialization \
233 System.Xml.Linq \
234 System.Data.Linq \
235 System.Web.Abstractions \
236 System.Web.Routing \
237 System.Runtime.DurableInstancing \
238 System.IdentityModel \
239 System.IdentityModel.Selectors \
240 System.ServiceModel \
241 System.Web.Extensions \
242 System.Web.Extensions.Design \
243 System.Web.DynamicData \
244 Mono.CSharp \
245 System.Net \
246 System.Json \
247 Microsoft.CSharp \
248 System.Xaml \
249 WindowsBase \
250 System.ServiceModel.Activation \
251 System.ServiceModel.Routing \
252 System.ServiceModel.Discovery \
253 System.Runtime.Caching \
254 Microsoft.Web.Infrastructure \
255 System.ServiceModel.Web \
256 System.Net.Http \
257 System.Net.Http.WebRequest \
258 System.Web.Razor \
259 System.Web.WebPages.Deployment \
260 System.Web.WebPages \
261 System.Web.WebPages.Razor \
262 System.Web.Mvc3 \
263 System.Net.Http.Formatting \
264 System.Web.Http \
265 System.Web.Http.SelfHost \
266 System.Web.Http.WebHost \
267 System.Runtime.InteropServices.RuntimeInformation
269 # These are the subdirs which depends on libs in net_4_x_dirs
270 # or have proper dependencies between each other
271 net_4_x_parallel_dirs := \
272 PEAPI \
273 I18N \
274 Mono.Btls.Interface \
275 Mono.Http \
276 Mono.Cairo \
277 Mono.Cecil \
278 Mono.Cecil.Mdb \
279 Mono.Debugger.Soft \
280 Mono.C5 \
281 Mono.Management \
282 Mono.Options \
283 Mono.Simd \
284 Mono.Tasklets \
285 Mono.CodeContracts \
286 Mono.Parallel \
287 Mono.Security.Win32 \
288 Mono.Messaging.RabbitMQ \
289 System.Dynamic \
290 System.Windows.Forms.DataVisualization \
291 System.Reactive.Interfaces \
292 System.Reactive.Core \
293 System.Reactive.Linq \
294 System.Reactive.PlatformServices \
295 System.Reactive.Providers \
296 System.Reactive.Runtime.Remoting \
297 System.Reactive.Windows.Forms \
298 System.Reactive.Windows.Threading \
299 System.Reactive.Observable.Aliases \
300 System.Reactive.Experimental \
301 System.Reactive.Debugger \
302 System.Data.Services.Client \
303 System.Data.Services \
304 System.Data.Entity \
305 System.Data.DataSetExtensions \
306 System.Json.Microsoft \
307 System.Threading.Tasks.Dataflow \
308 System.ComponentModel.Composition.4.5 \
309 System.Windows \
310 System.Xml.Serialization \
311 System.DirectoryServices.Protocols \
312 RabbitMQ.Client \
313 Microsoft.VisualC \
314 WebMatrix.Data \
315 monodoc \
316 System.Deployment \
317 System.Web.Mobile \
318 System.Web.RegularExpressions \
319 System.Workflow.Activities \
320 System.Workflow.ComponentModel \
321 System.Workflow.Runtime \
322 System.Reflection.Context \
323 legacy/Mono.Cecil \
324 $(pcl_facade_dirs)
326 xbuild_2_0_dirs := \
327 Microsoft.Build.Framework \
328 Microsoft.Build.Utilities \
329 Microsoft.Build.Engine \
330 Mono.XBuild.Tasks \
331 Microsoft.Build.Tasks
333 xbuild_4_0_dirs := \
334 $(xbuild_2_0_dirs) \
335 Microsoft.Build
337 monodroid_SUBDIRS := $(monodroid_dirs)
338 monotouch_SUBDIRS := $(monotouch_dirs)
339 monotouch_watch_SUBDIRS := $(monotouch_watch_dirs)
340 monotouch_tv_SUBDIRS := $(monotouch_tv_dirs)
341 monotouch_runtime_SUBDIRS := $(monotouch_runtime_dirs)
342 monotouch_watch_runtime_SUBDIRS := $(monotouch_watch_runtime_dirs)
343 monotouch_tv_runtime_SUBDIRS := $(monotouch_tv_runtime_dirs)
344 testing_aot_full_SUBDIRS := $(testing_aot_full_dirs)
345 testing_aot_hybrid_SUBDIRS := $(testing_aot_hybrid_dirs)
346 xammac_SUBDIRS := $(xammac_dirs)
347 xammac_net_4_5_SUBDIRS := $(xammac_4_5_dirs)
348 binary_reference_assemblies_SUBDIRS := reference-assemblies
349 net_4_x_SUBDIRS := $(net_4_x_dirs) $(xbuild_4_0_dirs)
350 net_4_x_PARALLEL_SUBDIRS := $(net_4_x_parallel_dirs)
351 xbuild_12_SUBDIRS := $(xbuild_4_0_dirs)
352 xbuild_14_SUBDIRS := $(xbuild_4_0_dirs) Microsoft.NuGet.Build.Tasks
353 winaot_SUBDIRS := $(winaot_dirs)
354 orbis_SUBDIRS := $(monotouch_dirs)
356 include ../build/rules.make
358 SUBDIRS = $(testing_aot_full_dirs) $(testing_aot_hybrid_dirs) $(monotouch_dirs) $(monodroid_dirs) $(xammac_dirs) $(net_4_x_dirs) $(net_4_x_parallel_dirs) $(xammac_net_4_5_SUBDIRS)
360 DIST_ONLY_SUBDIRS = dlr aot-compiler reference-assemblies $(xbuild_4_0_dirs) Microsoft.NuGet.Build.Tasks
362 # No new makefiles for: System.Messaging, System.Web.Mobile,
363 # System.ServiceProcess
365 DISTFILES = \
366 ecma.pub \
367 winfx.pub \
368 winfx3.pub \
369 mono.pub \
370 msfinal.pub \
371 silverlight.pub \
372 reactive.pub \
373 mono.snk \
374 Open.snk \
375 LICENSE \
376 README \
377 doc/API-notes \
378 doc/NUnitGuidelines \
379 doc/TemplateTest.cs \
380 notes/BitVecto32.txt \
381 MicrosoftAjaxLibrary/License.htm \
382 test-helpers/NetworkHelpers.cs \
383 test-helpers/SocketResponder.cs \
384 lib/$(monolite_dir)/mcs.exe \
385 $(monolite_files)
387 .PHONY: all-local $(STD_TARGETS:=-local)
388 all-local $(STD_TARGETS:=-local):
391 all-local-aot:
393 monolite_dir := monolite
395 # Files needed to bootstrap C# compiler
396 build_files = mscorlib.dll System.dll System.Xml.dll Mono.Security.dll System.Core.dll System.Security.dll System.Configuration.dll \
397 System.Numerics.dll System.Xml.Linq.dll System.Runtime.InteropServices.RuntimeInformation.dll \
398 Facades/System.Collections.Concurrent.dll Facades/System.Linq.dll Facades/System.Runtime.dll Facades/System.Collections.dll \
399 Facades/System.Reflection.Extensions.dll Facades/System.Text.Encoding.Extensions.dll Facades/System.Diagnostics.Debug.dll \
400 Facades/System.Reflection.Primitives.dll Facades/System.Text.Encoding.dll Facades/System.Diagnostics.Tools.dll Facades/System.Reflection.dll \
401 Facades/System.Threading.Tasks.Parallel.dll Facades/System.Dynamic.Runtime.dll Facades/System.Resources.ResourceManager.dll \
402 Facades/System.Threading.Tasks.dll Facades/System.Globalization.dll Facades/System.Runtime.Extensions.dll Facades/System.Threading.dll \
403 Facades/System.IO.dll Facades/System.Runtime.InteropServices.dll Facades/System.Xml.ReaderWriter.dll Facades/System.Linq.Expressions.dll \
404 Facades/System.Runtime.Numerics.dll Facades/System.Xml.XDocument.dll Facades/System.IO.FileSystem.Primitives.dll Facades/System.IO.FileSystem.dll \
405 Facades/System.Diagnostics.FileVersionInfo.dll Facades/System.Security.Cryptography.Primitives.dll Facades/System.Security.Cryptography.Algorithms.dll \
406 Facades/System.ValueTuple.dll Facades/System.Text.Encoding.CodePages.dll
408 monolite_files = $(build_files:%=lib/$(monolite_dir)/%)
410 lib/$(monolite_dir):
411 lib/$(monolite_dir)/Facades:
412 $(MKINSTALLDIRS) $@
414 $(monolite_files): | lib/$(monolite_dir)
415 $(monolite_files): | lib/$(monolite_dir)/Facades
416 $(monolite_files): lib/$(monolite_dir)/%: lib/build/%
417 cp -p $< $@
419 lib/$(monolite_dir)/mcs.exe:
420 $(MAKE) -C ../mcs PROFILE=build
421 cp -p lib/build/mcs.exe lib/$(monolite_dir)
423 $(build_files:%=lib/build/%):
424 cd $(topdir) && $(MAKE) profile-do--build--all NO_DIR_CHECK=1 SKIP_AOT=1
426 dist-monolite: $(monolite_files) lib/$(monolite_dir)/mcs.exe
428 package-monolite-latest:
429 MONOLITE=monolite-$(MONO_CORLIB_VERSION)-latest; \
430 $(MAKE) dist-monolite monolite_dir=$$MONOLITE; \
431 tar zcvpf $$MONOLITE.tar.gz --directory=lib $$MONOLITE/
433 dist-default: dist-monolite
435 dist-local: dist-default
437 csproj-local:
439 do-clean:
440 $(RM) -rf $(topdir)/class/lib/$(PROFILE)