forked from dotnet/standard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.proj
58 lines (44 loc) · 2.24 KB
/
build.proj
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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.props))\Directory.Build.props" />
<PropertyGroup>
<BuildRestore Condition="'$(BuildRestore)'==''">true</BuildRestore>
<BuildManaged Condition="'$(BuildManaged)'==''">true</BuildManaged>
<BuildTests Condition="'$(BuildTests)'==''">true</BuildTests>
<BuildPackages Condition="'$(BuildPackages)'==''">true</BuildPackages>
<SignPackages Condition="'$(SignPackages)'==''">false</SignPackages>
<BuildDependsOn Condition="'$(BuildRestore)'=='true'">$(BuildDependsOn);Restore</BuildDependsOn>
<BuildDependsOn Condition="'$(BuildManaged)'=='true'">$(BuildDependsOn);BuildManaged</BuildDependsOn>
<BuildDependsOn Condition="'$(BuildTests)'=='true' and '$(DotNetBuildFromSource)'!='true'">$(BuildDependsOn);Test</BuildDependsOn>
<BuildDependsOn Condition="'$(BuildPackages)'=='true'">$(BuildDependsOn);Pack</BuildDependsOn>
<BuildDependsOn Condition="'$(SignPackages)'=='true'">$(BuildDependsOn);SignPackages</BuildDependsOn>
</PropertyGroup>
<Target Name="Restore"/>
<Target Name="BuildManaged">
<ItemGroup>
<_BuildMangedProjects Include="$(SourceDir)src.builds" />
</ItemGroup>
<MSBuild Projects="@(_BuildMangedProjects)" />
</Target>
<Target Name="Test">
<ItemGroup>
<_TestProjects Include="$(SourceDir)apicompat/apicompat.proj" />
</ItemGroup>
<MSBuild Projects="@(_TestProjects)" />
</Target>
<Target Name="Pack">
<ItemGroup>
<_PackProjects Include="$(SourceDir)packages.builds" Condition="'$(BuildPackages)'=='true'" />
</ItemGroup>
<MSBuild Projects="@(_PackProjects)" />
</Target>
<Target Name="Build" DependsOnTargets="$(BuildDependsOn)" />
<Target Name="Clean">
<RemoveDir Directories="$(ArtifactsObjDir)" />
<RemoveDir Directories="$(ArtifactsBinDir)" />
<RemoveDir Directories="$(ArtifactsPackagesDir)" />
</Target>
<Target Name="Rebuild" DependsOnTargets="Clean;Build" />
<!-- Define an empty Execute target for Arcade's build.proj to find -->
<Target Name="Execute" />
</Project>