[netcore] Remove local copy of static alc resolve methods
[mono-project.git] / mcs / class / Makefile
blobeb39ac8c2d3f3ec26ec724c343e9a3ad957d0069
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.Cecil.Mdb \
121 Mono.CompilerServices.SymbolWriter \
122 ICSharpCode.SharpZipLib \
123 monodoc \
124 Mono.Debugger.Soft \
125 Mono.Profiler.Log
127 monotouch_tools_dirs_parallel := \
128 Mono.Cecil \
129 Mono.Cecil.Mdb
131 monotouch_dirs_parallel := \
132 $(mobile_common_dirs_parallel) \
133 Mono.Simd \
134 Mono.CSharp \
135 Mono.Runtime.Tests
137 monotouch_watch_dirs_parallel := $(filter-out Mono.Security Mono.Data.Tds,$(monotouch_dirs_parallel))
139 monotouch_runtime_dirs_parallel := \
140 Mono.Security \
141 System \
142 System.Core \
143 System.XML \
144 Mono.CSharp
146 monotouch_tv_dirs_parallel := $(monotouch_dirs_parallel)
148 monotouch_tv_runtime_dirs_parallel := $(monotouch_runtime_dirs_parallel)
150 monotouch_watch_runtime_dirs_parallel := \
151 System \
152 System.Core \
153 System.XML \
154 Mono.CSharp
156 monotouch_tv_runtime_dirs := \
157 Mono.Security \
158 $(monotouch_watch_runtime_dirs_parallel)
160 winaot_dirs_parallel := \
161 $(mobile_common_dirs_parallel) \
162 Mono.Simd
164 testing_winaot_interp_dirs_parallel := \
165 $(mobile_common_dirs_parallel) \
166 Mono.Simd
168 unreal_dirs_parallel := \
169 $(mobile_common_dirs_parallel)
171 wasm_dirs_parallel := \
172 Mono.Security \
173 System \
174 System.Core \
175 System.XML \
176 System.Security \
177 I18N \
178 System.Transactions \
179 System.ServiceModel.Internals \
180 System.Runtime.Serialization \
181 System.Data \
182 System.Xml.Linq \
183 System.Numerics \
184 System.Numerics.Vectors \
185 System.IO.Compression \
186 System.IO.Compression.FileSystem \
187 System.ComponentModel.DataAnnotations \
188 System.ComponentModel.Composition.4.5 \
189 System.Net.Http \
190 Microsoft.CSharp \
191 System.Runtime.CompilerServices.Unsafe
193 wasm_tools_dirs_parallel := \
194 Mono.Cecil
196 orbis_dirs_parallel := \
197 $(filter-out Microsoft.CSharp Mono.Data.Sqlite,$(mobile_common_dirs_parallel))
199 xammac_4_5_dirs_parallel := \
200 Mono.Security \
201 System \
202 System.XML \
203 System.Security \
204 Mono.Posix \
205 System.Core \
206 System.Configuration \
207 I18N \
208 System.ServiceModel.Internals \
209 SMDiagnostics \
210 System.Numerics \
211 System.Numerics.Vectors \
212 Mono.Data.Tds \
213 System.Transactions \
214 System.EnterpriseServices \
215 System.Data \
216 System.Runtime.Serialization \
217 System.Xml.Linq \
218 Mono.Data.Sqlite \
219 System.Runtime.Serialization.Formatters.Soap \
220 System.ComponentModel.DataAnnotations \
221 System.IdentityModel \
222 System.IdentityModel.Selectors \
223 Mono.Messaging \
224 System.Configuration.Install \
225 System.Messaging \
226 System.Web.Services \
227 System.ServiceModel \
228 System.ServiceModel.Web \
229 System.Json \
230 System.Data.Services.Client \
231 System.IO.Compression \
232 System.IO.Compression.FileSystem \
233 System.ComponentModel.Composition.4.5 \
234 System.Net \
235 System.Windows \
236 System.Xml.Serialization \
237 Mono.CSharp \
238 Microsoft.CSharp \
239 Mono.CompilerServices.SymbolWriter \
240 System.Data.Linq \
241 System.Net.Http \
242 System.Net.Http.WebRequest \
243 System.Reflection.Context \
244 System.Net.Http.WinHttpHandler \
245 System.Runtime.CompilerServices.Unsafe
247 # Could be just mscorlib but we have unhandled dependency from RabbitMQ.Client.Apigen.exe
248 net_4_x_dirs := \
249 corlib \
250 Mono.Security \
251 System \
252 System.XML
254 net_4_x_parallel_dirs = \
255 System.Security \
256 Mono.Posix \
257 System.Core \
258 System.Configuration \
259 System.Drawing \
260 System.IO.Compression \
261 System.IO.Compression.FileSystem \
262 System.Transactions \
263 System.EnterpriseServices \
264 System.Numerics \
265 System.Numerics.Vectors \
266 System.Data \
267 System.ComponentModel.DataAnnotations \
268 Accessibility \
269 Mono.WebBrowser \
270 System.Runtime.Serialization.Formatters.Soap \
271 System.Windows.Forms \
272 Mono.Data.Sqlite \
273 System.Web.ApplicationServices \
274 Novell.Directory.Ldap \
275 System.DirectoryServices \
276 System.Design \
277 System.Web.Services \
278 System.Web \
279 System.Runtime.Remoting \
280 System.Configuration.Install \
281 System.Management \
282 System.Data.OracleClient \
283 Commons.Xml.Relaxng \
284 Mono.Messaging \
285 System.Messaging \
286 System.ServiceProcess \
287 System.Drawing.Design \
288 ICSharpCode.SharpZipLib \
289 Microsoft.CSharp \
290 System.ServiceModel.Internals \
291 SMDiagnostics \
292 System.Runtime.Serialization \
293 System.Xml.Linq \
294 System.Data.Linq \
295 System.Web.Abstractions \
296 System.Web.Routing \
297 System.Runtime.DurableInstancing \
298 System.IdentityModel \
299 System.IdentityModel.Selectors \
300 System.ServiceModel \
301 System.Web.Extensions \
302 System.Web.Extensions.Design \
303 System.Web.DynamicData \
304 System.Net \
305 System.Xaml \
306 WindowsBase \
307 System.ServiceModel.Activation \
308 System.ServiceModel.Routing \
309 System.ServiceModel.Discovery \
310 System.Runtime.Caching \
311 Microsoft.Web.Infrastructure \
312 System.ServiceModel.Web \
313 System.Net.Http \
314 System.Net.Http.WebRequest \
315 System.Web.Razor \
316 System.Web.WebPages.Deployment \
317 System.Web.WebPages \
318 System.Web.WebPages.Razor \
319 System.Web.Mvc3 \
320 System.Net.Http.Formatting \
321 System.Web.Http \
322 System.Web.Http.SelfHost \
323 System.Web.Http.WebHost \
324 CustomMarshalers \
325 IBM.Data.DB2 \
326 PEAPI \
327 I18N \
328 Cscompmgd \
329 Mono.CompilerServices.SymbolWriter \
330 Mono.Btls.Interface \
331 Mono.Http \
332 Mono.Cairo \
333 Mono.Cecil \
334 Mono.Cecil.Mdb \
335 Mono.CSharp \
336 Mono.Debugger.Soft \
337 Mono.C5 \
338 Mono.Management \
339 Mono.Options \
340 Mono.Simd \
341 Mono.Tasklets \
342 Mono.CodeContracts \
343 Mono.Parallel \
344 Mono.Security.Win32 \
345 Mono.Messaging.RabbitMQ \
346 Mono.Data.Tds \
347 System.Dynamic \
348 System.Windows.Forms.DataVisualization \
349 System.Reactive.Interfaces \
350 System.Reactive.Core \
351 System.Reactive.Linq \
352 System.Reactive.PlatformServices \
353 System.Reactive.Providers \
354 System.Reactive.Runtime.Remoting \
355 System.Reactive.Windows.Forms \
356 System.Reactive.Windows.Threading \
357 System.Reactive.Observable.Aliases \
358 System.Reactive.Experimental \
359 System.Reactive.Debugger \
360 System.Data.Services.Client \
361 System.Data.Services \
362 System.Data.Entity \
363 System.Data.DataSetExtensions \
364 System.Json \
365 System.Json.Microsoft \
366 System.Threading.Tasks.Dataflow \
367 System.ComponentModel.Composition.4.5 \
368 System.Windows \
369 System.Xml.Serialization \
370 System.DirectoryServices.Protocols \
371 RabbitMQ.Client \
372 Microsoft.VisualC \
373 WebMatrix.Data \
374 monodoc \
375 System.Deployment \
376 System.Web.Mobile \
377 System.Web.RegularExpressions \
378 System.Workflow.Activities \
379 System.Workflow.ComponentModel \
380 System.Workflow.Runtime \
381 System.Reflection.Context \
382 Mono.Profiler.Log \
383 Mono.Runtime.Tests \
384 System.Runtime.CompilerServices.Unsafe \
385 legacy/Mono.Cecil \
386 SystemWebTestShim \
387 $(xbuild_4_0_dirs)
389 xbuild_4_0_dirs := \
390 Microsoft.Build.Framework \
391 Microsoft.Build.Utilities \
392 Microsoft.Build.Engine \
393 Mono.XBuild.Tasks \
394 Microsoft.Build.Tasks \
395 Microsoft.Build
397 monodroid_SUBDIRS := $(mobile_common_dirs)
398 monodroid_PARALLEL_SUBDIRS := $(monodroid_dirs_parallel)
399 monodroid_tools_SUBDIRS :=
400 monodroid_tools_PARALLEL_SUBDIRS := $(monodroid_tools_dirs_parallel)
402 monotouch_SUBDIRS := $(mobile_common_dirs)
403 monotouch_PARALLEL_SUBDIRS := $(monotouch_dirs_parallel)
404 monotouch_watch_SUBDIRS := $(mobile_common_dirs)
405 monotouch_watch_PARALLEL_SUBDIRS := $(monotouch_watch_dirs_parallel)
406 monotouch_tv_SUBDIRS := $(mobile_common_dirs)
407 monotouch_tv_PARALLEL_SUBDIRS := $(monotouch_tv_dirs_parallel)
408 monotouch_runtime_SUBDIRS := $(mobile_common_dirs)
409 monotouch_runtime_PARALLEL_SUBDIRS := $(monotouch_runtime_dirs_parallel)
410 monotouch_watch_runtime_SUBDIRS := $(mobile_common_dirs)
411 monotouch_watch_runtime_PARALLEL_SUBDIRS := $(monotouch_watch_runtime_dirs_parallel)
412 monotouch_tv_runtime_SUBDIRS := $(mobile_common_dirs)
413 monotouch_tv_runtime_PARALLEL_SUBDIRS := $(monotouch_tv_runtime_dirs_parallel)
414 monotouch_tools_SUBDIRS :=
415 monotouch_tools_PARALLEL_SUBDIRS := $(monotouch_tools_dirs_parallel)
417 testing_aot_full_interp_SUBDIRS := $(mobile_common_dirs)
418 testing_aot_full_interp_PARALLEL_SUBDIRS := $(testing_aot_full_interp_dirs_parallel)
419 testing_aot_full_SUBDIRS := $(mobile_common_dirs)
420 testing_aot_full_PARALLEL_SUBDIRS := $(testing_aot_full_dirs_parallel)
421 testing_aot_hybrid_SUBDIRS := $(mobile_common_dirs)
422 testing_aot_hybrid_PARALLEL_SUBDIRS := $(testing_aot_hybrid_dirs_parallel)
424 xammac_SUBDIRS := $(mobile_common_dirs)
425 xammac_PARALLEL_SUBDIRS := $(xammac_dirs_parallel)
426 xammac_net_4_5_SUBDIRS := $(mobile_common_dirs)
427 xammac_net_4_5_PARALLEL_SUBDIRS := $(xammac_4_5_dirs_parallel)
429 binary_reference_assemblies_SUBDIRS := reference-assemblies
430 net_4_x_SUBDIRS := $(net_4_x_dirs)
431 net_4_x_PARALLEL_SUBDIRS := $(net_4_x_parallel_dirs)
432 xbuild_12_SUBDIRS := $(xbuild_4_0_dirs)
433 xbuild_14_SUBDIRS := $(xbuild_4_0_dirs) Microsoft.NuGet.Build.Tasks
435 winaot_SUBDIRS := $(mobile_common_dirs)
436 winaot_PARALLEL_SUBDIRS := $(winaot_dirs_parallel)
438 testing_winaot_interp_SUBDIRS := $(mobile_common_dirs)
439 testing_winaot_interp_PARALLEL_SUBDIRS := $(testing_winaot_interp_dirs_parallel)
441 orbis_SUBDIRS := $(mobile_common_dirs)
442 orbis_PARALLEL_SUBDIRS := $(orbis_dirs_parallel)
444 unreal_SUBDIRS := $(mobile_common_dirs)
445 unreal_PARALLEL_SUBDIRS := $(unreal_dirs_parallel)
447 wasm_SUBDIRS := $(mobile_common_dirs)
448 wasm_PARALLEL_SUBDIRS := $(wasm_dirs_parallel)
449 wasm_tools_SUBDIRS :=
450 wasm_tools_PARALLEL_SUBDIRS := $(wasm_tools_dirs_parallel)
452 netcore_SUBDIRS :=
453 netcore_PARALLEL_SUBDIRS :=
455 include ../build/rules.make
457 DIST_SUBDIRS = $(testing_aot_full_dirs_parallel) $(testing_aot_hybrid_dirs_parallel) $(monotouch_dirs_parallel) $(monotouch_tools_dirs_parallel) \
458 $(monodroid_dirs_parallel) $(monodroid_tools_dirs_parallel) $(xammac_dirs_parallel) $(net_4_x_dirs) $(net_4_x_parallel_dirs) \
459 $(xammac_4_5_dirs_parallel) $(unreal_dirs_parallel) $(wasm_dirs_parallel) $(wasm_tools_dirs_parallel) $(xbuild_14_SUBDIRS) \
460 $(testing_aot_full_interp_dirs_parallel) $(netcore_SUBDIRS) dlr aot-compiler reference-assemblies Facades
462 # No new makefiles for: System.Messaging, System.Web.Mobile,
463 # System.ServiceProcess
465 DISTFILES = \
466 ecma.pub \
467 winfx.pub \
468 winfx3.pub \
469 mono.pub \
470 msfinal.pub \
471 silverlight.pub \
472 reactive.pub \
473 mono.snk \
474 Open.snk \
475 LICENSE \
476 README \
477 doc/API-notes \
478 doc/NUnitGuidelines \
479 doc/TemplateTest.cs \
480 notes/BitVecto32.txt \
481 MicrosoftAjaxLibrary/License.htm \
482 test-helpers/AdminHelper.cs \
483 test-helpers/Configuration.Http.cs \
484 test-helpers/NetworkHelpers.cs \
485 test-helpers/NunitHelpers.cs \
486 test-helpers/PlatformDetection.cs \
487 test-helpers/RemoteExecutorTestBase.Mobile.cs \
488 test-helpers/RemoteExecutorTestBase.Mono.cs \
489 test-helpers/SocketResponder.cs \
490 test-helpers/TestResourceHelper.cs \
491 test-helpers/PathHelpers.cs \
492 $(foreach HOST_PLATFORM,macos linux win32 unix,lib/$(monolite_dir)/mcs.exe $(monolite_files))
494 .PHONY: all-local $(STD_TARGETS:=-local)
495 all-local $(STD_TARGETS:=-local):
498 all-local-aot:
500 monolite_dir = monolite-$(HOST_PLATFORM)/$(MONO_CORLIB_VERSION)
502 # Files needed to bootstrap C# compiler and cil-stringreplacer
503 build_files := mscorlib.dll System.dll System.Xml.dll Mono.Security.dll System.Core.dll System.Security.dll System.Configuration.dll \
504 System.Numerics.dll System.Xml.Linq.dll System.IO.Compression.dll \
505 Facades/System.Collections.Concurrent.dll Facades/System.Linq.dll Facades/System.Runtime.dll Facades/System.Collections.dll \
506 Facades/System.Reflection.Extensions.dll Facades/System.Text.Encoding.Extensions.dll Facades/System.Diagnostics.Debug.dll \
507 Facades/System.Reflection.Primitives.dll Facades/System.Text.Encoding.dll Facades/System.Diagnostics.Tools.dll Facades/System.Reflection.dll \
508 Facades/System.Threading.Tasks.Parallel.dll Facades/System.Dynamic.Runtime.dll Facades/System.Resources.ResourceManager.dll \
509 Facades/System.Threading.Tasks.dll Facades/System.Globalization.dll Facades/System.Runtime.Extensions.dll Facades/System.Threading.dll \
510 Facades/System.IO.dll Facades/System.Runtime.InteropServices.dll Facades/System.Xml.ReaderWriter.dll Facades/System.Linq.Expressions.dll \
511 Facades/System.Runtime.Numerics.dll Facades/System.Xml.XDocument.dll Facades/System.IO.FileSystem.Primitives.dll Facades/System.IO.FileSystem.dll \
512 Facades/System.Diagnostics.FileVersionInfo.dll Facades/System.Security.Cryptography.Primitives.dll Facades/System.Security.Cryptography.Algorithms.dll \
513 Facades/System.ValueTuple.dll Facades/System.Text.Encoding.CodePages.dll Facades/netstandard.dll \
514 Mono.Cecil.dll
516 monolite_files = $(build_files:%=lib/$(monolite_dir)/%)
518 lib/$(monolite_dir):
519 lib/$(monolite_dir)/Facades:
520 $(MKINSTALLDIRS) $@
522 $(monolite_files): | lib/$(monolite_dir)
523 $(monolite_files): | lib/$(monolite_dir)/Facades
524 $(monolite_files): lib/$(monolite_dir)/%: lib/build-$(HOST_PLATFORM)/%
525 cp -p $< $@
527 lib/$(monolite_dir)/mcs.exe:
528 $(MAKE) -C ../mcs PROFILE=build
529 cp -p lib/build-$(HOST_PLATFORM)/mcs.exe lib/$(monolite_dir)
531 $(build_files:%=lib/build-$(HOST_PLATFORM)/%):
532 cd $(topdir) && $(MAKE) profile-do--build--all NO_DIR_CHECK=1 SKIP_AOT=1
534 dist-monolite: $(monolite_files) lib/$(monolite_dir)/mcs.exe
536 dist-monolite-all-platforms:
537 $(MAKE) dist-monolite HOST_PLATFORM=macos
538 $(MAKE) dist-monolite HOST_PLATFORM=linux
539 $(MAKE) dist-monolite HOST_PLATFORM=win32
540 $(MAKE) dist-monolite HOST_PLATFORM=unix
542 package-monolite-latest:
543 MONOLITE=monolite-$(HOST_PLATFORM)-$(MONO_CORLIB_VERSION)-latest; \
544 $(MAKE) dist-monolite monolite_dir=$$MONOLITE; \
545 tar zcvpf $$MONOLITE.tar.gz --directory=lib $$MONOLITE/
547 package-monolite-latest-all-platforms:
548 $(MAKE) package-monolite-latest HOST_PLATFORM=macos
549 $(MAKE) package-monolite-latest HOST_PLATFORM=linux
550 $(MAKE) package-monolite-latest HOST_PLATFORM=win32
551 $(MAKE) package-monolite-latest HOST_PLATFORM=unix
553 monolite_url = https://download.mono-project.com/monolite/monolite-$(BUILD_PLATFORM)-$(MONO_CORLIB_VERSION)-latest.tar.gz
555 get-monolite-latest:
556 -rm -fr lib/monolite-$(BUILD_PLATFORM)/$(MONO_CORLIB_VERSION)
557 -mkdir -p lib/monolite-$(BUILD_PLATFORM)
558 cd lib && { (wget -O- $(monolite_url) || curl -L $(monolite_url)) | gzip -d | tar xf - ; }
559 cd lib && mv -f monolite-$(BUILD_PLATFORM)-$(MONO_CORLIB_VERSION)-latest monolite-$(BUILD_PLATFORM)/$(MONO_CORLIB_VERSION)
561 dist-default: dist-monolite-all-platforms
563 dist-local: dist-default
565 csproj-local:
567 do-clean:
568 $(RM) -rf $(topdir)/class/lib/$(PROFILE)
570 ## Aliases for .dep_dirs-* tracker
571 .PHONY: Microsoft.Build.Utilities.v4.0 System.ComponentModel.Composition System.Xml
572 Microsoft.Build.Utilities.v4.0: Microsoft.Build.Utilities
573 System.ComponentModel.Composition: System.ComponentModel.Composition.4.5
574 System.Xml: System.XML