blob: d6db018db9198a083d38fdf356c8d7de6feb6402 (
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
|
<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;illink_Debug;illink_Release</Configurations>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.StartsWith('illink'))">
<AssemblyName>illink</AssemblyName>
<Description>IL Linker</Description>
<DefineConstants>$(DefineConstants);FEATURE_ILLINK</DefineConstants>
<!-- net46 build is disabled until cecil uses SDK-style projects. -->
<TargetFrameworks>netcoreapp2.0</TargetFrameworks>
<TargetFrameworks Condition="'$(MSBuildRuntimeType)' == 'Core' And '$(OS)' != 'Windows_NT'">netcoreapp2.0</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition="!$(Configuration.StartsWith('illink'))">
<AssemblyName>monolinker</AssemblyName>
<AssemblyTitle>Mono.Linker</AssemblyTitle>
<Description>Mono CIL Linker</Description>
<TargetFrameworks>net471</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.EndsWith('Debug'))">
<DebugSymbols Condition="'$(DebugSymbols)' == ''">true</DebugSymbols>
<Optimize Condition="'$(Optimize)' == ''">false</Optimize>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.EndsWith('Release'))">
<Optimize Condition="'$(Optimize)' == ''">true</Optimize>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\external\cecil\Mono.Cecil.csproj" />
<ProjectReference Include="..\..\external\cecil\symbols\mdb\Mono.Cecil.Mdb.csproj" />
<ProjectReference Include="..\..\external\cecil\symbols\pdb\Mono.Cecil.Pdb.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>
|