From 03011419a4ff6426c9801651cf60a65f65202269 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Tue, 21 May 2013 18:38:57 +0200 Subject: [PATCH] [xbuild]: Provide a real Microsoft.Portable.CSharp.targets --- mcs/tools/xbuild/Makefile | 9 ++- .../4.0/Microsoft.Portable.CSharp.targets | 3 + .../4.5/Microsoft.Portable.CSharp.targets | 3 + .../xbuild/Microsoft.Portable.CSharp.targets | 60 +++++++++++-------- 4 files changed, 47 insertions(+), 28 deletions(-) create mode 100644 mcs/tools/xbuild/xbuild/4.0/Microsoft.Portable.CSharp.targets create mode 100644 mcs/tools/xbuild/xbuild/4.5/Microsoft.Portable.CSharp.targets diff --git a/mcs/tools/xbuild/Makefile b/mcs/tools/xbuild/Makefile index 8caaeeb0e50..7838fcdc3ed 100644 --- a/mcs/tools/xbuild/Makefile +++ b/mcs/tools/xbuild/Makefile @@ -37,7 +37,7 @@ SILVERLIGHT_DIR = $(mono_libdir)/mono/xbuild/Microsoft/Silverlight PORTABLE_DIR = $(mono_libdir)/mono/xbuild/Microsoft/Portable EXTRAS_DIR = $(mono_libdir)/mono/$(INSTALL_FRAMEWORK_VERSION) install-extras: - $(MKINSTALLDIRS) $(DESTDIR)$(EXTRAS_DIR) $(DESTDIR)$(REDISTLIST_DIR) $(DESTDIR)$(XBUILD_FRAMEWORKS_DIR)/v3.0/RedistList $(DESTDIR)$(XBUILD_FRAMEWORKS_DIR)/v4.0/RedistList $(DESTDIR)$(mono_libdir)/mono/3.5 + $(MKINSTALLDIRS) $(DESTDIR)$(EXTRAS_DIR) $(DESTDIR)$(REDISTLIST_DIR) $(DESTDIR)$(XBUILD_FRAMEWORKS_DIR)/v3.0/RedistList $(DESTDIR)$(XBUILD_FRAMEWORKS_DIR)/v4.0/RedistList $(DESTDIR)$(mono_libdir)/mono/3.5 $(DESTDIR)$(mono_libdir)/mono/4.0 $(INSTALL_DATA) xbuild/xbuild.rsp $(DESTDIR)$(mono_libdir)/mono/$(FRAMEWORK_VERSION) $(INSTALL_DATA) xbuild/$(INSTALL_FRAMEWORK_VERSION)/Microsoft.Common.tasks $(DESTDIR)$(EXTRAS_DIR) $(INSTALL_DATA) xbuild/$(INSTALL_FRAMEWORK_VERSION)/Microsoft.Common.targets $(DESTDIR)$(EXTRAS_DIR) @@ -64,7 +64,10 @@ install-extras: sed -e 's/@SILVERLIGHT_VERSION@/2.0/g' xbuild/Microsoft.Silverlight.Common.targets > $(DESTDIR)$(SILVERLIGHT_DIR)/v2.0/Microsoft.Silverlight.Common.targets sed -e 's/@SILVERLIGHT_VERSION@/3.0/g' xbuild/Microsoft.Silverlight.Common.targets > $(DESTDIR)$(SILVERLIGHT_DIR)/v3.0/Microsoft.Silverlight.Common.targets $(MKINSTALLDIRS) $(DESTDIR)$(PORTABLE_DIR)/v4.0 - $(INSTALL_DATA) xbuild/Microsoft.Portable.CSharp.targets $(DESTDIR)$(PORTABLE_DIR)/v4.0 + $(MKINSTALLDIRS) $(DESTDIR)$(PORTABLE_DIR)/v4.5 + $(INSTALL_DATA) xbuild/4.0/Microsoft.Portable.CSharp.targets $(DESTDIR)$(PORTABLE_DIR)/v4.0 + $(INSTALL_DATA) xbuild/4.5/Microsoft.Portable.CSharp.targets $(DESTDIR)$(PORTABLE_DIR)/v4.5 + $(INSTALL_DATA) xbuild/Microsoft.Portable.CSharp.targets $(DESTDIR)$(mono_libdir)/mono/4.0 EXTRA_DISTFILES = \ xbuild/xbuild.rsp \ @@ -74,6 +77,8 @@ EXTRA_DISTFILES = \ xbuild/2.0/Microsoft.Common.targets \ xbuild/3.5/Microsoft.Common.targets \ xbuild/4.0/Microsoft.Common.targets \ + xbuild/4.0/Microsoft.Portable.CSharp.targets \ + xbuild/4.5/Microsoft.Portable.CSharp.targets \ xbuild/2.0/FrameworkList.xml \ xbuild/3.5/FrameworkList.xml \ xbuild/4.0/FrameworkList.xml \ diff --git a/mcs/tools/xbuild/xbuild/4.0/Microsoft.Portable.CSharp.targets b/mcs/tools/xbuild/xbuild/4.0/Microsoft.Portable.CSharp.targets new file mode 100644 index 00000000000..d80a9f5dfce --- /dev/null +++ b/mcs/tools/xbuild/xbuild/4.0/Microsoft.Portable.CSharp.targets @@ -0,0 +1,3 @@ + + + diff --git a/mcs/tools/xbuild/xbuild/4.5/Microsoft.Portable.CSharp.targets b/mcs/tools/xbuild/xbuild/4.5/Microsoft.Portable.CSharp.targets new file mode 100644 index 00000000000..d80a9f5dfce --- /dev/null +++ b/mcs/tools/xbuild/xbuild/4.5/Microsoft.Portable.CSharp.targets @@ -0,0 +1,3 @@ + + + diff --git a/mcs/tools/xbuild/xbuild/Microsoft.Portable.CSharp.targets b/mcs/tools/xbuild/xbuild/Microsoft.Portable.CSharp.targets index 3a6ca011ea2..72c20ef5c24 100644 --- a/mcs/tools/xbuild/xbuild/Microsoft.Portable.CSharp.targets +++ b/mcs/tools/xbuild/xbuild/Microsoft.Portable.CSharp.targets @@ -1,35 +1,43 @@ - - - + - .NETFramework - v4.0 - - - - - MonoTouch - v1.0 - - - - - MonoAndroid + Any CPU + + Portable + .NETPortable + .NET Portable Subset + + false + true + + true - - - + + - - PortableCompatWarning; - $(BuildDependsOn); - + + $(ResolveReferencesDependsOn); + ImplicitlyExpandTargetFramework; + + + + $(ImplicitlyExpandTargetFrameworkDependsOn); + GetReferenceAssemblyPaths + - - + + + + + + false + ImplicitlyExpandTargetFramework + True + + - + -- 2.25.1