summaryrefslogtreecommitdiff
path: root/tests/src/dirs.proj
blob: b8966342de0c3cc727fd90ab04d9611e151db569 (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
<Project ToolsVersion="12.0" DefaultTargets="Build" InitialTargets="VerifyBuildTools" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="dir.props" />

  <Target Name="VerifyBuildTools" 
    Inputs="$(BuildToolsTargetInputs)"
    Outputs="$(BuildToolsTargetOutputs)"
    >
    <Error Condition="!Exists('$(BuildToolsInstallSemaphore)')" 
      Text="The build tools have not been installed. Please run buildtest.cmd from the root of the repo at least once to get the tools installed." />

    <!-- If we enter this target at all then the inputs are newer then the outputs so give a warning. -->
    <Warning Text="Looks like there may be an update to the build tools. Please run buildtest.cmd from the root of the repo to refresh the build tools." /> 
  </Target>

  <Target Name="ResolveDisabledProjects" BeforeTargets="BuildAllProjects" >
    <ItemGroup>
      <DisabledProjects Include="TestWrappers*\*\*.csproj" />
      <DisabledProjects Include="*\**\cs_template.csproj" />
      <DisabledProjects Include="Common\Coreclr.TestWrapper\Coreclr.TestWrapper.csproj" />
    </ItemGroup>
    
    <ItemGroup>
      <Project Include="*\**\*.csproj" Exclude="@(DisabledProjects)"/>
      <Project Include="*\**\*.ilproj" Exclude="@(DisabledProjects)"/>
    </ItemGroup>
  </Target>

  <Import Project="..\dir.traversal.targets" />
  
  <!-- Override clean from dir.traversal.targets and just remove the full BinDir -->
  <Target Name="Clean">
    <RemoveDir Directories="$(BinDir)" />
  </Target>
</Project>