mirror of
https://github.com/arehnman/yttrium-virtio-gpu.git
synced 2026-10-31 02:05:04 +00:00
If we use DIRID 13 in Win10 drivers, we can't perform attestation signing As Windows Server 2016 has build lower than 16299, we should have DIRID 12 for Win10 drivers. Resolve: https://issues.redhat.com/browse/RHEL-1214 Signed-off-by: Kostiantyn Kostiuk <[email protected]>
101 lines
4.0 KiB
XML
101 lines
4.0 KiB
XML
<!--
|
|
***********************************************************************************************
|
|
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>
|