|
3 | 3 | <!-- Set common MSBuild properties and item metadata for CppWinRT tool and tests --> |
4 | 4 |
|
5 | 5 | <PropertyGroup> |
6 | | - <PlatformToolset>v143</PlatformToolset> |
7 | | - <PlatformToolset Condition="'$(VisualStudioVersion)' == '16.0'">v142</PlatformToolset> |
8 | | - <PlatformToolset Condition="'$(VisualStudioVersion)' == '15.0'">v141</PlatformToolset> |
| 6 | + <PlatformToolset Condition="'$(PlatformToolset)'=='' and '$(VisualStudioVersion)' == '15.0'">v141</PlatformToolset> |
| 7 | + <PlatformToolset Condition="'$(PlatformToolset)'=='' and '$(VisualStudioVersion)' == '16.0'">v142</PlatformToolset> |
| 8 | + <PlatformToolset Condition="'$(PlatformToolset)'==''">v143</PlatformToolset> |
9 | 9 | <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> |
10 | 10 | <WindowsTargetPlatformMinVersion>10.0.18362.0</WindowsTargetPlatformMinVersion> |
11 | 11 | </PropertyGroup> |
|
33 | 33 |
|
34 | 34 | <PropertyGroup> |
35 | 35 | <CppWinRTBuildVersion Condition="'$(CppWinRTBuildVersion)'==''">2.3.4.5</CppWinRTBuildVersion> |
36 | | - <CmakePlatform>$(Platform)</CmakePlatform> |
37 | | - <CmakePlatform Condition="'$(Platform)'=='Win32'">x86</CmakePlatform> |
38 | | - <CmakeOutDir Condition="'$(CmakeOutDir)'==''">$(SolutionDir)_build\$(CmakePlatform)\$(Configuration)</CmakeOutDir> |
39 | | - <CppWinRTDir>$(CmakeOutDir)\</CppWinRTDir> |
| 36 | + <CppWinRTPlatform>$(Platform)</CppWinRTPlatform> |
| 37 | + <CppWinRTPlatform Condition="'$(Platform)'=='Win32'">x86</CppWinRTPlatform> |
| 38 | + <OutDir>$(SolutionDir)_build\$(CppWinRTPlatform)\$(Configuration)\</OutDir> |
| 39 | + <CppWinRTDir>$(OutDir)</CppWinRTDir> |
40 | 40 | <CppWinRTDir Condition="'$(Platform)'=='ARM' or '$(Platform)'=='ARM64'">$(SolutionDir)_build\x86\$(Configuration)\</CppWinRTDir> |
41 | | - <OutDir>$(CmakeOutDir)\</OutDir> |
42 | 41 | </PropertyGroup> |
43 | 42 |
|
44 | 43 | <ItemDefinitionGroup> |
|
64 | 63 | </ResourceCompile> |
65 | 64 | </ItemDefinitionGroup> |
66 | 65 |
|
| 66 | + <!-- Each release of Visual Studio produces larger intermediate files. |
| 67 | + To prevent build agents from running out of disk space, clean as we go. --> |
| 68 | + <Target Name="CleanIntermediateFiles" AfterTargets="Build" Condition="'$(clean_intermediate_files)'=='true'"> |
| 69 | + <RemoveDir Directories="$(IntDir)" /> |
| 70 | + </Target> |
| 71 | + |
67 | 72 | </Project> |
0 commit comments