Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 2 | <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 3 | <PropertyGroup> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 4 | <Platform Condition="'$(Platform)' == ''">Win32</Platform> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 5 | <Configuration Condition="'$(Configuration)' == ''">Release</Configuration> |
| 6 | <!-- |
| 7 | Use the latest available version of Visual Studio to build. To override |
| 8 | this and build with an earlier version, pass "/p:PlatformToolset=v100" |
| 9 | (for example) when building. |
Zachary Ware | 4c5ad94 | 2016-01-29 19:08:55 -0600 | [diff] [blame] | 10 | |
| 11 | We set BasePlatformToolset for ICC's benefit, it's otherwise ignored. |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 12 | --> |
Steve Dower | 5fcd5e6 | 2017-09-06 10:01:38 -0700 | [diff] [blame] | 13 | <BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and ('$(MSBuildToolsVersion)' == '15.0' or '$(VisualStudioVersion)' == '15.0')">v141</BasePlatformToolset> |
Zachary Ware | 4c5ad94 | 2016-01-29 19:08:55 -0600 | [diff] [blame] | 14 | <BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and '$(VCTargetsPath14)' != ''">v140</BasePlatformToolset> |
| 15 | <BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and '$(VCTargetsPath12)' != ''">v120</BasePlatformToolset> |
| 16 | <BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and '$(VCTargetsPath11)' != ''">v110</BasePlatformToolset> |
| 17 | <BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and '$(VCTargetsPath10)' != ''">v100</BasePlatformToolset> |
| 18 | |
| 19 | <PlatformToolset Condition="'$(PlatformToolset)' == ''">$(BasePlatformToolset)</PlatformToolset> |
| 20 | <ICCBuild>false</ICCBuild> |
| 21 | <ICCBuild Condition="$(PlatformToolset.StartsWith(`Intel C++ Compiler`))">true</ICCBuild> |
| 22 | |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 23 | <!-- |
| 24 | Convincing MSVC/MSBuild to prefer our platform names is too difficult, |
| 25 | so we define our own constant ArchName and use wherever we need it. |
| 26 | --> |
| 27 | <ArchName Condition="'$(ArchName)' == '' and $(Platform) == 'x64'">amd64</ArchName> |
Paul Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 28 | <ArchName Condition="'$(ArchName)' == '' and $(Platform) == 'ARM'">arm32</ArchName> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 29 | <ArchName Condition="'$(ArchName)' == ''">win32</ArchName> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 30 | |
| 31 | <!-- Root directory of the repository --> |
| 32 | <PySourcePath Condition="'$(PySourcePath)' == ''">$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)\..\))</PySourcePath> |
| 33 | <PySourcePath Condition="!HasTrailingSlash($(PySourcePath))">$(PySourcePath)\</PySourcePath> |
| 34 | |
| 35 | <!-- Directory where build outputs are put --> |
Stefan Grönke | f1502d0 | 2017-09-25 18:58:10 +0200 | [diff] [blame] | 36 | <BuildPath32 Condition="'$(Py_OutDir)' == ''">$(PySourcePath)PCbuild\win32\</BuildPath32> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame] | 37 | <BuildPath32 Condition="'$(Py_OutDir)' != ''">$(Py_OutDir)\win32\</BuildPath32> |
Stefan Grönke | f1502d0 | 2017-09-25 18:58:10 +0200 | [diff] [blame] | 38 | <BuildPath64 Condition="'$(Py_OutDir)' == ''">$(PySourcePath)PCbuild\amd64\</BuildPath64> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame] | 39 | <BuildPath64 Condition="'$(Py_OutDir)' != ''">$(Py_OutDir)\amd64\</BuildPath64> |
Paul Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 40 | <BuildPathArm32 Condition="'$(Py_OutDir)' == ''">$(PySourcePath)PCbuild\arm32\</BuildPathArm32> |
| 41 | <BuildPathArm32 Condition="'$(Py_OutDir)' != ''">$(Py_OutDir)\arm32\</BuildPathArm32> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame] | 42 | <BuildPath Condition="'$(ArchName)' == 'win32'">$(BuildPath32)</BuildPath> |
| 43 | <BuildPath Condition="'$(ArchName)' == 'amd64'">$(BuildPath64)</BuildPath> |
Paul Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 44 | <BuildPath Condition="'$(ArchName)' == 'arm32'">$(BuildPathArm32)</BuildPath> |
Stefan Grönke | f1502d0 | 2017-09-25 18:58:10 +0200 | [diff] [blame] | 45 | <BuildPath Condition="'$(BuildPath)' == ''">$(PySourcePath)PCbuild\$(ArchName)\</BuildPath> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 46 | <BuildPath Condition="!HasTrailingSlash($(BuildPath))">$(BuildPath)\</BuildPath> |
Steve Dower | 5fcd5e6 | 2017-09-06 10:01:38 -0700 | [diff] [blame] | 47 | <BuildPath Condition="$(Configuration) == 'PGInstrument'">$(BuildPath)instrumented\</BuildPath> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 48 | |
| 49 | <!-- Directories of external projects. tcltk is handled in tcltk.props --> |
Steve Dower | 01423cb | 2018-02-17 18:59:03 -0800 | [diff] [blame] | 50 | <ExternalsDir>$(EXTERNALS_DIR)</ExternalsDir> |
| 51 | <ExternalsDir Condition="$(ExternalsDir) == ''">$([System.IO.Path]::GetFullPath(`$(PySourcePath)externals`))</ExternalsDir> |
| 52 | <ExternalsDir Condition="!HasTrailingSlash($(ExternalsDir))">$(ExternalsDir)\</ExternalsDir> |
Mariatta | 31af650 | 2017-11-06 19:31:53 -0800 | [diff] [blame] | 53 | <sqlite3Dir>$(ExternalsDir)sqlite-3.21.0.0\</sqlite3Dir> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 54 | <bz2Dir>$(ExternalsDir)bzip2-1.0.6\</bz2Dir> |
Zachary Ware | 16c18a3 | 2016-09-11 21:18:07 -0500 | [diff] [blame] | 55 | <lzmaDir>$(ExternalsDir)xz-5.2.2\</lzmaDir> |
Paul Monson | 32119e1 | 2019-03-29 16:30:10 -0700 | [diff] [blame] | 56 | <libffiDir>$(ExternalsDir)libffi\</libffiDir> |
| 57 | <libffiOutDir>$(ExternalsDir)libffi\$(ArchName)\</libffiOutDir> |
| 58 | <libffiIncludeDir>$(libffiOutDir)include</libffiIncludeDir> |
Steve Dower | 4824385 | 2018-12-10 19:52:36 -0800 | [diff] [blame] | 59 | <opensslDir>$(ExternalsDir)openssl-1.1.0j\</opensslDir> |
| 60 | <opensslOutDir>$(ExternalsDir)openssl-bin-1.1.0j\$(ArchName)\</opensslOutDir> |
Steve Dower | 68d663c | 2017-07-17 11:15:48 +0200 | [diff] [blame] | 61 | <opensslIncludeDir>$(opensslOutDir)include</opensslIncludeDir> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 62 | <nasmDir>$(ExternalsDir)\nasm-2.11.06\</nasmDir> |
Zachary Ware | d01db1c | 2017-09-06 17:29:37 -0700 | [diff] [blame] | 63 | <zlibDir>$(ExternalsDir)\zlib-1.2.11\</zlibDir> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 64 | |
| 65 | <!-- Suffix for all binaries when building for debug --> |
| 66 | <PyDebugExt Condition="'$(PyDebugExt)' == '' and $(Configuration) == 'Debug'">_d</PyDebugExt> |
| 67 | |
Steve Dower | 940f6a8 | 2015-10-31 12:17:11 -0700 | [diff] [blame] | 68 | <!-- Suffix for versions/keys when building with test markers --> |
| 69 | <PyTestExt Condition="$(UseTestMarker) == 'true'">-test</PyTestExt> |
| 70 | |
| 71 | <!-- Suffix for versions/keys when building for particular platforms --> |
| 72 | <PyArchExt Condition="'$(ArchName)' == 'win32'">-32</PyArchExt> |
Paul Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 73 | <PyArchExt Condition="'$(ArchName)' == 'arm32'">-arm32</PyArchExt> |
Steve Dower | 940f6a8 | 2015-10-31 12:17:11 -0700 | [diff] [blame] | 74 | |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 75 | <!-- Full path of the resulting python.exe binary --> |
| 76 | <PythonExe Condition="'$(PythonExe)' == ''">$(BuildPath)python$(PyDebugExt).exe</PythonExe> |
Steve Dower | 4943749 | 2015-07-08 20:18:44 -0700 | [diff] [blame] | 77 | </PropertyGroup> |
| 78 | |
Paul Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 79 | <PropertyGroup Condition="'$(Platform)'=='ARM'" Label="ArmConfiguration"> |
| 80 | <WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport> |
| 81 | </PropertyGroup> |
| 82 | |
Steve Dower | 9b33bf5 | 2017-05-23 16:25:25 -0700 | [diff] [blame] | 83 | <PropertyGroup Condition="$(DefaultWindowsSDKVersion) == ''"> |
| 84 | <!-- |
| 85 | Attempt to select the latest installed WinSDK. If we don't find any, then we will |
| 86 | let the MSBuild targets determine which one it wants to use (typically the earliest |
| 87 | possible version). Since we limit WINVER to Windows 7 anyway, it doesn't really |
| 88 | matter which WinSDK version we use. |
| 89 | --> |
Steve Dower | 30f4fa4 | 2017-11-06 12:52:09 -0800 | [diff] [blame] | 90 | <_RegistryVersion>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion> |
Isuru Fernando | aedc273 | 2019-03-21 12:52:57 -0500 | [diff] [blame] | 91 | <_RegistryVersion Condition="$(_RegistryVersion) == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion> |
Jeremy Kloth | f46eccd | 2018-12-09 20:59:32 -0700 | [diff] [blame] | 92 | <!-- Sometimes the version in the registry has to .0 suffix, and sometimes it doesn't. Check and add it --> |
| 93 | <_RegistryVersion Condition="$(_RegistryVersion) != '' and !$(_RegistryVersion.EndsWith('.0'))">$(_RegistryVersion).0</_RegistryVersion> |
| 94 | |
| 95 | <!-- The minimum allowed SDK version to use for building --> |
| 96 | <DefaultWindowsSDKVersion>10.0.10586.0</DefaultWindowsSDKVersion> |
| 97 | <DefaultWindowsSDKVersion Condition="$([System.Version]::Parse($(_RegistryVersion))) > $([System.Version]::Parse($(DefaultWindowsSDKVersion)))">$(_RegistryVersion)</DefaultWindowsSDKVersion> |
Steve Dower | 9b33bf5 | 2017-05-23 16:25:25 -0700 | [diff] [blame] | 98 | </PropertyGroup> |
| 99 | |
Jeremy Kloth | f46eccd | 2018-12-09 20:59:32 -0700 | [diff] [blame] | 100 | <PropertyGroup Condition="$(WindowsTargetPlatformVersion) == ''"> |
| 101 | <WindowsTargetPlatformVersion>$(DefaultWindowsSDKVersion)</WindowsTargetPlatformVersion> |
| 102 | </PropertyGroup> |
| 103 | |
Steve Dower | 4943749 | 2015-07-08 20:18:44 -0700 | [diff] [blame] | 104 | <PropertyGroup Condition="'$(OverrideVersion)' == ''"> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 105 | <!-- |
| 106 | Read version information from Include\patchlevel.h. The following properties are set: |
| 107 | |
| 108 | MajorVersionNumber - the '3' in '3.5.2a1' |
| 109 | MinorVersionNumber - the '5' in '3.5.2a1' |
| 110 | MicroVersionNumber - the '2' in '3.5.2a1' |
| 111 | ReleaseSerial - the '1' in '3.5.2a1' |
| 112 | ReleaseLevelName - the 'a1' in '3.5.2a1' |
| 113 | PythonVersionNumber - '3.5.2' for '3.5.2a1' |
| 114 | PythonVersion - '3.5.2a1' |
| 115 | PythonVersionHex - 0x030502a1 for '3.5.2a1' |
| 116 | ReleaseLevelNumber - 10 for alpha, 11 for beta, 12 for RC (gamma), and 15 for final |
| 117 | Field3Value - 2101 for '3.5.2a1' (== 1000*2 + 10*10 ('a') + 1) |
| 118 | --> |
| 119 | <_PatchLevelContent>$([System.IO.File]::ReadAllText(`$(PySourcePath)Include\patchlevel.h`))</_PatchLevelContent> |
| 120 | <MajorVersionNumber>$([System.Text.RegularExpressions.Regex]::Match($(_PatchLevelContent), `define\s+PY_MAJOR_VERSION\s+(\d+)`).Groups[1].Value)</MajorVersionNumber> |
| 121 | <MinorVersionNumber>$([System.Text.RegularExpressions.Regex]::Match($(_PatchLevelContent), `define\s+PY_MINOR_VERSION\s+(\d+)`).Groups[1].Value)</MinorVersionNumber> |
| 122 | <MicroVersionNumber>$([System.Text.RegularExpressions.Regex]::Match($(_PatchLevelContent), `define\s+PY_MICRO_VERSION\s+(\d+)`).Groups[1].Value)</MicroVersionNumber> |
| 123 | <_ReleaseLevel>$([System.Text.RegularExpressions.Regex]::Match($(_PatchLevelContent), `define\s+PY_RELEASE_LEVEL\s+PY_RELEASE_LEVEL_(\w+)`).Groups[1].Value)</_ReleaseLevel> |
| 124 | <ReleaseSerial>$([System.Text.RegularExpressions.Regex]::Match($(_PatchLevelContent), `define\s+PY_RELEASE_SERIAL\s+(\d+)`).Groups[1].Value)</ReleaseSerial> |
| 125 | <ReleaseLevelNumber>15</ReleaseLevelNumber> |
| 126 | <ReleaseLevelNumber Condition="$(_ReleaseLevel) == 'ALPHA'">10</ReleaseLevelNumber> |
| 127 | <ReleaseLevelNumber Condition="$(_ReleaseLevel) == 'BETA'">11</ReleaseLevelNumber> |
| 128 | <ReleaseLevelNumber Condition="$(_ReleaseLevel) == 'GAMMA'">12</ReleaseLevelNumber> |
| 129 | <ReleaseLevelName Condition="$(_ReleaseLevel) == 'ALPHA'">a$(ReleaseSerial)</ReleaseLevelName> |
| 130 | <ReleaseLevelName Condition="$(_ReleaseLevel) == 'BETA'">b$(ReleaseSerial)</ReleaseLevelName> |
| 131 | <ReleaseLevelName Condition="$(_ReleaseLevel) == 'GAMMA'">rc$(ReleaseSerial)</ReleaseLevelName> |
Steve Dower | 4943749 | 2015-07-08 20:18:44 -0700 | [diff] [blame] | 132 | </PropertyGroup> |
| 133 | |
| 134 | <PropertyGroup Condition="'$(OverrideVersion)' != ''"> |
| 135 | <!-- |
| 136 | Override the version number when building by specifying OverrideVersion. |
| 137 | For example: |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 138 | |
Stefan Grönke | f1502d0 | 2017-09-25 18:58:10 +0200 | [diff] [blame] | 139 | PCbuild\build.bat "/p:OverrideVersion=3.5.2a1" |
Steve Dower | 4943749 | 2015-07-08 20:18:44 -0700 | [diff] [blame] | 140 | |
| 141 | Use the -V option to check your version is valid: |
| 142 | |
Stefan Grönke | f1502d0 | 2017-09-25 18:58:10 +0200 | [diff] [blame] | 143 | PCbuild\build.bat -V "/p:OverrideVersion=3.5.2a1" |
Steve Dower | 4943749 | 2015-07-08 20:18:44 -0700 | [diff] [blame] | 144 | PythonVersionNumber: 3.5.2 |
| 145 | PythonVersion: 3.5.2a1 |
| 146 | PythonVersionHex: 0x030502A1 |
| 147 | Field3Value: 2101 |
| 148 | |
| 149 | Note that this only affects the version numbers embedded in resources and |
| 150 | installers, but not sys.version. |
| 151 | --> |
| 152 | <MajorVersionNumber>$([System.Text.RegularExpressions.Regex]::Match($(OverrideVersion), `(\d+)\.(\d+)\.(\d+)((a|b|rc)(\d))?`).Groups[1].Value)</MajorVersionNumber> |
| 153 | <MinorVersionNumber>$([System.Text.RegularExpressions.Regex]::Match($(OverrideVersion), `(\d+)\.(\d+)\.(\d+)((a|b|rc)(\d))?`).Groups[2].Value)</MinorVersionNumber> |
| 154 | <MicroVersionNumber>$([System.Text.RegularExpressions.Regex]::Match($(OverrideVersion), `(\d+)\.(\d+)\.(\d+)((a|b|rc)(\d))?`).Groups[3].Value)</MicroVersionNumber> |
| 155 | <ReleaseLevelName>$([System.Text.RegularExpressions.Regex]::Match($(OverrideVersion), `(\d+)\.(\d+)\.(\d+)((a|b|rc)(\d))?`).Groups[4].Value)</ReleaseLevelName> |
| 156 | <_ReleaseLevel>$([System.Text.RegularExpressions.Regex]::Match($(OverrideVersion), `(\d+)\.(\d+)\.(\d+)((a|b|rc)(\d))?`).Groups[5].Value)</_ReleaseLevel> |
| 157 | <ReleaseSerial>$([System.Text.RegularExpressions.Regex]::Match($(OverrideVersion), `(\d+)\.(\d+)\.(\d+)((a|b|rc)(\d))?`).Groups[6].Value)</ReleaseSerial> |
| 158 | <ReleaseSerial Condition="'$(ReleaseSerial)' == ''">0</ReleaseSerial> |
| 159 | <ReleaseLevelNumber>15</ReleaseLevelNumber> |
| 160 | <ReleaseLevelNumber Condition="$(_ReleaseLevel) == 'a'">10</ReleaseLevelNumber> |
| 161 | <ReleaseLevelNumber Condition="$(_ReleaseLevel) == 'b'">11</ReleaseLevelNumber> |
| 162 | <ReleaseLevelNumber Condition="$(_ReleaseLevel) == 'rc'">12</ReleaseLevelNumber> |
| 163 | </PropertyGroup> |
| 164 | |
| 165 | <PropertyGroup> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 166 | <PythonVersionNumber>$(MajorVersionNumber).$(MinorVersionNumber).$(MicroVersionNumber)</PythonVersionNumber> |
| 167 | <PythonVersion>$(MajorVersionNumber).$(MinorVersionNumber).$(MicroVersionNumber)$(ReleaseLevelName)</PythonVersion> |
| 168 | <PythonVersionHex>$([msbuild]::BitwiseOr( |
| 169 | $([msbuild]::Multiply($(MajorVersionNumber), 16777216)), |
| 170 | $([msbuild]::BitwiseOr( |
| 171 | $([msbuild]::Multiply($(MinorVersionNumber), 65536)), |
| 172 | $([msbuild]::BitwiseOr( |
| 173 | $([msbuild]::Multiply($(MicroVersionNumber), 256)), |
| 174 | $([msbuild]::BitwiseOr( |
| 175 | $([msbuild]::Multiply($(ReleaseLevelNumber), 16)), |
| 176 | $(ReleaseSerial) |
| 177 | )) |
| 178 | )) |
| 179 | )) |
| 180 | ))</PythonVersionHex> |
| 181 | <Field3Value>$([msbuild]::Add( |
| 182 | $(ReleaseSerial), |
| 183 | $([msbuild]::Add( |
| 184 | $([msbuild]::Multiply($(ReleaseLevelNumber), 10)), |
| 185 | $([msbuild]::Multiply($(MicroVersionNumber), 1000)) |
| 186 | )) |
| 187 | ))</Field3Value> |
Steve Dower | 940f6a8 | 2015-10-31 12:17:11 -0700 | [diff] [blame] | 188 | <Field3Value Condition="$(UseTestMarker) == 'true'">$([msbuild]::Add($(Field3Value), 9000))</Field3Value> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 189 | |
| 190 | <!-- The name of the resulting pythonXY.dll (without the extension) --> |
| 191 | <PyDllName>python$(MajorVersionNumber)$(MinorVersionNumber)$(PyDebugExt)</PyDllName> |
Steve Dower | 03a144b | 2014-12-15 20:45:23 -0800 | [diff] [blame] | 192 | |
| 193 | <!-- The version and platform tag to include in .pyd filenames --> |
Steve Dower | 940f6a8 | 2015-10-31 12:17:11 -0700 | [diff] [blame] | 194 | <PydTag Condition="$(ArchName) == 'win32'">.cp$(MajorVersionNumber)$(MinorVersionNumber)-win32</PydTag> |
Paul Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 195 | <PydTag Condition="$(ArchName) == 'arm32'">.cp$(MajorVersionNumber)$(MinorVersionNumber)-win_arm32</PydTag> |
Steve Dower | 940f6a8 | 2015-10-31 12:17:11 -0700 | [diff] [blame] | 196 | <PydTag Condition="$(ArchName) == 'amd64'">.cp$(MajorVersionNumber)$(MinorVersionNumber)-win_amd64</PydTag> |
Steve Dower | 2587952 | 2015-01-15 09:10:16 -0800 | [diff] [blame] | 197 | |
| 198 | <!-- The version number for sys.winver --> |
Steve Dower | 940f6a8 | 2015-10-31 12:17:11 -0700 | [diff] [blame] | 199 | <SysWinVer>$(MajorVersionNumber).$(MinorVersionNumber)$(PyArchExt)$(PyTestExt)</SysWinVer> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 200 | </PropertyGroup> |
| 201 | |
| 202 | <!-- Displays the calculated version info --> |
| 203 | <Target Name="ShowVersionInfo"> |
| 204 | <Message Importance="high" Text="PythonVersionNumber: $(PythonVersionNumber)" /> |
| 205 | <Message Importance="high" Text="PythonVersion: $(PythonVersion)" /> |
Steve Dower | 4943749 | 2015-07-08 20:18:44 -0700 | [diff] [blame] | 206 | <Message Importance="high" Text="PythonVersionHex: 0x$([System.UInt32]::Parse($(PythonVersionHex)).ToString(`X08`))" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 207 | <Message Importance="high" Text="Field3Value: $(Field3Value)" /> |
Steve Dower | 940f6a8 | 2015-10-31 12:17:11 -0700 | [diff] [blame] | 208 | <Message Importance="high" Text="SysWinVer: $(SysWinVer)" /> |
| 209 | <Message Importance="high" Text="PyDllName: $(PyDllName)" /> |
Jeremy Kloth | f46eccd | 2018-12-09 20:59:32 -0700 | [diff] [blame] | 210 | <Message Importance="high" Text="WindowsSdkVersion: $(TargetPlatformVersion)" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 211 | </Target> |
| 212 | </Project> |