Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Mono.Linker.csproj « linker « src - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 471e6d0b39845c3caf90ccf1b75ff7441d9bebe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <ServerGarbageCollection>true</ServerGarbageCollection>
  </PropertyGroup>

  <PropertyGroup Condition="'$(MonoBuild)' == ''">
    <TargetFramework>net5.0</TargetFramework>
    <DefineConstants>$(DefineConstants);FEATURE_ILLINK</DefineConstants>
    <IsPackable>true</IsPackable>
    <!-- Nuget issues a warning about missing <reference> items in the generated nuspec,
         used for packages.config which we do not support. -->
    <NoWarn>$(NoWarn);NU5131</NoWarn>
  </PropertyGroup>

  <PropertyGroup Condition="'$(MonoBuild)' != ''">
    <AssemblyName>monolinker</AssemblyName>
    <AssemblyTitle>Mono.Linker</AssemblyTitle>
    <Description>Mono CIL Linker</Description>
    <Copyright>(C) 2006, Jb Evain</Copyright>
    <TargetFramework>net471</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <Compile Remove="ref\**\*.cs" />
    <Compile Include="..\..\external\corert\**\*.cs" />
  </ItemGroup>

  <ItemGroup Condition="'$(MonoBuild)' == ''">
    <Compile Remove="Linker\I18nAssemblies.cs" />
    <Compile Remove="Linker\XApiReader.cs" />
    <Compile Remove="Linker.Steps\LoadI18nAssemblies.cs" />
    <Compile Remove="Linker.Steps\PreserveCalendarsStep.cs" />
    <Compile Remove="Linker.Steps\RemoveFeaturesStep.cs" />
    <Compile Remove="Linker.Steps\ResolveFromXApiStep.cs" />
    <Compile Remove="System.Diagnostics.CodeAnalysis\*.cs" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Condition="'$(UseCecilPackage)' == 'true'" Include="Mono.Cecil" Version="$(MonoCecilVersion)" />
    <ProjectReference Condition="'$(UseCecilPackage)' != 'true'" Include="..\..\external\cecil\Mono.Cecil.csproj" />
    <ProjectReference Condition="'$(UseCecilPackage)' != 'true'" Include="..\..\external\cecil\symbols\pdb\Mono.Cecil.Pdb.csproj" />
  </ItemGroup>

  <ItemGroup Condition="'$(MonoBuild)' != ''">
    <ProjectReference Condition="'$(UseCecilPackage)' != 'true'" Include="..\..\external\cecil\symbols\mdb\Mono.Cecil.Mdb.csproj" />
    <PackageReference Include="Microsoft.Bcl.HashCode" Version="1.1.0" />
  </ItemGroup>

  <!-- When publishing illink as a dependency of ILLink.Tasks, we want
       to include files needed to run it as an application in the
       publish output. See https://github.com/dotnet/sdk/issues/1675. -->
  <Target Name="AddRuntimeDependenciesToContent" BeforeTargets="GetCopyToOutputDirectoryItems" DependsOnTargets="GenerateBuildDependencyFile;GenerateBuildRuntimeConfigurationFiles" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
    <ItemGroup>
      <ContentWithTargetPath Include="$(ProjectDepsFilePath)" CopyToOutputDirectory="PreserveNewest" TargetPath="$(ProjectDepsFileName)" />
      <ContentWithTargetPath Include="$(ProjectRuntimeConfigFilePath)" CopyToOutputDirectory="PreserveNewest" TargetPath="$(ProjectRuntimeConfigFileName)" />
    </ItemGroup>
  </Target>

</Project>