| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 3 |
|
| 4 |
<Import Project="..\dir.traversal.targets" /> |
| 5 |
|
| 6 |
<PropertyGroup Condition="'$(BuildingAnOfficialBuildLeg)' == 'true'"> |
| 7 |
<!-- During an official build, only build identity packages in the AllConfigurations build --> |
| 8 |
<SkipBuildIdentityPackage Condition="'$(BuildAllConfigurations)' != 'true'">true</SkipBuildIdentityPackage> |
| 9 |
|
| 10 |
<!-- During an official build, skip building runtime packages on AllConfigurations build --> |
| 11 |
<SkipBuildRuntimePackage Condition="'$(BuildAllConfigurations)' == 'true'">true</SkipBuildRuntimePackage> |
| 12 |
</PropertyGroup> |
| 13 |
|
| 14 |
<PropertyGroup> |
| 15 |
<TraversalBuildDependsOn> |
| 16 |
FilterProjectsPackageRID; |
| 17 |
$(TraversalBuildDependsOn); |
| 18 |
</TraversalBuildDependsOn> |
| 19 |
</PropertyGroup> |
| 20 |
|
| 21 |
<!-- When @(BuildRID) is set, filter the set of projects down to only those applicable to $(PackageRID) --> |
| 22 |
<Target Name="FilterProjectsPackageRID" Condition="'@(BuildRID)' != ''"> |
| 23 |
<ItemGroup> |
| 24 |
<!-- Build identity package, when SkipBuildIdentityPackage is not set --> |
| 25 |
<_projectsToBuild Include="@(Project)" Condition="'%(Project.PackageTargetRuntime)' == '' AND '$(SkipBuildIdentityPackage)' != 'true'" /> |
| 26 |
<!-- Build packages for current RID, when SkipBuildRuntimePackage is not set --> |
| 27 |
<_projectsToBuild Include="@(Project)" Condition="'%(Project.PackageTargetRuntime)' == '$(PackageRID)' AND '$(SkipBuildRuntimePackage)' != 'true'" /> |
| 28 |
</ItemGroup> |
| 29 |
|
| 30 |
<ItemGroup> |
| 31 |
<Project Remove="@(Project)" /> |
| 32 |
<Project Include="@(_projectsToBuild)" /> |
| 33 |
</ItemGroup> |
| 34 |
|
| 35 |
<PropertyGroup> |
| 36 |
<!-- don't use BuildConfiguration filtering --> |
| 37 |
<FilterProjectsByBuildConfiguration>false</FilterProjectsByBuildConfiguration> |
| 38 |
</PropertyGroup> |
| 39 |
</Target> |
| 40 |
</Project> |