[Mono.Profiler.Log] Add profiled data reader APIs
[mono-project.git] / mcs / class / Makefile
blob0221d923617eb4b6849e94cb01c77a737a8bae7a
1 thisdir = class
3 NO_FACADES_PROFILE := $(filter monodroid_tools monotouch_tools wasm_tools binary_reference_assemblies xbuild_12 xbuild_14 netcore, $(PROFILE))
5 ifndef NO_FACADES_PROFILE
6 FACADES_FOLDER := Facades
7 endif
9 -include ../build/config.make
11 ifdef MCS_MODE
12 MCS_MODE_dirs := Mono.Cecil.Mdb
13 endif
15 # Tooling dependencies of mscorlib, we build them to /tmp folder for MONO_PATH to work
16 # reliably for clean and update builds. All deps are built against stable API to run with
17 # range of boostrap versions and .NET at the same time
18 build_SUBDIRS = \
19 Mono.Cecil \
20 $(MCS_MODE_dirs) \
21 ../tools/cil-stringreplacer \
22 PEAPI \
23 ../ilasm \
24 corlib
26 build_PARALLEL_SUBDIRS = \
27 Mono.Security \
28 System \
29 System.XML \
30 System.Security \
31 Mono.Posix \
32 System.Core \
33 System.Configuration \
34 System.ComponentModel.Composition.4.5 \
35 System.Numerics \
36 System.Xml.Linq \
37 System.IO.Compression \
38 System.IO.Compression.FileSystem \
39 System.Net.Http \
40 System.Net.Http.WebRequest \
41 System.Drawing
43 ifdef MCS_MODE
45 build_SUBDIRS += \
46 Mono.Security \
47 System \
48 System.XML \
49 System.Security \
50 Mono.Posix \
51 System.Core \
52 Mono.CompilerServices.SymbolWriter
54 build_PARALLEL_SUBDIRS += ../mcs
55 endif
57 mobile_common_dirs := \
58 corlib
60 mobile_common_dirs_parallel := \
61 Mono.Security \
62 System \
63 System.Core \
64 System.XML \
65 System.Security \
66 I18N \
67 System.ServiceModel.Internals \
68 System.Runtime.Serialization \
69 System.Xml.Linq \
70 System.IdentityModel \
71 System.ServiceModel \
72 System.ServiceModel.Web \
73 System.Json \
74 System.Web.Services \
75 Mono.Data.Tds \
76 System.Transactions \
77 System.Numerics \
78 System.Numerics.Vectors \
79 System.Data \
80 Mono.Data.Sqlite \
81 System.Data.Services.Client \
82 System.IO.Compression \
83 System.IO.Compression.FileSystem \
84 System.ComponentModel.DataAnnotations \
85 System.ComponentModel.Composition.4.5 \
86 System.Net \
87 System.Net.Http \
88 System.Windows \
89 System.Xml.Serialization \
90 Microsoft.CSharp \
91 System.Reflection.Context \
92 System.Net.Http.WinHttpHandler \
93 System.Runtime.CompilerServices.Unsafe
95 testing_aot_full_dirs_parallel := \
96 $(mobile_common_dirs_parallel) \
97 Mono.Simd \
98 Mono.CSharp
100 testing_aot_full_interp_dirs_parallel := $(testing_aot_full_dirs_parallel)
102 testing_aot_hybrid_dirs_parallel := $(testing_aot_full_dirs_parallel)
104 xammac_dirs_parallel := \
105 $(mobile_common_dirs_parallel) \
106 Mono.CompilerServices.SymbolWriter \
107 Mono.CSharp
109 monodroid_dirs_parallel := \
110 $(mobile_common_dirs_parallel) \
111 Mono.CompilerServices.SymbolWriter \
112 Mono.Btls.Interface \
113 Mono.Posix \
114 Mono.CSharp \
115 Mono.Debugger.Soft \
116 Mono.Runtime.Tests
118 monodroid_tools_dirs_parallel := \
119 Mono.Cecil \
120 Mono.CompilerServices.SymbolWriter \
121 ICSharpCode.SharpZipLib \
122 monodoc \
123 Mono.Debugger.Soft \
124 Mono.Profiler.Log
126 monotouch_tools_dirs_parallel := \
127 Mono.Cecil \
128 Mono.Cecil.Mdb
130 monotouch_dirs_parallel := \
131 $(mobile_common_dirs_parallel) \
132 Mono.Simd \
133 Mono.CSharp \
134 Mono.Runtime.Tests
136 monotouch_watch_dirs_parallel := $(filter-out Mono.Security Mono.Data.Tds,$(monotouch_dirs_parallel))
138 monotouch_runtime_dirs_parallel := \
139 Mono.Security \
140 System \
141 System.Core \
142 System.XML \
143 Mono.CSharp
145 monotouch_tv_dirs_parallel := $(monotouch_dirs_parallel)
147 monotouch_tv_runtime_dirs_parallel := $(monotouch_runtime_dirs_parallel)
149 monotouch_watch_runtime_dirs_parallel := \
150 System \
151 System.Core \
152 System.XML \
153 Mono.CSharp
155 monotouch_tv_runtime_dirs := \
156 Mono.Security \
157 $(monotouch_watch_runtime_dirs_parallel)
159 winaot_dirs_parallel := \
160 $(mobile_common_dirs_parallel) \
161 Mono.Simd
163 unreal_dirs_parallel := \
164 $(mobile_common_dirs_parallel)
166 wasm_dirs_parallel := \
167 $(mobile_common_dirs_parallel)
169 wasm_tools_dirs_parallel := \
170 Mono.Cecil
172 orbis_dirs_parallel := \
173 $(filter-out Microsoft.CSharp Mono.Data.Sqlite,$(mobile_common_dirs_parallel))
175 xammac_4_5_dirs_parallel := \
176 Mono.Security \
177 System \
178 System.XML \
179 System.Security \
180 Mono.Posix \
181 System.Core \
182 System.Configuration \
183 I18N \
184 System.ServiceModel.Internals \
185 SMDiagnostics \
186 System.Numerics \
187 System.Numerics.Vectors \
188 Mono.Data.Tds \
189 System.Transactions \
190 System.EnterpriseServices \
191 System.Data \
192 System.Runtime.Serialization \
193 System.Xml.Linq \
194 Mono.Data.Sqlite \
195 System.Runtime.Serialization.Formatters.Soap \
196 System.ComponentModel.DataAnnotations \
197 System.IdentityModel \
198 System.IdentityModel.Selectors \
199 Mono.Messaging \
200 System.Configuration.Install \
201 System.Messaging \
202 System.Web.Services \
203 System.ServiceModel \
204 System.ServiceModel.Web \
205 System.Json \
206 System.Data.Services.Client \
207 System.IO.Compression \
208 System.IO.Compression.FileSystem \
209 System.ComponentModel.Composition.4.5 \
210 System.Net \
211 System.Windows \
212 System.Xml.Serialization \
213 Mono.CSharp \
214 Microsoft.CSharp \
215 Mono.CompilerServices.SymbolWriter \
216 System.Data.Linq \
217 System.Net.Http \
218 System.Net.Http.WebRequest \
219 System.Reflection.Context \
220 System.Net.Http.WinHttpHandler \
221 System.Runtime.CompilerServices.Unsafe
223 # Could be just mscorlib but we have unhandled dependency from RabbitMQ.Client.Apigen.exe
224 net_4_x_dirs := \
225 corlib \
226 Mono.Security \
227 System \
228 System.XML
230 net_4_x_parallel_dirs = \
231 System.Security \
232 Mono.Posix \
233 System.Core \
234 System.Configuration \
235 System.Drawing \
236 System.IO.Compression \
237 System.IO.Compression.FileSystem \
238 System.Transactions \
239 System.EnterpriseServices \
240 System.Numerics \
241 System.Numerics.Vectors \
242 System.Data \
243 System.ComponentModel.DataAnnotations \
244 Accessibility \
245 Mono.WebBrowser \
246 System.Runtime.Serialization.Formatters.Soap \
247 System.Windows.Forms \
248 Mono.Data.Sqlite \
249 System.Web.ApplicationServices \
250 Novell.Directory.Ldap \
251 System.DirectoryServices \
252 System.Design \
253 System.Web.Services \
254 System.Web \
255 System.Runtime.Remoting \
256 System.Configuration.Install \
257 System.Management \
258 System.Data.OracleClient \
259 Commons.Xml.Relaxng \
260 Mono.Messaging \
261 System.Messaging \
262 System.ServiceProcess \
263 System.Drawing.Design \
264 ICSharpCode.SharpZipLib \
265 Microsoft.CSharp \
266 System.ServiceModel.Internals \
267 SMDiagnostics \
268 System.Runtime.Serialization \
269 System.Xml.Linq \
270 System.Data.Linq \
271 System.Web.Abstractions \
272 System.Web.Routing \
273 System.Runtime.DurableInstancing \
274 System.IdentityModel \
275 System.IdentityModel.Selectors \
276 System.ServiceModel \
277 System.Web.Extensions \
278 System.Web.Extensions.Design \
279 System.Web.DynamicData \
280 System.Net \
281 System.Xaml \
282 WindowsBase \
283 System.ServiceModel.Activation \
284 System.ServiceModel.Routing \
285 System.ServiceModel.Discovery \
286 System.Runtime.Caching \
287 Microsoft.Web.Infrastructure \
288 System.ServiceModel.Web \
289 System.Net.Http \
290 System.Net.Http.WebRequest \
291 System.Web.Razor \
292 System.Web.WebPages.Deployment \
293 System.Web.WebPages \
294 System.Web.WebPages.Razor \
295 System.Web.Mvc3 \
296 System.Net.Http.Formatting \
297 System.Web.Http \
298 System.Web.Http.SelfHost \
299 System.Web.Http.WebHost \
300 CustomMarshalers \
301 IBM.Data.DB2 \
302 PEAPI \
303 I18N \
304 Cscompmgd \
305 Mono.CompilerServices.SymbolWriter \
306 Mono.Btls.Interface \
307 Mono.Http \
308 Mono.Cairo \
309 Mono.Cecil \
310 Mono.Cecil.Mdb \
311 Mono.CSharp \
312 Mono.Debugger.Soft \
313 Mono.C5 \
314 Mono.Management \
315 Mono.Options \
316 Mono.Simd \
317 Mono.Tasklets \
318 Mono.CodeContracts \
319 Mono.Parallel \
320 Mono.Security.Win32 \
321 Mono.Messaging.RabbitMQ \
322 Mono.Data.Tds \
323 System.Dynamic \
324 System.Windows.Forms.DataVisualization \
325 System.Reactive.Interfaces \
326 System.Reactive.Core \
327 System.Reactive.Linq \
328 System.Reactive.PlatformServices \
329 System.Reactive.Providers \
330 System.Reactive.Runtime.Remoting \
331 System.Reactive.Windows.Forms \
332 System.Reactive.Windows.Threading \
333 System.Reactive.Observable.Aliases \
334 System.Reactive.Experimental \
335 System.Reactive.Debugger \
336 System.Data.Services.Client \
337 System.Data.Services \
338 System.Data.Entity \
339 System.Data.DataSetExtensions \
340 System.Json \
341 System.Json.Microsoft \
342 System.Threading.Tasks.Dataflow \
343 System.ComponentModel.Composition.4.5 \
344 System.Windows \
345 System.Xml.Serialization \
346 System.DirectoryServices.Protocols \
347 RabbitMQ.Client \
348 Microsoft.VisualC \
349 WebMatrix.Data \
350 monodoc \
351 System.Deployment \
352 System.Web.Mobile \
353 System.Web.RegularExpressions \
354 System.Workflow.Activities \
355 System.Workflow.ComponentModel \
356 System.Workflow.Runtime \
357 System.Reflection.Context \
358 Mono.Profiler.Log \
359 Mono.Runtime.Tests \
360 System.Runtime.CompilerServices.Unsafe \
361 legacy/Mono.Cecil \
362 SystemWebTestShim \
363 $(xbuild_4_0_dirs)
365 xbuild_4_0_dirs := \
366 Microsoft.Build.Framework \
367 Microsoft.Build.Utilities \
368 Microsoft.Build.Engine \
369 Mono.XBuild.Tasks \
370 Microsoft.Build.Tasks \
371 Microsoft.Build
373 monodroid_SUBDIRS := $(mobile_common_dirs)
374 monodroid_PARALLEL_SUBDIRS := $(monodroid_dirs_parallel)
375 monodroid_tools_SUBDIRS :=
376 monodroid_tools_PARALLEL_SUBDIRS := $(monodroid_tools_dirs_parallel)
378 monotouch_SUBDIRS := $(mobile_common_dirs)
379 monotouch_PARALLEL_SUBDIRS := $(monotouch_dirs_parallel)
380 monotouch_watch_SUBDIRS := $(mobile_common_dirs)
381 monotouch_watch_PARALLEL_SUBDIRS := $(monotouch_watch_dirs_parallel)
382 monotouch_tv_SUBDIRS := $(mobile_common_dirs)
383 monotouch_tv_PARALLEL_SUBDIRS := $(monotouch_tv_dirs_parallel)
384 monotouch_runtime_SUBDIRS := $(mobile_common_dirs)
385 monotouch_runtime_PARALLEL_SUBDIRS := $(monotouch_runtime_dirs_parallel)
386 monotouch_watch_runtime_SUBDIRS := $(mobile_common_dirs)
387 monotouch_watch_runtime_PARALLEL_SUBDIRS := $(monotouch_watch_runtime_dirs_parallel)
388 monotouch_tv_runtime_SUBDIRS := $(mobile_common_dirs)
389 monotouch_tv_runtime_PARALLEL_SUBDIRS := $(monotouch_tv_runtime_dirs_parallel)
390 monotouch_tools_SUBDIRS :=
391 monotouch_tools_PARALLEL_SUBDIRS := $(monotouch_tools_dirs_parallel)
393 testing_aot_full_interp_SUBDIRS := $(mobile_common_dirs)
394 testing_aot_full_interp_PARALLEL_SUBDIRS := $(testing_aot_full_interp_dirs_parallel)
395 testing_aot_full_SUBDIRS := $(mobile_common_dirs)
396 testing_aot_full_PARALLEL_SUBDIRS := $(testing_aot_full_dirs_parallel)
397 testing_aot_hybrid_SUBDIRS := $(mobile_common_dirs)
398 testing_aot_hybrid_PARALLEL_SUBDIRS := $(testing_aot_hybrid_dirs_parallel)
400 xammac_SUBDIRS := $(mobile_common_dirs)
401 xammac_PARALLEL_SUBDIRS := $(xammac_dirs_parallel)
402 xammac_net_4_5_SUBDIRS := $(mobile_common_dirs)
403 xammac_net_4_5_PARALLEL_SUBDIRS := $(xammac_4_5_dirs_parallel)
405 binary_reference_assemblies_SUBDIRS := reference-assemblies
406 net_4_x_SUBDIRS := $(net_4_x_dirs)
407 net_4_x_PARALLEL_SUBDIRS := $(net_4_x_parallel_dirs)
408 xbuild_12_SUBDIRS := $(xbuild_4_0_dirs)
409 xbuild_14_SUBDIRS := $(xbuild_4_0_dirs) Microsoft.NuGet.Build.Tasks
411 winaot_SUBDIRS := $(mobile_common_dirs)
412 winaot_PARALLEL_SUBDIRS := $(winaot_dirs_parallel)
414 orbis_SUBDIRS := $(mobile_common_dirs)
415 orbis_PARALLEL_SUBDIRS := $(orbis_dirs_parallel)
417 unreal_SUBDIRS := $(mobile_common_dirs)
418 unreal_PARALLEL_SUBDIRS := $(unreal_dirs_parallel)
420 wasm_SUBDIRS := $(mobile_common_dirs)
421 wasm_PARALLEL_SUBDIRS := $(wasm_dirs_parallel)
422 wasm_tools_SUBDIRS :=
423 wasm_tools_PARALLEL_SUBDIRS := $(wasm_tools_dirs_parallel)
425 netcore_SUBDIRS := System.Private.CoreLib
426 netcore_PARALLEL_SUBDIRS :=
428 include ../build/rules.make
430 DIST_SUBDIRS = $(testing_aot_full_dirs_parallel) $(testing_aot_hybrid_dirs_parallel) $(monotouch_dirs_parallel) $(monotouch_tools_dirs_parallel) \
431 $(monodroid_dirs_parallel) $(monodroid_tools_dirs_parallel) $(xammac_dirs_parallel) $(net_4_x_dirs) $(net_4_x_parallel_dirs) \
432 $(xammac_4_5_dirs_parallel) $(unreal_dirs_parallel) $(wasm_dirs_parallel) $(wasm_tools_dirs_parallel) $(xbuild_14_SUBDIRS) \
433 $(testing_aot_full_interp_dirs_parallel) $(netcore_SUBDIRS) dlr aot-compiler reference-assemblies Facades
435 # No new makefiles for: System.Messaging, System.Web.Mobile,
436 # System.ServiceProcess
438 DISTFILES = \
439 ecma.pub \
440 winfx.pub \
441 winfx3.pub \
442 mono.pub \
443 msfinal.pub \
444 silverlight.pub \
445 reactive.pub \
446 mono.snk \
447 Open.snk \
448 LICENSE \
449 README \
450 doc/API-notes \
451 doc/NUnitGuidelines \
452 doc/TemplateTest.cs \
453 notes/BitVecto32.txt \
454 MicrosoftAjaxLibrary/License.htm \
455 test-helpers/AdminHelper.cs \
456 test-helpers/Configuration.Http.cs \
457 test-helpers/NetworkHelpers.cs \
458 test-helpers/NunitHelpers.cs \
459 test-helpers/PlatformDetection.cs \
460 test-helpers/RemoteExecutorTestBase.Mobile.cs \
461 test-helpers/RemoteExecutorTestBase.Mono.cs \
462 test-helpers/SocketResponder.cs \
463 test-helpers/TestResourceHelper.cs \
464 test-helpers/PathHelpers.cs \
465 $(foreach HOST_PLATFORM,macos linux win32 unix,lib/$(monolite_dir)/mcs.exe $(monolite_files))
467 .PHONY: all-local $(STD_TARGETS:=-local)
468 all-local $(STD_TARGETS:=-local):
471 all-local-aot:
473 monolite_dir = monolite-$(HOST_PLATFORM)/$(MONO_CORLIB_VERSION)
475 # Files needed to bootstrap C# compiler and cil-stringreplacer
476 build_files := mscorlib.dll System.dll System.Xml.dll Mono.Security.dll System.Core.dll System.Security.dll System.Configuration.dll \
477 System.Numerics.dll System.Xml.Linq.dll System.IO.Compression.dll \
478 Facades/System.Collections.Concurrent.dll Facades/System.Linq.dll Facades/System.Runtime.dll Facades/System.Collections.dll \
479 Facades/System.Reflection.Extensions.dll Facades/System.Text.Encoding.Extensions.dll Facades/System.Diagnostics.Debug.dll \
480 Facades/System.Reflection.Primitives.dll Facades/System.Text.Encoding.dll Facades/System.Diagnostics.Tools.dll Facades/System.Reflection.dll \
481 Facades/System.Threading.Tasks.Parallel.dll Facades/System.Dynamic.Runtime.dll Facades/System.Resources.ResourceManager.dll \
482 Facades/System.Threading.Tasks.dll Facades/System.Globalization.dll Facades/System.Runtime.Extensions.dll Facades/System.Threading.dll \
483 Facades/System.IO.dll Facades/System.Runtime.InteropServices.dll Facades/System.Xml.ReaderWriter.dll Facades/System.Linq.Expressions.dll \
484 Facades/System.Runtime.Numerics.dll Facades/System.Xml.XDocument.dll Facades/System.IO.FileSystem.Primitives.dll Facades/System.IO.FileSystem.dll \
485 Facades/System.Diagnostics.FileVersionInfo.dll Facades/System.Security.Cryptography.Primitives.dll Facades/System.Security.Cryptography.Algorithms.dll \
486 Facades/System.ValueTuple.dll Facades/System.Text.Encoding.CodePages.dll Facades/netstandard.dll \
487 Mono.Cecil.dll
489 monolite_files = $(build_files:%=lib/$(monolite_dir)/%)
491 lib/$(monolite_dir):
492 lib/$(monolite_dir)/Facades:
493 $(MKINSTALLDIRS) $@
495 $(monolite_files): | lib/$(monolite_dir)
496 $(monolite_files): | lib/$(monolite_dir)/Facades
497 $(monolite_files): lib/$(monolite_dir)/%: lib/build-$(HOST_PLATFORM)/%
498 cp -p $< $@
500 lib/$(monolite_dir)/mcs.exe:
501 $(MAKE) -C ../mcs PROFILE=build
502 cp -p lib/build-$(HOST_PLATFORM)/mcs.exe lib/$(monolite_dir)
504 $(build_files:%=lib/build-$(HOST_PLATFORM)/%):
505 cd $(topdir) && $(MAKE) profile-do--build--all NO_DIR_CHECK=1 SKIP_AOT=1
507 dist-monolite: $(monolite_files) lib/$(monolite_dir)/mcs.exe
509 dist-monolite-all-platforms:
510 $(MAKE) dist-monolite HOST_PLATFORM=macos
511 $(MAKE) dist-monolite HOST_PLATFORM=linux
512 $(MAKE) dist-monolite HOST_PLATFORM=win32
513 $(MAKE) dist-monolite HOST_PLATFORM=unix
515 package-monolite-latest:
516 MONOLITE=monolite-$(HOST_PLATFORM)-$(MONO_CORLIB_VERSION)-latest; \
517 $(MAKE) dist-monolite monolite_dir=$$MONOLITE; \
518 tar zcvpf $$MONOLITE.tar.gz --directory=lib $$MONOLITE/
520 package-monolite-latest-all-platforms:
521 $(MAKE) package-monolite-latest HOST_PLATFORM=macos
522 $(MAKE) package-monolite-latest HOST_PLATFORM=linux
523 $(MAKE) package-monolite-latest HOST_PLATFORM=win32
524 $(MAKE) package-monolite-latest HOST_PLATFORM=unix
526 monolite_url = https://download.mono-project.com/monolite/monolite-$(BUILD_PLATFORM)-$(MONO_CORLIB_VERSION)-latest.tar.gz
528 get-monolite-latest:
529 -rm -fr lib/monolite-$(BUILD_PLATFORM)/$(MONO_CORLIB_VERSION)
530 -mkdir -p lib/monolite-$(BUILD_PLATFORM)
531 cd lib && { (wget -O- $(monolite_url) || curl -L $(monolite_url)) | gzip -d | tar xf - ; }
532 cd lib && mv -f monolite-$(BUILD_PLATFORM)-$(MONO_CORLIB_VERSION)-latest monolite-$(BUILD_PLATFORM)/$(MONO_CORLIB_VERSION)
534 dist-default: dist-monolite-all-platforms
536 dist-local: dist-default
538 csproj-local:
540 do-clean:
541 $(RM) -rf $(topdir)/class/lib/$(PROFILE)
543 ## Aliases for .dep_dirs-* tracker
544 .PHONY: Microsoft.Build.Utilities.v4.0 System.ComponentModel.Composition System.Xml
545 Microsoft.Build.Utilities.v4.0: Microsoft.Build.Utilities
546 System.ComponentModel.Composition: System.ComponentModel.Composition.4.5
547 System.Xml: System.XML