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
:= \
120 Mono.CompilerServices.SymbolWriter \
121 ICSharpCode.SharpZipLib \
125 monotouch_tools_dirs_parallel
:= \
129 monotouch_dirs_parallel
:= \
130 $(mobile_common_dirs_parallel
) \
135 monotouch_watch_dirs_parallel
:= $(filter-out Mono.Security Mono.Data.Tds
,$(monotouch_dirs_parallel
))
137 monotouch_runtime_dirs_parallel
:= \
144 monotouch_tv_dirs_parallel
:= $(monotouch_dirs_parallel
)
146 monotouch_tv_runtime_dirs_parallel
:= $(monotouch_runtime_dirs_parallel
)
148 monotouch_watch_runtime_dirs_parallel
:= \
154 monotouch_tv_runtime_dirs
:= \
156 $(monotouch_watch_runtime_dirs_parallel
)
158 winaot_dirs_parallel
:= \
159 $(mobile_common_dirs_parallel
) \
162 unreal_dirs_parallel
:= \
163 $(mobile_common_dirs_parallel
)
165 wasm_dirs_parallel
:= \
166 $(mobile_common_dirs_parallel
)
168 wasm_tools_dirs_parallel
:= \
171 orbis_dirs_parallel
:= \
172 $(filter-out Microsoft.CSharp Mono.Data.Sqlite
,$(mobile_common_dirs_parallel
))
174 xammac_4_5_dirs_parallel
:= \
181 System.Configuration \
183 System.ServiceModel.Internals \
186 System.Numerics.Vectors \
188 System.Transactions \
189 System.EnterpriseServices \
191 System.Runtime.Serialization \
194 System.Runtime.Serialization.Formatters.Soap \
195 System.ComponentModel.DataAnnotations \
196 System.IdentityModel \
197 System.IdentityModel.Selectors \
199 System.Configuration.Install \
201 System.Web.Services \
202 System.ServiceModel \
203 System.ServiceModel.Web \
205 System.Data.Services.Client \
206 System.IO.Compression \
207 System.IO.Compression.FileSystem \
208 System.ComponentModel.Composition
.4.5 \
211 System.Xml.Serialization \
214 Mono.CompilerServices.SymbolWriter \
217 System.Net.Http.WebRequest \
218 System.Reflection.Context \
219 System.Net.Http.WinHttpHandler \
220 System.Runtime.CompilerServices.Unsafe
222 # Could be just mscorlib but we have unhandled dependency from RabbitMQ.Client.Apigen.exe
229 net_4_x_parallel_dirs
= \
233 System.Configuration \
235 System.IO.Compression \
236 System.IO.Compression.FileSystem \
237 System.Transactions \
238 System.EnterpriseServices \
240 System.Numerics.Vectors \
242 System.ComponentModel.DataAnnotations \
245 System.Runtime.Serialization.Formatters.Soap \
246 System.Windows.Forms \
248 System.Web.ApplicationServices \
249 Novell.Directory.Ldap \
250 System.DirectoryServices \
252 System.Web.Services \
254 System.Runtime.Remoting \
255 System.Configuration.Install \
257 System.Data.OracleClient \
258 Commons.Xml.Relaxng \
261 System.ServiceProcess \
262 System.Drawing.Design \
263 ICSharpCode.SharpZipLib \
265 System.ServiceModel.Internals \
267 System.Runtime.Serialization \
270 System.Web.Abstractions \
272 System.Runtime.DurableInstancing \
273 System.IdentityModel \
274 System.IdentityModel.Selectors \
275 System.ServiceModel \
276 System.Web.Extensions \
277 System.Web.Extensions.Design \
278 System.Web.DynamicData \
282 System.ServiceModel.Activation \
283 System.ServiceModel.Routing \
284 System.ServiceModel.Discovery \
285 System.Runtime.Caching \
286 Microsoft.Web.Infrastructure \
287 System.ServiceModel.Web \
289 System.Net.Http.WebRequest \
291 System.Web.WebPages.Deployment \
292 System.Web.WebPages \
293 System.Web.WebPages.Razor \
295 System.Net.Http.Formatting \
297 System.Web.Http.SelfHost \
298 System.Web.Http.WebHost \
304 Mono.CompilerServices.SymbolWriter \
305 Mono.Btls.Interface \
319 Mono.Security.Win32 \
320 Mono.Messaging.RabbitMQ \
323 System.Windows.Forms.DataVisualization \
324 System.Reactive.Interfaces \
325 System.Reactive.Core \
326 System.Reactive.Linq \
327 System.Reactive.PlatformServices \
328 System.Reactive.Providers \
329 System.Reactive.Runtime.Remoting \
330 System.Reactive.Windows.Forms \
331 System.Reactive.Windows.Threading \
332 System.Reactive.Observable.Aliases \
333 System.Reactive.Experimental \
334 System.Reactive.Debugger \
335 System.Data.Services.Client \
336 System.Data.Services \
338 System.Data.DataSetExtensions \
340 System.Json.Microsoft \
341 System.Threading.Tasks.Dataflow \
342 System.ComponentModel.Composition
.4.5 \
344 System.Xml.Serialization \
345 System.DirectoryServices.Protocols \
352 System.Web.RegularExpressions \
353 System.Workflow.Activities \
354 System.Workflow.ComponentModel \
355 System.Workflow.Runtime \
356 System.Reflection.Context \
359 System.Runtime.CompilerServices.Unsafe \
365 Microsoft.Build.Framework \
366 Microsoft.Build.Utilities \
367 Microsoft.Build.Engine \
369 Microsoft.Build.Tasks \
372 monodroid_SUBDIRS
:= $(mobile_common_dirs
)
373 monodroid_PARALLEL_SUBDIRS
:= $(monodroid_dirs_parallel
)
374 monodroid_tools_SUBDIRS
:=
375 monodroid_tools_PARALLEL_SUBDIRS
:= $(monodroid_tools_dirs_parallel
)
377 monotouch_SUBDIRS
:= $(mobile_common_dirs
)
378 monotouch_PARALLEL_SUBDIRS
:= $(monotouch_dirs_parallel
)
379 monotouch_watch_SUBDIRS
:= $(mobile_common_dirs
)
380 monotouch_watch_PARALLEL_SUBDIRS
:= $(monotouch_watch_dirs_parallel
)
381 monotouch_tv_SUBDIRS
:= $(mobile_common_dirs
)
382 monotouch_tv_PARALLEL_SUBDIRS
:= $(monotouch_tv_dirs_parallel
)
383 monotouch_runtime_SUBDIRS
:= $(mobile_common_dirs
)
384 monotouch_runtime_PARALLEL_SUBDIRS
:= $(monotouch_runtime_dirs_parallel
)
385 monotouch_watch_runtime_SUBDIRS
:= $(mobile_common_dirs
)
386 monotouch_watch_runtime_PARALLEL_SUBDIRS
:= $(monotouch_watch_runtime_dirs_parallel
)
387 monotouch_tv_runtime_SUBDIRS
:= $(mobile_common_dirs
)
388 monotouch_tv_runtime_PARALLEL_SUBDIRS
:= $(monotouch_tv_runtime_dirs_parallel
)
389 monotouch_tools_SUBDIRS
:=
390 monotouch_tools_PARALLEL_SUBDIRS
:= $(monotouch_tools_dirs_parallel
)
392 testing_aot_full_interp_SUBDIRS
:= $(mobile_common_dirs
)
393 testing_aot_full_interp_PARALLEL_SUBDIRS
:= $(testing_aot_full_interp_dirs_parallel
)
394 testing_aot_full_SUBDIRS
:= $(mobile_common_dirs
)
395 testing_aot_full_PARALLEL_SUBDIRS
:= $(testing_aot_full_dirs_parallel
)
396 testing_aot_hybrid_SUBDIRS
:= $(mobile_common_dirs
)
397 testing_aot_hybrid_PARALLEL_SUBDIRS
:= $(testing_aot_hybrid_dirs_parallel
)
399 xammac_SUBDIRS
:= $(mobile_common_dirs
)
400 xammac_PARALLEL_SUBDIRS
:= $(xammac_dirs_parallel
)
401 xammac_net_4_5_SUBDIRS
:= $(mobile_common_dirs
)
402 xammac_net_4_5_PARALLEL_SUBDIRS
:= $(xammac_4_5_dirs_parallel
)
404 binary_reference_assemblies_SUBDIRS
:= reference-assemblies
405 net_4_x_SUBDIRS
:= $(net_4_x_dirs
)
406 net_4_x_PARALLEL_SUBDIRS
:= $(net_4_x_parallel_dirs
)
407 xbuild_12_SUBDIRS
:= $(xbuild_4_0_dirs
)
408 xbuild_14_SUBDIRS
:= $(xbuild_4_0_dirs
) Microsoft.NuGet.Build.Tasks
410 winaot_SUBDIRS
:= $(mobile_common_dirs
)
411 winaot_PARALLEL_SUBDIRS
:= $(winaot_dirs_parallel
)
413 orbis_SUBDIRS
:= $(mobile_common_dirs
)
414 orbis_PARALLEL_SUBDIRS
:= $(orbis_dirs_parallel
)
416 unreal_SUBDIRS
:= $(mobile_common_dirs
)
417 unreal_PARALLEL_SUBDIRS
:= $(unreal_dirs_parallel
)
419 wasm_SUBDIRS
:= $(mobile_common_dirs
)
420 wasm_PARALLEL_SUBDIRS
:= $(wasm_dirs_parallel
)
421 wasm_tools_SUBDIRS
:=
422 wasm_tools_PARALLEL_SUBDIRS
:= $(wasm_tools_dirs_parallel
)
424 netcore_SUBDIRS
:= System.Private.CoreLib
425 netcore_PARALLEL_SUBDIRS
:=
427 include ..
/build
/rules.make
429 DIST_SUBDIRS
= $(testing_aot_full_dirs_parallel
) $(testing_aot_hybrid_dirs_parallel
) $(monotouch_dirs_parallel
) $(monotouch_tools_dirs_parallel
) \
430 $(monodroid_dirs_parallel
) $(monodroid_tools_dirs_parallel
) $(xammac_dirs_parallel
) $(net_4_x_dirs
) $(net_4_x_parallel_dirs
) \
431 $(xammac_4_5_dirs_parallel
) $(unreal_dirs_parallel
) $(wasm_dirs_parallel
) $(wasm_tools_dirs_parallel
) $(xbuild_14_SUBDIRS
) \
432 $(testing_aot_full_interp_dirs_parallel
) $(netcore_SUBDIRS
) dlr aot-compiler reference-assemblies Facades
434 # No new makefiles for: System.Messaging, System.Web.Mobile,
435 # System.ServiceProcess
450 doc
/NUnitGuidelines \
451 doc
/TemplateTest.cs \
452 notes
/BitVecto32.txt \
453 MicrosoftAjaxLibrary
/License.htm \
454 test-helpers
/AdminHelper.cs \
455 test-helpers
/Configuration.Http.cs \
456 test-helpers
/NetworkHelpers.cs \
457 test-helpers
/NunitHelpers.cs \
458 test-helpers
/PlatformDetection.cs \
459 test-helpers
/RemoteExecutorTestBase.Mobile.cs \
460 test-helpers
/RemoteExecutorTestBase.Mono.cs \
461 test-helpers
/SocketResponder.cs \
462 test-helpers
/TestResourceHelper.cs \
463 test-helpers
/PathHelpers.cs \
464 $(foreach HOST_PLATFORM
,macos linux win32 unix
,lib
/$(monolite_dir
)/mcs.exe
$(monolite_files
))
466 .PHONY
: all-local
$(STD_TARGETS
:=-local
)
467 all-local
$(STD_TARGETS
:=-local
):
472 monolite_dir
= monolite-
$(HOST_PLATFORM
)/$(MONO_CORLIB_VERSION
)
474 # Files needed to bootstrap C# compiler and cil-stringreplacer
475 build_files
:= mscorlib.dll System.dll System.Xml.dll Mono.Security.dll System.Core.dll System.Security.dll System.Configuration.dll \
476 System.Numerics.dll System.Xml.Linq.dll System.IO.Compression.dll \
477 Facades
/System.Collections.Concurrent.dll Facades
/System.Linq.dll Facades
/System.Runtime.dll Facades
/System.Collections.dll \
478 Facades
/System.Reflection.Extensions.dll Facades
/System.Text.Encoding.Extensions.dll Facades
/System.Diagnostics.Debug.dll \
479 Facades
/System.Reflection.Primitives.dll Facades
/System.Text.Encoding.dll Facades
/System.Diagnostics.Tools.dll Facades
/System.Reflection.dll \
480 Facades
/System.Threading.Tasks.Parallel.dll Facades
/System.Dynamic.Runtime.dll Facades
/System.Resources.ResourceManager.dll \
481 Facades
/System.Threading.Tasks.dll Facades
/System.Globalization.dll Facades
/System.Runtime.Extensions.dll Facades
/System.Threading.dll \
482 Facades
/System.IO.dll Facades
/System.Runtime.InteropServices.dll Facades
/System.Xml.ReaderWriter.dll Facades
/System.Linq.Expressions.dll \
483 Facades
/System.Runtime.Numerics.dll Facades
/System.Xml.XDocument.dll Facades
/System.IO.FileSystem.Primitives.dll Facades
/System.IO.FileSystem.dll \
484 Facades
/System.Diagnostics.FileVersionInfo.dll Facades
/System.Security.Cryptography.Primitives.dll Facades
/System.Security.Cryptography.Algorithms.dll \
485 Facades
/System.ValueTuple.dll Facades
/System.Text.Encoding.CodePages.dll Facades
/netstandard.dll \
488 monolite_files
= $(build_files
:%=lib
/$(monolite_dir
)/%)
491 lib
/$(monolite_dir
)/Facades
:
494 $(monolite_files
): | lib
/$(monolite_dir
)
495 $(monolite_files
): | lib
/$(monolite_dir
)/Facades
496 $(monolite_files
): lib
/$(monolite_dir
)/%: lib
/build-
$(HOST_PLATFORM
)/%
499 lib
/$(monolite_dir
)/mcs.exe
:
500 $(MAKE
) -C ..
/mcs PROFILE
=build
501 cp
-p lib
/build-
$(HOST_PLATFORM
)/mcs.exe lib
/$(monolite_dir
)
503 $(build_files
:%=lib
/build-
$(HOST_PLATFORM
)/%):
504 cd
$(topdir
) && $(MAKE
) profile-do--build--all NO_DIR_CHECK
=1 SKIP_AOT
=1
506 dist-monolite
: $(monolite_files
) lib
/$(monolite_dir
)/mcs.exe
508 dist-monolite-all-platforms
:
509 $(MAKE
) dist-monolite HOST_PLATFORM
=macos
510 $(MAKE
) dist-monolite HOST_PLATFORM
=linux
511 $(MAKE
) dist-monolite HOST_PLATFORM
=win32
512 $(MAKE
) dist-monolite HOST_PLATFORM
=unix
514 package-monolite-latest
:
515 MONOLITE
=monolite-
$(HOST_PLATFORM
)-$(MONO_CORLIB_VERSION
)-latest
; \
516 $(MAKE
) dist-monolite monolite_dir
=$$MONOLITE; \
517 tar zcvpf
$$MONOLITE.
tar.gz
--directory
=lib
$$MONOLITE/
519 package-monolite-latest-all-platforms
:
520 $(MAKE
) package-monolite-latest HOST_PLATFORM
=macos
521 $(MAKE
) package-monolite-latest HOST_PLATFORM
=linux
522 $(MAKE
) package-monolite-latest HOST_PLATFORM
=win32
523 $(MAKE
) package-monolite-latest HOST_PLATFORM
=unix
525 monolite_url
= https
://download.mono-project.com
/monolite
/monolite-
$(BUILD_PLATFORM
)-$(MONO_CORLIB_VERSION
)-latest.
tar.gz
528 -rm -fr lib
/monolite-
$(BUILD_PLATFORM
)/$(MONO_CORLIB_VERSION
)
529 -mkdir
-p lib
/monolite-
$(BUILD_PLATFORM
)
530 cd lib
&& { (wget
-O-
$(monolite_url
) || curl
-L
$(monolite_url
)) | gzip
-d |
tar xf
- ; }
531 cd lib
&& mv
-f monolite-
$(BUILD_PLATFORM
)-$(MONO_CORLIB_VERSION
)-latest monolite-
$(BUILD_PLATFORM
)/$(MONO_CORLIB_VERSION
)
533 dist-default
: dist-monolite-all-platforms
535 dist-local
: dist-default
540 $(RM
) -rf
$(topdir
)/class
/lib
/$(PROFILE
)
542 ## Aliases for .dep_dirs-* tracker
543 .PHONY
: Microsoft.Build.Utilities.v4.0 System.ComponentModel.Composition System.Xml
544 Microsoft.Build.Utilities.v4.0
: Microsoft.Build.Utilities
545 System.ComponentModel.Composition
: System.ComponentModel.Composition
.4.5
546 System.Xml
: System.XML