kvm-guest-drivers-windows
100 строк · 4.0 Кб
1<!--
2***********************************************************************************************
3Driver.Common.props
4Common property definitions used by all drivers:
5$(_NT_TARGET_MAJ)
6$(TargetOS)
7$(TargetArch)
8$(InfArch)
9***********************************************************************************************
10-->
11
12<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" TreatAsLocalProperty="Platform">13
14<Import Project="Driver.Platform.props" />15<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />16<Import Project="Driver.Initial.props" />17<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />18
19<PropertyGroup>20<!-- Define the legacy DDK directory required for downlevel targets -->21<DDKINSTALLROOT Condition="'$(DDKINSTALLROOT)' == ''">C:\WINDDK\</DDKINSTALLROOT>22<DDKVER Condition="'$(DDKVER)' == ''">7600.16385.1</DDKVER>23<LegacyDDKDir>$(DDKINSTALLROOT)$(DDKVER)</LegacyDDKDir>24<INF_ARCH_FOR_WIN10>6.3</INF_ARCH_FOR_WIN10>25</PropertyGroup>26
27<PropertyGroup Label="Globals">28<Inf2CatUseLocalTime>true</Inf2CatUseLocalTime>29</PropertyGroup>30
31<!-- $(TargetArch) -->32<PropertyGroup Condition="'$(Platform)'=='Win32'">33<TargetArch>x86</TargetArch>34</PropertyGroup>35<PropertyGroup Condition="'$(Platform)'=='x64'">36<TargetArch>amd64</TargetArch>37</PropertyGroup>38<PropertyGroup Condition="'$(Platform)'=='ARM64'">39<TargetArch>ARM64</TargetArch>40</PropertyGroup>41
42<PropertyGroup Condition="'$(WIN10_INF_DIFX_COMPAT)'=='' OR '$(WIN10_INF_DIFX_COMPAT)'=='0'">43<INF_ARCH_FOR_WIN10>10.0</INF_ARCH_FOR_WIN10>44<INF_ARCH_FOR_WIN11>10.0...16299</INF_ARCH_FOR_WIN11>45</PropertyGroup>46
47<!-- _NT_TARGET_MAJ is one of the components of driver version (always reflects target OS version) -->48<!-- $(TargetOS) -->49<!-- InfArch turns into the TargetOS inf file directive -->50<PropertyGroup Condition="'$(Configuration)'=='Win10 Release' OR '$(Configuration)'=='Win10 Debug'">51<_NT_TARGET_MAJ>100</_NT_TARGET_MAJ>52<TargetOS>Win10</TargetOS>53<DriverTargetPlatform>Universal</DriverTargetPlatform>54<InfArch>$(TargetArch).$(INF_ARCH_FOR_WIN10)</InfArch>55</PropertyGroup>56
57<PropertyGroup Condition="'$(Configuration)'=='Win11 Release' OR '$(Configuration)'=='Win11 Debug'">58<_NT_TARGET_MAJ>100</_NT_TARGET_MAJ>59<TargetOS>Win11</TargetOS>60<DriverTargetPlatform>Universal</DriverTargetPlatform>61<InfArch>$(TargetArch).$(INF_ARCH_FOR_WIN11)</InfArch>62</PropertyGroup>63
64<ItemGroup>65<Substitution Include="INX_PLATFORM_DRIVERS_DIR" Condition="'$(Configuration)'=='Win10 Release' OR '$(Configuration)'=='Win10 Debug'">66<ReplaceWith>12</ReplaceWith>67</Substitution>68<Substitution Include="INX_PLATFORM_DRIVERS_DIR" Condition="'$(Configuration)'=='Win11 Release' OR '$(Configuration)'=='Win11 Debug'">69<ReplaceWith>13</ReplaceWith>70</Substitution>71
72<Substitution Include="INX_BASE_ON_SYSTEM_ROOT_DRIVER_DIR" Condition="'$(Configuration)'=='Win10 Release' OR '$(Configuration)'=='Win10 Debug'">73<ReplaceWith>%25%25SystemRoot%25%25\System32\drivers</ReplaceWith>74</Substitution>75<Substitution Include="INX_BASE_ON_SYSTEM_ROOT_DRIVER_DIR" Condition="'$(Configuration)'=='Win11 Release' OR '$(Configuration)'=='Win11 Debug'">76<ReplaceWith>%2513%25</ReplaceWith>77</Substitution>78</ItemGroup>79
80<!-- WPP settings -->81<ItemDefinitionGroup>82<ClCompile>83<WppModuleName>$(TargetFileName)</WppModuleName>84</ClCompile>85<DriverSign>86<FileDigestAlgorithm>sha256</FileDigestAlgorithm>87</DriverSign>88</ItemDefinitionGroup>89
90<!-- Enable CETCompat for vs >= 2019 or EWDK >= 2004 -->91<ItemDefinitionGroup Condition="'$(CETCompatSupported)'=='true'">92<Link Condition="'$(Configuration)|$(Platform)'=='Win10 Release|x64' OR '$(Configuration)|$(Platform)'=='Win10 Release|Win32'">93<CETCompat>true</CETCompat>94</Link>95</ItemDefinitionGroup>96
97<!-- Import vendor specific properties -->98<Import Project="Driver.Vendor.props" />99
100</Project>101