| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!-- Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html --> |
| 3 |
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 4 |
<!-- This file is used to set configuration option for all projects. --> |
| 5 |
|
| 6 |
<!-- Automatic PlatformToolset version selection. --> |
| 7 |
<!-- If there is no DefaultPlatformToolset set, we will try to detect the version based on version of the build tools. --> |
| 8 |
<PropertyGroup> |
| 9 |
<BuildToolVersion>$(VisualStudioVersion)</BuildToolVersion> |
| 10 |
<!-- Only use the MSBuildToolsVersion if we don't have the VisualStudioVersion and MSBuildToolsVersion is set to something other than Current. --> |
| 11 |
<BuildToolVersion Condition="'$(BuildToolVersion)'=='' and '$(MSBuildToolsVersion)' != 'Current'">$(MSBuildToolsVersion)</BuildToolVersion> |
| 12 |
<!-- Version Note: |
| 13 |
v140 is the Visual Studio 2015 toolset. (14.0) |
| 14 |
v141 is the Visual Studio 2017 toolset. (15.0) |
| 15 |
v142 is the Visual Studio 2019 toolset. (16.0) |
| 16 |
v143 is the Visual Studio 2022 toolset. (17.0) |
| 17 |
--> |
| 18 |
<AutoDetectedPlatformToolset Condition="'$(BuildToolVersion)'=='14.0'">v140</AutoDetectedPlatformToolset> |
| 19 |
<AutoDetectedPlatformToolset Condition="'$(BuildToolVersion)'=='15.0'">v141</AutoDetectedPlatformToolset> |
| 20 |
<AutoDetectedPlatformToolset Condition="'$(BuildToolVersion)'=='16.0'">v142</AutoDetectedPlatformToolset> |
| 21 |
<AutoDetectedPlatformToolset Condition="'$(BuildToolVersion)'=='17.0'">v143</AutoDetectedPlatformToolset> |
| 22 |
</PropertyGroup> |
| 23 |
<PropertyGroup Label="EmptyDefaultPlatformToolset"> |
| 24 |
<DefaultPlatformToolset Condition=" '$(DefaultPlatformToolset)' == '' ">$(AutoDetectedPlatformToolset)</DefaultPlatformToolset> |
| 25 |
</PropertyGroup> |
| 26 |
<PropertyGroup Label="PlatformToolset"> |
| 27 |
<PlatformToolset>$(DefaultPlatformToolset)</PlatformToolset> |
| 28 |
</PropertyGroup> |
| 29 |
|
| 30 |
<!-- This is the default SDK target. --> |
| 31 |
<!-- |
| 32 |
If not already set, use the latest installed version of the Windows 10 SDK. |
| 33 |
The Windows 10 SDK is backwards compatible to Windows 7, as long as WINVER and _WIN32_WINNT are set before compiling. |
| 34 |
Note: |
| 35 |
- With VS2019, VS2022 using a value of "10.0" means that it will use the latest installed version. |
| 36 |
- With VS2017, we need to manually detect the latest SDK version from the registry. |
| 37 |
- With VS2015, use the Windows 8.1 SDK. |
| 38 |
--> |
| 39 |
<PropertyGroup Condition="'$(WindowsTargetPlatformVersion)'=='' and ('$(PlatformToolset)'=='v142' or '$(PlatformToolset)'=='v143')"> |
| 40 |
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> |
| 41 |
</PropertyGroup> |
| 42 |
<PropertyGroup Condition="'$(WindowsTargetPlatformVersion)'=='' and ('$(PlatformToolset)'=='v141' or '$(AutodetectWin10SDK)'=='true')"> |
| 43 |
<!-- Detect the SDK version. --> |
| 44 |
<WindowsSdkInstallFolder_10 Condition="'$(WindowsSdkInstallFolder_10)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@InstallationFolder)</WindowsSdkInstallFolder_10> |
| 45 |
<WindowsSdkInstallFolder_10 Condition="'$(WindowsSdkInstallFolder_10)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0@InstallationFolder)</WindowsSdkInstallFolder_10> |
| 46 |
<WindowsTargetPlatformVersion_10 Condition="'$(WindowsTargetPlatformVersion_10)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</WindowsTargetPlatformVersion_10> |
| 47 |
<WindowsTargetPlatformVersion_10 Condition="'$(WindowsTargetPlatformVersion_10)' == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</WindowsTargetPlatformVersion_10> |
| 48 |
<!-- Sometimes the version in the registry has the '.0' suffix, and sometimes it doesn't. Check and add it. --> |
| 49 |
<WindowsTargetPlatformVersion_10 Condition="'$(WindowsTargetPlatformVersion_10)' != '' and !$(WindowsTargetPlatformVersion_10.EndsWith('.0'))">$(WindowsTargetPlatformVersion_10).0</WindowsTargetPlatformVersion_10> |
| 50 |
<!-- Set the default. --> |
| 51 |
<WindowsTargetPlatformVersion>$(WindowsTargetPlatformVersion_10)</WindowsTargetPlatformVersion> |
| 52 |
</PropertyGroup> |
| 53 |
<PropertyGroup Condition="'$(WindowsTargetPlatformVersion)'=='' and '$(PlatformToolset)'=='v140'"> |
| 54 |
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion> |
| 55 |
</PropertyGroup> |
| 56 |
<!-- Disable MSBuild warning about Linker OutputFile. --> |
| 57 |
<PropertyGroup> |
| 58 |
<!-- For example: MSBuild complains that the common project creates "icuuc62.dll" rather than "common.dll". However, this is intentional. --> |
| 59 |
<MSBuildWarningsAsMessages>MSB8012</MSBuildWarningsAsMessages> |
| 60 |
</PropertyGroup> |
| 61 |
|
| 62 |
<!-- This enables outputting the source code line when an error occurs (to make it easier to see what/where the issue is). --> |
| 63 |
<ItemDefinitionGroup> |
| 64 |
<ClCompile> |
| 65 |
<DiagnosticsFormat>Caret</DiagnosticsFormat> |
| 66 |
</ClCompile> |
| 67 |
</ItemDefinitionGroup> |
| 68 |
</Project> |