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
9 -include ..
/build
/config.make
12 MCS_MODE_dirs
:= Mono.Cecil.Mdb
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
21 ..
/tools
/cil-stringreplacer \
26 build_PARALLEL_SUBDIRS
= \
33 System.Configuration \
34 System.ComponentModel.Composition
.4.5 \
37 System.IO.Compression \
38 System.IO.Compression.FileSystem \
40 System.Net.Http.WebRequest \
52 Mono.CompilerServices.SymbolWriter
54 build_PARALLEL_SUBDIRS
+= ..
/mcs
57 mobile_common_dirs
:= \
60 mobile_common_dirs_parallel
:= \
67 System.ServiceModel.Internals \
68 System.Runtime.Serialization \
70 System.IdentityModel \
72 System.ServiceModel.Web \
78 System.Numerics.Vectors \
81 System.Data.Services.Client \
82 System.IO.Compression \
83 System.IO.Compression.FileSystem \
84 System.ComponentModel.DataAnnotations \
85 System.ComponentModel.Composition
.4.5 \
89 System.Xml.Serialization \
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
) \
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 \
109 monodroid_dirs_parallel
:= \
110 $(mobile_common_dirs_parallel
) \
111 Mono.CompilerServices.SymbolWriter \
112 Mono.Btls.Interface \
118 monodroid_tools_dirs_parallel
:= \
121 Mono.CompilerServices.SymbolWriter \
122 ICSharpCode.SharpZipLib \
127 monotouch_tools_dirs_parallel
:= \
131 monotouch_dirs_parallel
:= \
132 $(mobile_common_dirs_parallel
) \
137 monotouch_watch_dirs_parallel
:= $(filter-out Mono.Security Mono.Data.Tds
,$(monotouch_dirs_parallel
))
139 monotouch_runtime_dirs_parallel
:= \
146 monotouch_tv_dirs_parallel
:= $(monotouch_dirs_parallel
)
148 monotouch_tv_runtime_dirs_parallel
:= $(monotouch_runtime_dirs_parallel
)
150 monotouch_watch_runtime_dirs_parallel
:= \
156 monotouch_tv_runtime_dirs
:= \
158 $(monotouch_watch_runtime_dirs_parallel
)
160 winaot_dirs_parallel
:= \
161 $(mobile_common_dirs_parallel
) \
164 testing_winaot_interp_dirs_parallel
:= \
165 $(mobile_common_dirs_parallel
) \
168 unreal_dirs_parallel
:= \
169 $(mobile_common_dirs_parallel
)
171 wasm_dirs_parallel
:= \
178 System.Transactions \
179 System.ServiceModel.Internals \
180 System.Runtime.Serialization \
184 System.Numerics.Vectors \
185 System.IO.Compression \
186 System.IO.Compression.FileSystem \
187 System.ComponentModel.DataAnnotations \
188 System.ComponentModel.Composition
.4.5 \
191 System.Runtime.CompilerServices.Unsafe
193 wasm_tools_dirs_parallel
:= \
196 orbis_dirs_parallel
:= \
197 $(filter-out Microsoft.CSharp Mono.Data.Sqlite
,$(mobile_common_dirs_parallel
))
199 xammac_4_5_dirs_parallel
:= \
206 System.Configuration \
208 System.ServiceModel.Internals \
211 System.Numerics.Vectors \
213 System.Transactions \
214 System.EnterpriseServices \
216 System.Runtime.Serialization \
219 System.Runtime.Serialization.Formatters.Soap \
220 System.ComponentModel.DataAnnotations \
221 System.IdentityModel \
222 System.IdentityModel.Selectors \
224 System.Configuration.Install \
226 System.Web.Services \
227 System.ServiceModel \
228 System.ServiceModel.Web \
230 System.Data.Services.Client \
231 System.IO.Compression \
232 System.IO.Compression.FileSystem \
233 System.ComponentModel.Composition
.4.5 \
236 System.Xml.Serialization \
239 Mono.CompilerServices.SymbolWriter \
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
254 net_4_x_parallel_dirs
= \
258 System.Configuration \
260 System.IO.Compression \
261 System.IO.Compression.FileSystem \
262 System.Transactions \
263 System.EnterpriseServices \
265 System.Numerics.Vectors \
267 System.ComponentModel.DataAnnotations \
270 System.Runtime.Serialization.Formatters.Soap \
271 System.Windows.Forms \
273 System.Web.ApplicationServices \
274 Novell.Directory.Ldap \
275 System.DirectoryServices \
277 System.Web.Services \
279 System.Runtime.Remoting \
280 System.Configuration.Install \
282 System.Data.OracleClient \
283 Commons.Xml.Relaxng \
286 System.ServiceProcess \
287 System.Drawing.Design \
288 ICSharpCode.SharpZipLib \
290 System.ServiceModel.Internals \
292 System.Runtime.Serialization \
295 System.Web.Abstractions \
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 \
307 System.ServiceModel.Activation \
308 System.ServiceModel.Routing \
309 System.ServiceModel.Discovery \
310 System.Runtime.Caching \
311 Microsoft.Web.Infrastructure \
312 System.ServiceModel.Web \
314 System.Net.Http.WebRequest \
316 System.Web.WebPages.Deployment \
317 System.Web.WebPages \
318 System.Web.WebPages.Razor \
320 System.Net.Http.Formatting \
322 System.Web.Http.SelfHost \
323 System.Web.Http.WebHost \
329 Mono.CompilerServices.SymbolWriter \
330 Mono.Btls.Interface \
344 Mono.Security.Win32 \
345 Mono.Messaging.RabbitMQ \
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 \
363 System.Data.DataSetExtensions \
365 System.Json.Microsoft \
366 System.Threading.Tasks.Dataflow \
367 System.ComponentModel.Composition
.4.5 \
369 System.Xml.Serialization \
370 System.DirectoryServices.Protocols \
377 System.Web.RegularExpressions \
378 System.Workflow.Activities \
379 System.Workflow.ComponentModel \
380 System.Workflow.Runtime \
381 System.Reflection.Context \
384 System.Runtime.CompilerServices.Unsafe \
390 Microsoft.Build.Framework \
391 Microsoft.Build.Utilities \
392 Microsoft.Build.Engine \
394 Microsoft.Build.Tasks \
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
)
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
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
):
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 \
516 monolite_files
= $(build_files
:%=lib
/$(monolite_dir
)/%)
519 lib
/$(monolite_dir
)/Facades
:
522 $(monolite_files
): | lib
/$(monolite_dir
)
523 $(monolite_files
): | lib
/$(monolite_dir
)/Facades
524 $(monolite_files
): lib
/$(monolite_dir
)/%: lib
/build-
$(HOST_PLATFORM
)/%
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
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
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