mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Fixes sys.winver generation and removes dependency on user32.dll
This commit is contained in:
parent
a39eb0f42b
commit
2587952f2f
4 changed files with 20 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" TreatAsLocalProperty="Platform">
|
||||
<PropertyGroup>
|
||||
<Platform Condition="'$(Platform)' == ''">Win32</Platform>
|
||||
<Platform Condition="'$(Platform)' == '' or '$(Platform)' == 'x86'">Win32</Platform>
|
||||
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
|
||||
<!--
|
||||
Use the latest available version of Visual Studio to build. To override
|
||||
|
@ -100,6 +100,10 @@
|
|||
<!-- The version and platform tag to include in .pyd filenames -->
|
||||
<PydTag Condition="$(Platform) == 'Win32'">.cp$(MajorVersionNumber)$(MinorVersionNumber)-win32</PydTag>
|
||||
<PydTag Condition="$(Platform) == 'x64'">.cp$(MajorVersionNumber)$(MinorVersionNumber)-win_amd64</PydTag>
|
||||
|
||||
<!-- The version number for sys.winver -->
|
||||
<SysWinVer>$(MajorVersionNumber).$(MinorVersionNumber)</SysWinVer>
|
||||
<SysWinVer Condition="$(Platform) == 'Win32'">$(SysWinVer)-32</SysWinVer>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Displays the calculated version info -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue