[monodroid] Exclude System.IO.Tests.File_Copy_str_str CoreFX testsuite
[mono-project.git] / mcs / class / Makefile
blob0308e75659d3566e1eaf4998fd7e0df99dd55778
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
125 monotouch_tools_dirs_parallel := \
126 Mono.Cecil \
127 Mono.Cecil.Mdb
129 monotouch_dirs_parallel := \
130 $(mobile_common_dirs_parallel) \
131 Mono.Simd \
132 Mono.CSharp \
133 Mono.Runtime.Tests
135 monotouch_watch_dirs_parallel := $(filter-out Mono.Security Mono.Data.Tds,$(monotouch_dirs_parallel))
137 monotouch_runtime_dirs_parallel := \
138 Mono.Security \
139 System \
140 System.Core \
141 System.XML \
142 Mono.CSharp
144 monotouch_tv_dirs_parallel := $(monotouch_dirs_parallel)
146 monotouch_tv_runtime_dirs_parallel := $(monotouch_runtime_dirs_parallel)
148 monotouch_watch_runtime_dirs_parallel := \
149 System \
150 System.Core \
151 System.XML \
152 Mono.CSharp
154 monotouch_tv_runtime_dirs := \
155 Mono.Security \
156 $(monotouch_watch_runtime_dirs_parallel)
158 winaot_dirs_parallel := \
159 $(mobile_common_dirs_parallel) \
160 Mono.Simd
162 unreal_dirs_parallel := \
163 $(mobile_common_dirs_parallel)
165 wasm_dirs_parallel := \
166 $(mobile_common_dirs_parallel)
168 wasm_tools_dirs_parallel := \
169 Mono.Cecil
171 orbis_dirs_parallel := \
172 $(filter-out Microsoft.CSharp Mono.Data.Sqlite,$(mobile_common_dirs_parallel))
174 xammac_4_5_dirs_parallel := \
175 Mono.Security \
176 System \
177 System.XML \
178 System.Security \
179 Mono.Posix \
180 System.Core \
181 System.Configuration \
182 I18N \
183 System.ServiceModel.Internals \
184 SMDiagnostics \
185 System.Numerics \
186 System.Numerics.Vectors \
187 Mono.Data.Tds \
188 System.Transactions \
189 System.EnterpriseServices \
190 System.Data \
191 System.Runtime.Serialization \
192 System.Xml.Linq \
193 Mono.Data.Sqlite \
194 System.Runtime.Serialization.Formatters.Soap \
195 System.ComponentModel.DataAnnotations \
196 System.IdentityModel \
197 System.IdentityModel.Selectors \
198 Mono.Messaging \
199 System.Configuration.Install \
200 System.Messaging \
201 System.Web.Services \
202 System.ServiceModel \
203 System.ServiceModel.Web \
204 System.Json \
205 System.Data.Services.Client \
206 System.IO.Compression \
207 System.IO.Compression.FileSystem \
208 System.ComponentModel.Composition.4.5 \
209 System.Net \
210 System.Windows \
211 System.Xml.Serialization \
212 Mono.CSharp \
213 Microsoft.CSharp \
214 Mono.CompilerServices.SymbolWriter \
215 System.Data.Linq \
216 System.Net.Http \
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
223 net_4_x_dirs := \
224 corlib \
225 Mono.Security \
226 System \
227 System.XML
229 net_4_x_parallel_dirs = \
230 System.Security \
231 Mono.Posix \
232 System.Core \
233 System.Configuration \
234 System.Drawing \
235 System.IO.Compression \
236 System.IO.Compression.FileSystem \
237 System.Transactions \
238 System.EnterpriseServices \
239 System.Numerics \
240 System.Numerics.Vectors \
241 System.Data \
242 System.ComponentModel.DataAnnotations \
243 Accessibility \
244 Mono.WebBrowser \
245 System.Runtime.Serialization.Formatters.Soap \
246 System.Windows.Forms \
247 Mono.Data.Sqlite \
248 System.Web.ApplicationServices \
249 Novell.Directory.Ldap \
250 System.DirectoryServices \
251 System.Design \
252 System.Web.Services \
253 System.Web \
254 System.Runtime.Remoting \
255 System.Configuration.Install \
256 System.Management \
257 System.Data.OracleClient \
258 Commons.Xml.Relaxng \
259 Mono.Messaging \
260 System.Messaging \
261 System.ServiceProcess \
262 System.Drawing.Design \
263 ICSharpCode.SharpZipLib \
264 Microsoft.CSharp \
265 System.ServiceModel.Internals \
266 SMDiagnostics \
267 System.Runtime.Serialization \
268 System.Xml.Linq \
269 System.Data.Linq \
270 System.Web.Abstractions \
271 System.Web.Routing \
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 \
279 System.Net \
280 System.Xaml \
281 WindowsBase \
282 System.ServiceModel.Activation \
283 System.ServiceModel.Routing \
284 System.ServiceModel.Discovery \
285 System.Runtime.Caching \
286 Microsoft.Web.Infrastructure \
287 System.ServiceModel.Web \
288 System.Net.Http \
289 System.Net.Http.WebRequest \
290 System.Web.Razor \
291 System.Web.WebPages.Deployment \
292 System.Web.WebPages \
293 System.Web.WebPages.Razor \
294 System.Web.Mvc3 \
295 System.Net.Http.Formatting \
296 System.Web.Http \
297 System.Web.Http.SelfHost \
298 System.Web.Http.WebHost \
299 CustomMarshalers \
300 IBM.Data.DB2 \
301 PEAPI \
302 I18N \
303 Cscompmgd \
304 Mono.CompilerServices.SymbolWriter \
305 Mono.Btls.Interface \
306 Mono.Http \
307 Mono.Cairo \
308 Mono.Cecil \
309 Mono.Cecil.Mdb \
310 Mono.CSharp \
311 Mono.Debugger.Soft \
312 Mono.C5 \
313 Mono.Management \
314 Mono.Options \
315 Mono.Simd \
316 Mono.Tasklets \
317 Mono.CodeContracts \
318 Mono.Parallel \
319 Mono.Security.Win32 \
320 Mono.Messaging.RabbitMQ \
321 Mono.Data.Tds \
322 System.Dynamic \
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 \
337 System.Data.Entity \
338 System.Data.DataSetExtensions \
339 System.Json \
340 System.Json.Microsoft \
341 System.Threading.Tasks.Dataflow \
342 System.ComponentModel.Composition.4.5 \
343 System.Windows \
344 System.Xml.Serialization \
345 System.DirectoryServices.Protocols \
346 RabbitMQ.Client \
347 Microsoft.VisualC \
348 WebMatrix.Data \
349 monodoc \
350 System.Deployment \
351 System.Web.Mobile \
352 System.Web.RegularExpressions \
353 System.Workflow.Activities \
354 System.Workflow.ComponentModel \
355 System.Workflow.Runtime \
356 System.Reflection.Context \
357 Mono.Profiler.Log \
358 Mono.Runtime.Tests \
359 System.Runtime.CompilerServices.Unsafe \
360 legacy/Mono.Cecil \
361 SystemWebTestShim \
362 $(xbuild_4_0_dirs)
364 xbuild_4_0_dirs := \
365 Microsoft.Build.Framework \
366 Microsoft.Build.Utilities \
367 Microsoft.Build.Engine \
368 Mono.XBuild.Tasks \
369 Microsoft.Build.Tasks \
370 Microsoft.Build
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
437 DISTFILES = \
438 ecma.pub \
439 winfx.pub \
440 winfx3.pub \
441 mono.pub \
442 msfinal.pub \
443 silverlight.pub \
444 reactive.pub \
445 mono.snk \
446 Open.snk \
447 LICENSE \
448 README \
449 doc/API-notes \
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):
470 all-local-aot:
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 \
486 Mono.Cecil.dll
488 monolite_files = $(build_files:%=lib/$(monolite_dir)/%)
490 lib/$(monolite_dir):
491 lib/$(monolite_dir)/Facades:
492 $(MKINSTALLDIRS) $@
494 $(monolite_files): | lib/$(monolite_dir)
495 $(monolite_files): | lib/$(monolite_dir)/Facades
496 $(monolite_files): lib/$(monolite_dir)/%: lib/build-$(HOST_PLATFORM)/%
497 cp -p $< $@
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
527 get-monolite-latest:
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
537 csproj-local:
539 do-clean:
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