blob: b94e14a429fe788dc46c1568f79b7c4e031ae283 (
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 ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props))" />
<Import Project="packaging.props" />
<ItemGroup Condition="'$(__SkipCoreLibBuild)'==''">
<Project Include="Microsoft.NETCore.Runtime.CoreCLR\Microsoft.NETCore.Runtime.CoreCLR.builds" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsWindows)'=='true'">
<Project Include="Microsoft.TargetingPack.Private.CoreCLR\Microsoft.TargetingPack.Private.CoreCLR.pkgproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetsWindows)'=='true' OR '$(DotNetBuildFromSource)'=='true'">
<Project Include="Microsoft.NET.Sdk.IL\Microsoft.NET.Sdk.IL.pkgproj" />
</ItemGroup>
<ItemGroup Condition="'$(__SkipNativeBuild)'==''">
<Project Include="Microsoft.NETCore.Jit\Microsoft.NETCore.Jit.builds" />
<Project Include="Microsoft.NETCore.TestHost\Microsoft.NETCore.TestHost.builds" />
<Project Include="Microsoft.NETCore.Native\Microsoft.NETCore.Native.builds" />
</ItemGroup>
<ItemGroup>
<Project Include="Microsoft.NETCore.ILAsm\Microsoft.NETCore.ILAsm.builds" />
<Project Include="Microsoft.NETCore.ILDAsm\Microsoft.NETCore.ILDAsm.builds" />
</ItemGroup>
<!-- Generate a version.txt file we include in our packages
The InitializeSourceControlInformationFromSourceControlManager is part of Microsoft.Build.Tasks.Git
and is responsible for setting SourceRevisionId -->
<Target Name="GenerateVersionInfoFileForPackages"
BeforeTargets="Build"
DependsOnTargets="InitializeSourceControlInformationFromSourceControlManager">
<Error Condition="'$(SourceRevisionId)' == ''" Text="SourceRevisionId is not set, which means the SourceLink targets are not included in the build. Those are needed to produce a correct sha for our build outputs." />
<MakeDir Directories="$([System.IO.Path]::GetDirectoryName($(VersionTxtFile)))" />
<WriteLinesToFile
File="$(VersionTxtFile)"
Lines="$(SourceRevisionId)"
Overwrite="true" />
</Target>
<!-- [ARCADE REMOVE] Make sure version props file for native binaries (non-Arcade versioning) exists
This is through building a separate project because the packaging projects use Arcade versioning
and just need the build number for laying out certain native binaries. These projects do not want
the actual BuildTools target to run / set various properties, so they just include the generated
build version props file (which only sets BuildNumberMajor/BuildNumberMinor) as needed. -->
<Target Name="CreateVersionPropsForNativeBinaries"
BeforeTargets="Build">
<MSBuild Targets="Build" Projects="$(CoreclrDir)\src\createVersionFile.proj"/>
</Target>
<Import Project="$(MSBuildThisFileDirectory)..\..\dir.traversal.targets" />
</Project>
|