USBDK/Tools/Driver.Initial.props
Yuri Benditovich 4473e41ab3 Update project files for build with higher WDK installed
When higher WDK than 14393 is installed on the machine, the modified
files related to build of drivers and driver-related applications may
produce errors on build using VS2015. Fixed project files solve this.

Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
2019-01-27 11:57:49 +02:00

31 lines
1.4 KiB
XML

<!--
***********************************************************************************************
Driver.Initial.props
Should be imported just after Microsoft.Cpp.Default.props
and after target Windows versions defined for configurations
Common property definitions used by all drivers:
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" TreatAsLocalProperty="Platform">
<Target Name="IntermediateNotify" BeforeTargets="PrepareForBuild" AfterTargets="DriverBuildNotifications">
<!-- Indicate to users what they are building -->
<Message Importance="high" Text="Driver.Initial.props: TargetVersion=$(TargetVersion) _NT_TARGET_VERSION=$(_NT_TARGET_VERSION) SUBSYSTEM_NATVER=$(SUBSYSTEM_NATVER) mismatch=$(MidlTargetMismatch)" />
</Target>
<PropertyGroup Condition="'$(TargetVersion)'=='Windows10'">
<_NT_TARGET_VERSION>0x0A00</_NT_TARGET_VERSION>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetVersion)'=='WindowsV6.3'">
<_NT_TARGET_VERSION>0x0603</_NT_TARGET_VERSION>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetVersion)'=='Windows8'">
<_NT_TARGET_VERSION>0x0602</_NT_TARGET_VERSION>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetVersion)'=='Windows7'">
<_NT_TARGET_VERSION>0x0601</_NT_TARGET_VERSION>
</PropertyGroup>
</Project>