From 92eb1e00dda1244d6621f334d491cfdd98a26008 Mon Sep 17 00:00:00 2001 From: Sven Boemer Date: Fri, 9 Jun 2017 09:44:36 -0700 Subject: Set up task package to build for multiple tfms (#129) --- linker/ILLink.props | 14 ++++++++++++++ linker/Mono.Linker.csproj | 22 +++++++++++----------- linker/Mono.Linker/AssemblyResolver.cs | 2 +- linker/Mono.Linker/DirectoryAssemblyResolver.cs | 2 +- linker/Mono.Linker/Driver.cs | 4 ++-- linker/NetCore.props | 13 ------------- 6 files changed, 29 insertions(+), 28 deletions(-) create mode 100644 linker/ILLink.props delete mode 100644 linker/NetCore.props (limited to 'linker') diff --git a/linker/ILLink.props b/linker/ILLink.props new file mode 100644 index 000000000..db2a8a8f4 --- /dev/null +++ b/linker/ILLink.props @@ -0,0 +1,14 @@ + + + + netcoreapp2.0;net46 + netcoreapp2.0 + 2.0.0-beta-001509-00 + $(DefineConstants);FEATURE_ILLINK + false + false + illink + Library + + + diff --git a/linker/Mono.Linker.csproj b/linker/Mono.Linker.csproj index 8da37d7d2..ff826f3a3 100644 --- a/linker/Mono.Linker.csproj +++ b/linker/Mono.Linker.csproj @@ -10,11 +10,11 @@ targets. --> - true - false + true + false - + Debug AnyCPU @@ -24,8 +24,8 @@ Exe Properties Mono.Linker - monolinker - illink + monolinker + illink v4.6.2 @@ -45,7 +45,7 @@ prompt 4 - + - + @@ -98,14 +98,14 @@ - Configuration=netstandard_Debug - Configuration=netstandard_Release + Configuration=netstandard_Debug + Configuration=netstandard_Release {D68133BD-1E63-496E-9EDE-4FBDBF77B486} Mono.Cecil - Configuration=netstandard_Debug - Configuration=netstandard_Release + Configuration=netstandard_Debug + Configuration=netstandard_Release {63E6915C-7EA4-4D76-AB28-0D7191EEA626} Mono.Cecil.Pdb diff --git a/linker/Mono.Linker/AssemblyResolver.cs b/linker/Mono.Linker/AssemblyResolver.cs index c8351f76f..b10bb5374 100644 --- a/linker/Mono.Linker/AssemblyResolver.cs +++ b/linker/Mono.Linker/AssemblyResolver.cs @@ -33,7 +33,7 @@ using Mono.Cecil; namespace Mono.Linker { -#if NET_CORE +#if FEATURE_ILLINK public class AssemblyResolver : DirectoryAssemblyResolver { #else public class AssemblyResolver : BaseAssemblyResolver { diff --git a/linker/Mono.Linker/DirectoryAssemblyResolver.cs b/linker/Mono.Linker/DirectoryAssemblyResolver.cs index 8ff0b50c2..416dab71b 100644 --- a/linker/Mono.Linker/DirectoryAssemblyResolver.cs +++ b/linker/Mono.Linker/DirectoryAssemblyResolver.cs @@ -5,7 +5,7 @@ using System.IO; using Mono.Collections.Generic; using Mono.Cecil; -#if NET_CORE +#if FEATURE_ILLINK namespace Mono.Linker { public abstract class DirectoryAssemblyResolver : IAssemblyResolver { diff --git a/linker/Mono.Linker/Driver.cs b/linker/Mono.Linker/Driver.cs index e71436abb..16616b437 100644 --- a/linker/Mono.Linker/Driver.cs +++ b/linker/Mono.Linker/Driver.cs @@ -37,7 +37,7 @@ namespace Mono.Linker { public class Driver { -#if NET_CORE +#if FEATURE_ILLINK static readonly string _linker = "IL Linker"; #else static readonly string _linker = "Mono CIL Linker"; @@ -284,7 +284,7 @@ namespace Mono.Linker { Console.WriteLine (_linker); if (msg != null) Console.WriteLine ("Error: " + msg); -#if NET_CORE +#if FEATURE_ILLINK Console.WriteLine ("illink [options] -x|-a|-i file"); #else Console.WriteLine ("monolinker [options] -x|-a|-i file"); diff --git a/linker/NetCore.props b/linker/NetCore.props deleted file mode 100644 index 3a8c30dba..000000000 --- a/linker/NetCore.props +++ /dev/null @@ -1,13 +0,0 @@ - - - - netcoreapp2.0 - 2.0.0-beta-001509-00 - $(DefineConstants);NET_CORE - false - false - illink - exe - - - -- cgit v1.2.3