-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d4ad9d
commit e980b37
Showing
6 changed files
with
53 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,7 @@ | ||
<Project> | ||
|
||
<Import Project="$(MSBuildThisFileDirectory)Common.props" /> | ||
<Import Project="$(MSBuildThisFileDirectory)Build\Directory.Build.props" /> | ||
|
||
<Choose> | ||
<!-- Project selection can be overridden on the command line by passing in -projects. --> | ||
<When Condition="'$(ProjectToBuild)' != ''"> | ||
<ItemGroup> | ||
<ProjectToBuild Include="$(ProjectToBuild)" | ||
Exclude="@(ProjectToExclude);$(RepoRoot)**\bin\**\*;$(RepoRoot)**\obj\**\*"> | ||
<BuildInParallel Condition=" '%(Extension)' == '.nodeproj' OR '%(Extension)' == '.vcxproj' ">false</BuildInParallel> | ||
<RestoreInParallel Condition=" '%(Extension)' == '.nodeproj' ">false</RestoreInParallel> | ||
<!-- Also do not build in parallel w/in npm projects. --> | ||
<AdditionalProperties Condition=" '%(Extension)' == '.nodeproj' OR '%(Extension)' == '.vcxproj' ">BuildInParallel=false</AdditionalProperties> | ||
</ProjectToBuild> | ||
</ItemGroup> | ||
</When> | ||
<Otherwise> | ||
<ItemGroup> | ||
<ProjectToBuild Include="$(MSBuildThisFileDirectory)Build\Native.Traversal.proj" Condition="'$(BuildNative)' == 'true'" BuildInParallel="false" /> | ||
<ProjectToBuild Include="$(MSBuildThisFileDirectory)Build\NodeJS.Traversal.proj" Condition="'$(BuildNodeJS)' == 'true'" BuildInParallel="false" /> | ||
<ProjectToBuild Include="$(MSBuildThisFileDirectory)Build\Java.Traversal.proj" Condition="'$(BuildJava)' == 'true'" BuildInParallel="false" /> | ||
<ProjectToBuild Include="$(MSBuildThisFileDirectory)Build\Managed.Traversal.proj" Condition="'$(BuildManaged)' == 'true'" BuildInParallel="false" /> | ||
<ProjectToBuild Include="$(MSBuildThisFileDirectory)Build\Installers.Traversal.proj" Condition="'$(BuildInstallers)' == 'true'" BuildInParallel="false" /> | ||
</ItemGroup> | ||
</Otherwise> | ||
</Choose> | ||
<ItemGroup> | ||
<ProjectToBuild Include="$(MSBuildThisFileDirectory)Build\Build.Traversal.proj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<Project Sdk="Microsoft.Build.Traversal"> | ||
|
||
<Choose> | ||
<!-- Project selection can be overridden on the command line by passing in -projects. --> | ||
<When Condition="'$(ProjectToBuild)' != ''"> | ||
<ItemGroup> | ||
<ProjectReference Include="$(ProjectToBuild)" | ||
Exclude="@(ProjectToExclude);$(RepoRoot)**\bin\**\*;$(RepoRoot)**\obj\**\*"> | ||
<BuildInParallel Condition=" '%(Extension)' == '.nodeproj' OR '%(Extension)' == '.vcxproj' ">false</BuildInParallel> | ||
</ProjectReference> | ||
</ItemGroup> | ||
</When> | ||
<Otherwise> | ||
<ItemGroup> | ||
<ProjectReference Include="Native.Traversal.proj" Condition="'$(BuildNative)' == 'true'" BuildInParallel="false" /> | ||
<ProjectReference Include="NodeJS.Traversal.proj" Condition="'$(BuildNodeJS)' == 'true'" BuildInParallel="false" /> | ||
<ProjectReference Include="Java.Traversal.proj" Condition="'$(BuildJava)' == 'true'" BuildInParallel="false" /> | ||
<ProjectReference Include="Managed.Traversal.proj" Condition="'$(BuildManaged)' == 'true'" BuildInParallel="false" /> | ||
<ProjectReference Include="Installers.Traversal.proj" Condition="'$(BuildInstallers)' == 'true'" BuildInParallel="false" /> | ||
</ItemGroup> | ||
</Otherwise> | ||
</Choose> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<Project> | ||
|
||
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.targets, $(MSBuildThisFileDirectory)..))" /> | ||
|
||
<Target Name="GetReferencesProvided" Returns="@(ProvidesReferenceOrRequiresDelay)"> | ||
<MSBuild Projects="@(ProjectReference);@(ExplicitRequiresDelay)" | ||
Targets="GetReferencesProvided" | ||
BuildInParallel="true" | ||
SkipNonexistentTargets="true"> | ||
<Output TaskParameter="TargetOutputs" ItemName="ProvidesReferenceOrRequiresDelay" /> | ||
</MSBuild> | ||
</Target> | ||
|
||
<Target Name="CreateHelixPayload" Returns="@(HelixWorkItem)"> | ||
<MSBuild Projects="@(ProjectReference)" | ||
Targets="CreateHelixPayload" | ||
BuildInParallel="true" | ||
SkipNonexistentTargets="true"> | ||
<Output TaskParameter="TargetOutputs" ItemName="HelixWorkItem" /> | ||
</MSBuild> | ||
</Target> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters