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 \
126 monotouch_tools_dirs_parallel
:= \
130 monotouch_dirs_parallel
:= \
131 $(mobile_common_dirs_parallel
) \
136 monotouch_watch_dirs_parallel
:= $(filter-out Mono.Security Mono.Data.Tds
,$(monotouch_dirs_parallel
))
138 monotouch_runtime_dirs_parallel
:= \
145 monotouch_tv_dirs_parallel
:= $(monotouch_dirs_parallel
)
147 monotouch_tv_runtime_dirs_parallel
:= $(monotouch_runtime_dirs_parallel
)
149 monotouch_watch_runtime_dirs_parallel
:= \
155 monotouch_tv_runtime_dirs
:= \
157 $(monotouch_watch_runtime_dirs_parallel
)
159 winaot_dirs_parallel
:= \
160 $(mobile_common_dirs_parallel
) \
163 unreal_dirs_parallel
:= \
164 $(mobile_common_dirs_parallel
)
166 wasm_dirs_parallel
:= \
167 $(mobile_common_dirs_parallel
)
169 wasm_tools_dirs_parallel
:= \
172 orbis_dirs_parallel
:= \
173 $(filter-out Microsoft.CSharp Mono.Data.Sqlite
,$(mobile_common_dirs_parallel
))
175 xammac_4_5_dirs_parallel
:= \
182 System.Configuration \
184 System.ServiceModel.Internals \
187 System.Numerics.Vectors \
189 System.Transactions \
190 System.EnterpriseServices \
192 System.Runtime.Serialization \
195 System.Runtime.Serialization.Formatters.Soap \
196 System.ComponentModel.DataAnnotations \
197 System.IdentityModel \
198 System.IdentityModel.Selectors \
200 System.Configuration.Install \
202 System.Web.Services \
203 System.ServiceModel \
204 System.ServiceModel.Web \
206 System.Data.Services.Client \
207 System.IO.Compression \
208 System.IO.Compression.FileSystem \
209 System.ComponentModel.Composition
.4.5 \
212 System.Xml.Serialization \
215 Mono.CompilerServices.SymbolWriter \
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
230 net_4_x_parallel_dirs
= \
234 System.Configuration \
236 System.IO.Compression \
237 System.IO.Compression.FileSystem \
238 System.Transactions \
239 System.EnterpriseServices \
241 System.Numerics.Vectors \
243 System.ComponentModel.DataAnnotations \
246 System.Runtime.Serialization.Formatters.Soap \
247 System.Windows.Forms \
249 System.Web.ApplicationServices \
250 Novell.Directory.Ldap \
251 System.DirectoryServices \
253 System.Web.Services \
255 System.Runtime.Remoting \
256 System.Configuration.Install \
258 System.Data.OracleClient \
259 Commons.Xml.Relaxng \
262 System.ServiceProcess \
263 System.Drawing.Design \
264 ICSharpCode.SharpZipLib \
266 System.ServiceModel.Internals \
268 System.Runtime.Serialization \
271 System.Web.Abstractions \
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 \
283 System.ServiceModel.Activation \
284 System.ServiceModel.Routing \
285 System.ServiceModel.Discovery \
286 System.Runtime.Caching \
287 Microsoft.Web.Infrastructure \
288 System.ServiceModel.Web \
290 System.Net.Http.WebRequest \
292 System.Web.WebPages.Deployment \
293 System.Web.WebPages \
294 System.Web.WebPages.Razor \
296 System.Net.Http.Formatting \
298 System.Web.Http.SelfHost \
299 System.Web.Http.WebHost \
305 Mono.CompilerServices.SymbolWriter \
306 Mono.Btls.Interface \
320 Mono.Security.Win32 \
321 Mono.Messaging.RabbitMQ \
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 \
339 System.Data.DataSetExtensions \
341 System.Json.Microsoft \
342 System.Threading.Tasks.Dataflow \
343 System.ComponentModel.Composition
.4.5 \
345 System.Xml.Serialization \
346 System.DirectoryServices.Protocols \
353 System.Web.RegularExpressions \
354 System.Workflow.Activities \
355 System.Workflow.ComponentModel \
356 System.Workflow.Runtime \
357 System.Reflection.Context \
360 System.Runtime.CompilerServices.Unsafe \
366 Microsoft.Build.Framework \
367 Microsoft.Build.Utilities \
368 Microsoft.Build.Engine \
370 Microsoft.Build.Tasks \
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
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
):
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 \
489 monolite_files
= $(build_files
:%=lib
/$(monolite_dir
)/%)
492 lib
/$(monolite_dir
)/Facades
:
495 $(monolite_files
): | lib
/$(monolite_dir
)
496 $(monolite_files
): | lib
/$(monolite_dir
)/Facades
497 $(monolite_files
): lib
/$(monolite_dir
)/%: lib
/build-
$(HOST_PLATFORM
)/%
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
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
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