1<?xml version="1.0" encoding="utf-8"?> 2<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 <PropertyGroup Label="Configuration"> 4 <!--Will be overridden by value from command line, if provided--> 5 <PlatformToolset Condition="$(VisualStudioVersion)=='12.0'">v120</PlatformToolset> 6 <PlatformToolset Condition="$(VisualStudioVersion)=='14.0'">v140</PlatformToolset> 7 <PlatformToolset Condition="$(VisualStudioVersion)=='15.0'">v141</PlatformToolset> 8 <PlatformToolset Condition="$(VisualStudioVersion)=='16.0'">v142</PlatformToolset> 9 <PlatformToolset Condition="$(VisualStudioVersion)=='17.0'">v143</PlatformToolset> 10 <!--We may need the equivalent of PlatformToolsetVersion before it's ready, so create it ourself--> 11 <LibusbPlatformToolsetVersion>$(PlatformToolset.Substring(1))</LibusbPlatformToolsetVersion> 12 <CharacterSet>Unicode</CharacterSet> 13 <PreferredToolArchitecture>x64</PreferredToolArchitecture> 14 <!-- To use ASAN, just uncomment this. For simplicity, you should run VS/windbg/etc 15 (including the built executables themselves) after using vcvarsall or similar to setup 16 environment, as ASAN needs access to libs and executables in the toolchain paths. 17 --> 18 <!--<EnableASAN>true</EnableASAN>--> 19 </PropertyGroup> 20 <ItemDefinitionGroup> 21 <ClCompile Condition="$(Configuration.StartsWith('Debug'))"> 22 <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> 23 </ClCompile> 24 <ClCompile Condition="$(Configuration.StartsWith('Release'))"> 25 <RuntimeLibrary>MultiThreaded</RuntimeLibrary> 26 </ClCompile> 27 </ItemDefinitionGroup> 28 <PropertyGroup Label="Globals" Condition="'$(LibusbPlatformToolsetVersion)'<'142'"> 29 <!-- 30 WindowsSDKDesktopARMSupport and WindowsSDKDesktopARM64Support are 31 required to enable downlevel Windows SDKs to build "desktop" arm/arm64 32 binaries. 33 --> 34 <WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport> 35 <WindowsSDKDesktopARM64Support>true</WindowsSDKDesktopARM64Support> 36 <!-- 37 WindowsTargetPlatformVersion must be set to explicit value for older 38 PlatformToolsets. Fetch it from environment variable. 39 vs2017/arm64 needs to be special cased to select 10.x SDK instead of 8.x 40 --> 41 <WindowsTargetPlatformVersion Condition="'$(LibusbPlatformToolsetVersion)'=='141' And $(Platform)=='ARM64'">10.0.19041.0</WindowsTargetPlatformVersion> 42 <WindowsTargetPlatformVersion Condition="'$(LibusbPlatformToolsetVersion)'!='141' Or $(Platform)!='ARM64'">$(WindowsSDKVersion)</WindowsTargetPlatformVersion> 43 </PropertyGroup> 44 <PropertyGroup Label="Globals" Condition="'$(LibusbPlatformToolsetVersion)'>='142'"> 45 <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> 46 </PropertyGroup> 47</Project>