Xamarin Public Jenkins (auto-signing) 19234507ba Imported Upstream version 5.14.0.78
Former-commit-id: 3494343bcc9ddb42b36b82dd9ae7b69e85e0229f
2018-05-10 08:37:03 +00:00

490 lines
13 KiB
Makefile

thisdir = class
pcl_facade_dirs := Facades
-include ../build/config.make
ifdef MCS_MODE
MCS_MODE_dirs := Mono.Cecil.Mdb
endif
# The minimal set of csc dependencies
basic_SUBDIRS := \
corlib \
Mono.Security \
System \
System.XML \
System.Security \
System.Core \
System.ComponentModel.Composition.4.5 \
System.Numerics \
System.Xml.Linq \
Mono.Cecil \
$(MCS_MODE_dirs) \
Mono.CompilerServices.SymbolWriter \
PEAPI \
../tools/cil-stringreplacer \
../ilasm \
corlib/il
build_SUBDIRS := \
corlib \
Mono.Security \
System \
System.XML \
System.Security \
Mono.Posix \
System.Core \
System.Configuration \
System.ComponentModel.Composition.4.5 \
System.Numerics \
System.Xml.Linq \
System.IO.Compression \
System.Drawing \
Mono.Cecil \
$(MCS_MODE_dirs) \
Mono.CompilerServices.SymbolWriter \
PEAPI \
../tools/cil-stringreplacer
ifdef MCS_MODE
basic_PARALLEL_SUBDIRS := ../mcs $(pcl_facade_dirs)
build_PARALLEL_SUBDIRS := ../mcs $(pcl_facade_dirs)
else
basic_PARALLEL_SUBDIRS := $(pcl_facade_dirs)
build_PARALLEL_SUBDIRS := $(pcl_facade_dirs)
endif
mobile_common_dirs := \
corlib \
Mono.Security \
System \
System.Core \
System.XML \
System.Security \
I18N \
System.ServiceModel.Internals \
System.Runtime.Serialization \
System.Xml.Linq \
System.IdentityModel \
System.ServiceModel \
System.ServiceModel.Web \
System.Json \
System.Web.Services \
Mono.Data.Tds \
System.Transactions \
System.Numerics \
System.Numerics.Vectors \
System.Data \
Mono.Data.Sqlite \
System.Data.Services.Client \
System.IO.Compression \
System.IO.Compression.FileSystem \
System.ComponentModel.DataAnnotations \
System.ComponentModel.Composition.4.5 \
System.Net \
System.Net.Http \
System.Windows \
System.Xml.Serialization \
Mono.CSharp \
Microsoft.CSharp \
System.Reflection.Context \
System.Net.Http.WinHttpHandler \
System.Runtime.CompilerServices.Unsafe
testing_aot_full_dirs := \
$(mobile_common_dirs) \
Mono.Simd \
$(pcl_facade_dirs)
testing_aot_hybrid_dirs := \
$(mobile_common_dirs) \
Mono.Simd \
$(pcl_facade_dirs)
xammac_dirs := \
$(mobile_common_dirs) \
Mono.CompilerServices.SymbolWriter \
$(pcl_facade_dirs)
monodroid_dirs := \
$(mobile_common_dirs) \
Mono.CompilerServices.SymbolWriter \
Mono.Btls.Interface \
Mono.Posix \
$(pcl_facade_dirs)
monodroid_tools_dirs := \
Mono.Cecil \
ICSharpCode.SharpZipLib \
monodoc
monotouch_dirs := \
$(mobile_common_dirs) \
Mono.Simd \
$(pcl_facade_dirs)
monotouch_watch_dirs := $(filter-out Mono.Security Mono.Data.Tds,$(monotouch_dirs))
monotouch_tv_dirs := $(monotouch_dirs)
monotouch_runtime_dirs := \
corlib \
Mono.Security \
System \
System.Core \
System.XML \
Mono.CSharp
monotouch_watch_runtime_dirs := $(filter-out Mono.Security Mono.Data.Tds,$(monotouch_runtime_dirs))
monotouch_tv_runtime_dirs := $(monotouch_runtime_dirs)
winaot_dirs := \
$(mobile_common_dirs) \
System.Drawing \
$(pcl_facade_dirs)
unreal_dirs := \
$(mobile_common_dirs) \
System.Drawing \
$(pcl_facade_dirs)
wasm_dirs := \
$(mobile_common_dirs) \
System.Drawing \
$(pcl_facade_dirs)
xammac_4_5_dirs := \
corlib \
Mono.Security \
System \
System.XML \
System.Security \
Mono.Posix \
System.Core \
System.Configuration \
I18N \
System.ServiceModel.Internals \
SMDiagnostics \
System.Numerics \
System.Numerics.Vectors \
Mono.Data.Tds \
System.Transactions \
System.EnterpriseServices \
System.Data \
System.Runtime.Serialization \
System.Xml.Linq \
Mono.Data.Sqlite \
System.Runtime.Serialization.Formatters.Soap \
System.ComponentModel.DataAnnotations \
System.IdentityModel \
System.IdentityModel.Selectors \
Mono.Messaging \
System.Configuration.Install \
System.Messaging \
System.Web.Services \
System.ServiceModel \
System.ServiceModel.Web \
System.Json \
System.Data.Services.Client \
System.IO.Compression \
System.IO.Compression.FileSystem \
System.ComponentModel.Composition.4.5 \
System.Net \
System.Windows \
System.Xml.Serialization \
Mono.CSharp \
Microsoft.CSharp \
Mono.CompilerServices.SymbolWriter \
System.Data.Linq \
System.Net.Http \
System.Net.Http.WebRequest \
System.Reflection.Context \
System.Net.Http.WinHttpHandler \
System.Runtime.CompilerServices.Unsafe \
$(pcl_facade_dirs)
net_4_x_dirs := \
corlib \
Mono.Security \
System \
System.XML \
System.Security \
Mono.CompilerServices.SymbolWriter \
Mono.Posix \
System.Core \
System.Configuration \
System.Drawing \
System.IO.Compression \
System.IO.Compression.FileSystem \
System.Transactions \
System.EnterpriseServices \
Mono.Data.Tds \
System.Numerics \
System.Numerics.Vectors \
System.Data \
System.ComponentModel.DataAnnotations \
Accessibility \
Mono.WebBrowser \
System.Runtime.Serialization.Formatters.Soap \
System.Windows.Forms \
Mono.Data.Sqlite \
System.Web.ApplicationServices \
Novell.Directory.Ldap \
System.DirectoryServices \
System.Design \
System.Web.Services \
System.Web \
System.Runtime.Remoting \
System.Configuration.Install \
System.Management \
System.Data.OracleClient \
Cscompmgd \
Commons.Xml.Relaxng \
Mono.Messaging \
System.Messaging \
System.ServiceProcess \
System.Drawing.Design \
ICSharpCode.SharpZipLib \
IBM.Data.DB2 \
CustomMarshalers \
SystemWebTestShim \
System.ServiceModel.Internals \
SMDiagnostics \
System.Runtime.Serialization \
System.Xml.Linq \
System.Data.Linq \
System.Web.Abstractions \
System.Web.Routing \
System.Runtime.DurableInstancing \
System.IdentityModel \
System.IdentityModel.Selectors \
System.ServiceModel \
System.Web.Extensions \
System.Web.Extensions.Design \
System.Web.DynamicData \
Mono.CSharp \
System.Net \
System.Json \
Microsoft.CSharp \
System.Xaml \
WindowsBase \
System.ServiceModel.Activation \
System.ServiceModel.Routing \
System.ServiceModel.Discovery \
System.Runtime.Caching \
Microsoft.Web.Infrastructure \
System.ServiceModel.Web \
System.Net.Http \
System.Net.Http.WebRequest \
System.Web.Razor \
System.Web.WebPages.Deployment \
System.Web.WebPages \
System.Web.WebPages.Razor \
System.Web.Mvc3 \
System.Net.Http.Formatting \
System.Web.Http \
System.Web.Http.SelfHost \
System.Web.Http.WebHost
# These are the subdirs which depends on libs in net_4_x_dirs
# or have proper dependencies between each other
net_4_x_parallel_dirs := \
PEAPI \
I18N \
Mono.Btls.Interface \
Mono.Http \
Mono.Cairo \
Mono.Cecil \
Mono.Cecil.Mdb \
Mono.Debugger.Soft \
Mono.C5 \
Mono.Management \
Mono.Options \
Mono.Simd \
Mono.Tasklets \
Mono.CodeContracts \
Mono.Parallel \
Mono.Security.Win32 \
Mono.Messaging.RabbitMQ \
System.Dynamic \
System.Windows.Forms.DataVisualization \
System.Reactive.Interfaces \
System.Reactive.Core \
System.Reactive.Linq \
System.Reactive.PlatformServices \
System.Reactive.Providers \
System.Reactive.Runtime.Remoting \
System.Reactive.Windows.Forms \
System.Reactive.Windows.Threading \
System.Reactive.Observable.Aliases \
System.Reactive.Experimental \
System.Reactive.Debugger \
System.Data.Services.Client \
System.Data.Services \
System.Data.Entity \
System.Data.DataSetExtensions \
System.Json.Microsoft \
System.Threading.Tasks.Dataflow \
System.ComponentModel.Composition.4.5 \
System.Windows \
System.Xml.Serialization \
System.DirectoryServices.Protocols \
RabbitMQ.Client \
Microsoft.VisualC \
WebMatrix.Data \
monodoc \
System.Deployment \
System.Web.Mobile \
System.Web.RegularExpressions \
System.Workflow.Activities \
System.Workflow.ComponentModel \
System.Workflow.Runtime \
System.Reflection.Context \
Mono.Profiler.Log \
Mono.Runtime.Tests \
System.Runtime.CompilerServices.Unsafe \
legacy/Mono.Cecil \
$(pcl_facade_dirs)
xbuild_2_0_dirs := \
Microsoft.Build.Framework \
Microsoft.Build.Utilities \
Microsoft.Build.Engine \
Mono.XBuild.Tasks \
Microsoft.Build.Tasks
xbuild_4_0_dirs := \
$(xbuild_2_0_dirs) \
Microsoft.Build
orbis_dirs := \
$(filter-out Microsoft.CSharp Mono.CSharp Mono.Data.Sqlite,$(mobile_common_dirs)) \
System.Drawing \
$(pcl_facade_dirs)
monodroid_SUBDIRS := $(monodroid_dirs)
monodroid_tools_SUBDIRS := $(monodroid_tools_dirs)
monotouch_SUBDIRS := $(monotouch_dirs)
monotouch_watch_SUBDIRS := $(monotouch_watch_dirs)
monotouch_tv_SUBDIRS := $(monotouch_tv_dirs)
monotouch_runtime_SUBDIRS := $(monotouch_runtime_dirs)
monotouch_watch_runtime_SUBDIRS := $(monotouch_watch_runtime_dirs)
monotouch_tv_runtime_SUBDIRS := $(monotouch_tv_runtime_dirs)
testing_aot_full_SUBDIRS := $(testing_aot_full_dirs)
testing_aot_hybrid_SUBDIRS := $(testing_aot_hybrid_dirs)
xammac_SUBDIRS := $(xammac_dirs)
xammac_net_4_5_SUBDIRS := $(xammac_4_5_dirs)
binary_reference_assemblies_SUBDIRS := reference-assemblies
net_4_x_SUBDIRS := $(net_4_x_dirs) $(xbuild_4_0_dirs)
net_4_x_PARALLEL_SUBDIRS := $(net_4_x_parallel_dirs)
xbuild_12_SUBDIRS := $(xbuild_4_0_dirs)
xbuild_14_SUBDIRS := $(xbuild_4_0_dirs) Microsoft.NuGet.Build.Tasks
winaot_SUBDIRS := $(winaot_dirs)
orbis_SUBDIRS := $(orbis_dirs)
unreal_SUBDIRS := $(unreal_dirs)
wasm_SUBDIRS := $(wasm_dirs)
include ../build/rules.make
SUBDIRS = $(testing_aot_full_dirs) $(testing_aot_hybrid_dirs) $(monotouch_dirs) $(monodroid_dirs) $(monodroid_tools_dirs) $(xammac_dirs) $(net_4_x_dirs) $(net_4_x_parallel_dirs) $(xammac_net_4_5_SUBDIRS) $(unreal_dirs)
DIST_ONLY_SUBDIRS = dlr aot-compiler reference-assemblies $(xbuild_4_0_dirs) Microsoft.NuGet.Build.Tasks
# No new makefiles for: System.Messaging, System.Web.Mobile,
# System.ServiceProcess
DISTFILES = \
ecma.pub \
winfx.pub \
winfx3.pub \
mono.pub \
msfinal.pub \
silverlight.pub \
reactive.pub \
mono.snk \
Open.snk \
LICENSE \
README \
doc/API-notes \
doc/NUnitGuidelines \
doc/TemplateTest.cs \
notes/BitVecto32.txt \
MicrosoftAjaxLibrary/License.htm \
test-helpers/NetworkHelpers.cs \
test-helpers/SocketResponder.cs \
$(foreach HOST_PLATFORM,darwin linux win32,lib/$(monolite_dir)/mcs.exe $(monolite_files))
.PHONY: all-local $(STD_TARGETS:=-local)
all-local $(STD_TARGETS:=-local):
@:
all-local-aot:
monolite_dir = monolite-$(HOST_PLATFORM)/$(MONO_CORLIB_VERSION)
# Files needed to bootstrap C# compiler and cil-stringreplacer
build_files := mscorlib.dll System.dll System.Xml.dll Mono.Security.dll System.Core.dll System.Security.dll System.Configuration.dll \
System.Numerics.dll System.Xml.Linq.dll \
Facades/System.Collections.Concurrent.dll Facades/System.Linq.dll Facades/System.Runtime.dll Facades/System.Collections.dll \
Facades/System.Reflection.Extensions.dll Facades/System.Text.Encoding.Extensions.dll Facades/System.Diagnostics.Debug.dll \
Facades/System.Reflection.Primitives.dll Facades/System.Text.Encoding.dll Facades/System.Diagnostics.Tools.dll Facades/System.Reflection.dll \
Facades/System.Threading.Tasks.Parallel.dll Facades/System.Dynamic.Runtime.dll Facades/System.Resources.ResourceManager.dll \
Facades/System.Threading.Tasks.dll Facades/System.Globalization.dll Facades/System.Runtime.Extensions.dll Facades/System.Threading.dll \
Facades/System.IO.dll Facades/System.Runtime.InteropServices.dll Facades/System.Xml.ReaderWriter.dll Facades/System.Linq.Expressions.dll \
Facades/System.Runtime.Numerics.dll Facades/System.Xml.XDocument.dll Facades/System.IO.FileSystem.Primitives.dll Facades/System.IO.FileSystem.dll \
Facades/System.Diagnostics.FileVersionInfo.dll Facades/System.Security.Cryptography.Primitives.dll Facades/System.Security.Cryptography.Algorithms.dll \
Facades/System.ValueTuple.dll Facades/System.Text.Encoding.CodePages.dll \
Mono.Cecil.dll
monolite_files = $(build_files:%=lib/$(monolite_dir)/%)
lib/$(monolite_dir):
lib/$(monolite_dir)/Facades:
$(MKINSTALLDIRS) $@
$(monolite_files): | lib/$(monolite_dir)
$(monolite_files): | lib/$(monolite_dir)/Facades
$(monolite_files): lib/$(monolite_dir)/%: lib/build-$(HOST_PLATFORM)/%
cp -p $< $@
lib/$(monolite_dir)/mcs.exe:
$(MAKE) -C ../mcs PROFILE=build
cp -p lib/build-$(HOST_PLATFORM)/mcs.exe lib/$(monolite_dir)
$(build_files:%=lib/build-$(HOST_PLATFORM)/%):
cd $(topdir) && $(MAKE) profile-do--build--all NO_DIR_CHECK=1 SKIP_AOT=1
dist-monolite: $(monolite_files) lib/$(monolite_dir)/mcs.exe
dist-monolite-all-platforms:
$(MAKE) dist-monolite HOST_PLATFORM=darwin
$(MAKE) dist-monolite HOST_PLATFORM=linux
$(MAKE) dist-monolite HOST_PLATFORM=win32
package-monolite-latest:
MONOLITE=monolite-$(HOST_PLATFORM)-$(MONO_CORLIB_VERSION)-latest; \
$(MAKE) dist-monolite monolite_dir=$$MONOLITE; \
tar zcvpf $$MONOLITE.tar.gz --directory=lib $$MONOLITE/
package-monolite-latest-all-platforms:
$(MAKE) package-monolite-latest HOST_PLATFORM=darwin
$(MAKE) package-monolite-latest HOST_PLATFORM=linux
$(MAKE) package-monolite-latest HOST_PLATFORM=win32
monolite_url = https://download.mono-project.com/monolite/monolite-$(BUILD_PLATFORM)-$(MONO_CORLIB_VERSION)-latest.tar.gz
get-monolite-latest:
-rm -fr lib/monolite-$(BUILD_PLATFORM)/$(MONO_CORLIB_VERSION)
-mkdir -p lib/monolite-$(BUILD_PLATFORM)
cd lib && { (wget -O- $(monolite_url) || curl -L $(monolite_url)) | gzip -d | tar xf - ; }
cd lib && mv -f monolite-$(BUILD_PLATFORM)-$(MONO_CORLIB_VERSION)-latest monolite-$(BUILD_PLATFORM)/$(MONO_CORLIB_VERSION)
dist-default: dist-monolite-all-platforms
dist-local: dist-default
csproj-local:
do-clean:
$(RM) -rf $(topdir)/class/lib/$(PROFILE)