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