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: 71cb832a4a1bef31e46c1abf4fb7f8351d50b965 (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
62
63
64
65
66
67
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <RootNamespace>Mono</RootNamespace>
    <Copyright>(C) 2006, Jb Evain</Copyright>
    <Version>0.2.0.0</Version>
    <Configurations>Debug;Release</Configurations>
    <LangVersion>latest</LangVersion>
  </PropertyGroup>

  <PropertyGroup Condition="'$(MonoBuild)' == ''">
    <AssemblyName>illink</AssemblyName>
    <Description>IL Linker</Description>
    <DefineConstants>$(DefineConstants);FEATURE_ILLINK</DefineConstants>
    <TargetFrameworks>netcoreapp3.0;net471</TargetFrameworks>
  </PropertyGroup>

  <PropertyGroup Condition="'$(MonoBuild)' != ''">
    <AssemblyName>monolinker</AssemblyName>
    <AssemblyTitle>Mono.Linker</AssemblyTitle>
    <Description>Mono CIL Linker</Description>
    <TargetFrameworks>net471</TargetFrameworks>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
    <DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
    <DebugSymbols Condition="'$(DebugSymbols)' == ''">true</DebugSymbols>
    <Optimize Condition="'$(Optimize)' == ''">false</Optimize>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)' == 'Release'">
    <Optimize Condition="'$(Optimize)' == ''">true</Optimize>
  </PropertyGroup>

  <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\ResolveFromXApiStep.cs" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\..\external\cecil\Mono.Cecil.csproj" />
    <ProjectReference Include="..\..\external\cecil\symbols\pdb\Mono.Cecil.Pdb.csproj" />
  </ItemGroup>

  <ItemGroup Condition="'$(MonoBuild)' == ''">
    <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="All" Version="1.0.0" />
  </ItemGroup>

  <ItemGroup Condition="'$(MonoBuild)' != ''">
    <ProjectReference Include="..\..\external\cecil\symbols\mdb\Mono.Cecil.Mdb.csproj" />
  </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>