2014-11-22 16:54:57 -04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-06-14 12:29:20 -03:00
|
|
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2014-11-22 16:54:57 -04:00
|
|
|
<PropertyGroup>
|
2019-06-14 12:29:20 -03:00
|
|
|
<__Python_Props_Imported>true</__Python_Props_Imported>
|
2015-02-06 02:08:48 -04:00
|
|
|
<Platform Condition="'$(Platform)' == ''">Win32</Platform>
|
2014-11-22 16:54:57 -04:00
|
|
|
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
|
|
|
|
<!--
|
|
|
|
Use the latest available version of Visual Studio to build. To override
|
|
|
|
this and build with an earlier version, pass "/p:PlatformToolset=v100"
|
|
|
|
(for example) when building.
|
2016-01-29 21:08:55 -04:00
|
|
|
|
|
|
|
We set BasePlatformToolset for ICC's benefit, it's otherwise ignored.
|
2014-11-22 16:54:57 -04:00
|
|
|
-->
|
2021-12-03 15:47:38 -04:00
|
|
|
<BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and '$(VisualStudioVersion)' == '17.0'">v143</BasePlatformToolset>
|
2021-11-29 18:40:34 -04:00
|
|
|
<BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and '$(VisualStudioVersion)' == '16.0'">v142</BasePlatformToolset>
|
2017-09-06 14:01:38 -03:00
|
|
|
<BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and ('$(MSBuildToolsVersion)' == '15.0' or '$(VisualStudioVersion)' == '15.0')">v141</BasePlatformToolset>
|
2016-01-29 21:08:55 -04:00
|
|
|
<BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and '$(VCTargetsPath14)' != ''">v140</BasePlatformToolset>
|
|
|
|
<BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and '$(VCTargetsPath12)' != ''">v120</BasePlatformToolset>
|
|
|
|
<BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and '$(VCTargetsPath11)' != ''">v110</BasePlatformToolset>
|
|
|
|
<BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and '$(VCTargetsPath10)' != ''">v100</BasePlatformToolset>
|
|
|
|
|
|
|
|
<PlatformToolset Condition="'$(PlatformToolset)' == ''">$(BasePlatformToolset)</PlatformToolset>
|
|
|
|
<ICCBuild>false</ICCBuild>
|
|
|
|
<ICCBuild Condition="$(PlatformToolset.StartsWith(`Intel C++ Compiler`))">true</ICCBuild>
|
|
|
|
|
2014-11-22 16:54:57 -04:00
|
|
|
<!--
|
|
|
|
Convincing MSVC/MSBuild to prefer our platform names is too difficult,
|
|
|
|
so we define our own constant ArchName and use wherever we need it.
|
|
|
|
-->
|
|
|
|
<ArchName Condition="'$(ArchName)' == '' and $(Platform) == 'x64'">amd64</ArchName>
|
2019-02-14 12:31:30 -04:00
|
|
|
<ArchName Condition="'$(ArchName)' == '' and $(Platform) == 'ARM'">arm32</ArchName>
|
2019-05-15 19:38:55 -03:00
|
|
|
<ArchName Condition="'$(ArchName)' == '' and $(Platform) == 'ARM64'">arm64</ArchName>
|
2014-11-22 16:54:57 -04:00
|
|
|
<ArchName Condition="'$(ArchName)' == ''">win32</ArchName>
|
2024-01-17 17:52:23 -04:00
|
|
|
|
2014-11-22 16:54:57 -04:00
|
|
|
<!-- Root directory of the repository -->
|
|
|
|
<PySourcePath Condition="'$(PySourcePath)' == ''">$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)\..\))</PySourcePath>
|
|
|
|
<PySourcePath Condition="!HasTrailingSlash($(PySourcePath))">$(PySourcePath)\</PySourcePath>
|
2024-01-17 17:52:23 -04:00
|
|
|
|
2014-11-22 16:54:57 -04:00
|
|
|
<!-- Directory where build outputs are put -->
|
2017-09-25 13:58:10 -03:00
|
|
|
<BuildPath32 Condition="'$(Py_OutDir)' == ''">$(PySourcePath)PCbuild\win32\</BuildPath32>
|
2016-07-16 20:13:19 -03:00
|
|
|
<BuildPath32 Condition="'$(Py_OutDir)' != ''">$(Py_OutDir)\win32\</BuildPath32>
|
2017-09-25 13:58:10 -03:00
|
|
|
<BuildPath64 Condition="'$(Py_OutDir)' == ''">$(PySourcePath)PCbuild\amd64\</BuildPath64>
|
2016-07-16 20:13:19 -03:00
|
|
|
<BuildPath64 Condition="'$(Py_OutDir)' != ''">$(Py_OutDir)\amd64\</BuildPath64>
|
2019-02-14 12:31:30 -04:00
|
|
|
<BuildPathArm32 Condition="'$(Py_OutDir)' == ''">$(PySourcePath)PCbuild\arm32\</BuildPathArm32>
|
|
|
|
<BuildPathArm32 Condition="'$(Py_OutDir)' != ''">$(Py_OutDir)\arm32\</BuildPathArm32>
|
2019-05-17 14:07:24 -03:00
|
|
|
<BuildPathArm64 Condition="'$(Py_OutDir)' == ''">$(PySourcePath)PCbuild\arm64\</BuildPathArm64>
|
|
|
|
<BuildPathArm64 Condition="'$(Py_OutDir)' != ''">$(Py_OutDir)\arm64\</BuildPathArm64>
|
2016-07-16 20:13:19 -03:00
|
|
|
<BuildPath Condition="'$(ArchName)' == 'win32'">$(BuildPath32)</BuildPath>
|
|
|
|
<BuildPath Condition="'$(ArchName)' == 'amd64'">$(BuildPath64)</BuildPath>
|
2019-02-14 12:31:30 -04:00
|
|
|
<BuildPath Condition="'$(ArchName)' == 'arm32'">$(BuildPathArm32)</BuildPath>
|
2019-05-17 14:07:24 -03:00
|
|
|
<BuildPath Condition="'$(ArchName)' == 'arm64'">$(BuildPathArm64)</BuildPath>
|
2017-09-25 13:58:10 -03:00
|
|
|
<BuildPath Condition="'$(BuildPath)' == ''">$(PySourcePath)PCbuild\$(ArchName)\</BuildPath>
|
2014-11-22 16:54:57 -04:00
|
|
|
<BuildPath Condition="!HasTrailingSlash($(BuildPath))">$(BuildPath)\</BuildPath>
|
2017-09-06 14:01:38 -03:00
|
|
|
<BuildPath Condition="$(Configuration) == 'PGInstrument'">$(BuildPath)instrumented\</BuildPath>
|
2024-01-17 17:52:23 -04:00
|
|
|
|
2021-12-10 13:13:55 -04:00
|
|
|
<!-- VPATH definition (escaped) -->
|
|
|
|
<PyVPath Condition="$(Configuration) != 'PGInstrument'">..\\..</PyVPath>
|
|
|
|
<PyVPath Condition="$(Configuration) == 'PGInstrument'">..\\..\\..</PyVPath>
|
2023-02-03 14:08:34 -04:00
|
|
|
</PropertyGroup>
|
2021-12-10 13:13:55 -04:00
|
|
|
|
2023-02-03 14:08:34 -04:00
|
|
|
<!-- Directories of external projects. tcltk is handled in tcltk.props -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<ExternalsDir Condition="$(ExternalsDir) == ''">$(EXTERNALS_DIR)</ExternalsDir>
|
2018-02-17 22:59:03 -04:00
|
|
|
<ExternalsDir Condition="$(ExternalsDir) == ''">$([System.IO.Path]::GetFullPath(`$(PySourcePath)externals`))</ExternalsDir>
|
|
|
|
<ExternalsDir Condition="!HasTrailingSlash($(ExternalsDir))">$(ExternalsDir)\</ExternalsDir>
|
2023-02-03 14:08:34 -04:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<Import Project="$(ExternalProps)" Condition="$(ExternalProps) != '' and Exists('$(ExternalProps)')" />
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2024-04-16 19:10:05 -03:00
|
|
|
<sqlite3Dir Condition="$(sqlite3Dir) == ''">$(ExternalsDir)sqlite-3.45.3.0\</sqlite3Dir>
|
2023-02-03 14:08:34 -04:00
|
|
|
<bz2Dir Condition="$(bz2Dir) == ''">$(ExternalsDir)bzip2-1.0.8\</bz2Dir>
|
|
|
|
<lzmaDir Condition="$(lzmaDir) == ''">$(ExternalsDir)xz-5.2.5\</lzmaDir>
|
2023-02-10 12:57:30 -04:00
|
|
|
<libffiDir Condition="$(libffiDir) == ''">$(ExternalsDir)libffi-3.4.4\</libffiDir>
|
2023-02-03 14:08:34 -04:00
|
|
|
<libffiOutDir Condition="$(libffiOutDir) == ''">$(libffiDir)$(ArchName)\</libffiOutDir>
|
|
|
|
<libffiIncludeDir Condition="$(libffiIncludeDir) == ''">$(libffiOutDir)include</libffiIncludeDir>
|
2024-05-03 13:00:43 -03:00
|
|
|
<mpdecimalDir Condition="$(mpdecimalDir) == ''">$(ExternalsDir)\mpdecimal-4.0.0\</mpdecimalDir>
|
2024-02-05 19:10:55 -04:00
|
|
|
<opensslDir Condition="$(opensslDir) == ''">$(ExternalsDir)openssl-3.0.13\</opensslDir>
|
|
|
|
<opensslOutDir Condition="$(opensslOutDir) == ''">$(ExternalsDir)openssl-bin-3.0.13\$(ArchName)\</opensslOutDir>
|
2023-02-03 14:08:34 -04:00
|
|
|
<opensslIncludeDir Condition="$(opensslIncludeDir) == ''">$(opensslOutDir)include</opensslIncludeDir>
|
|
|
|
<nasmDir Condition="$(nasmDir) == ''">$(ExternalsDir)\nasm-2.11.06\</nasmDir>
|
2024-02-01 19:54:02 -04:00
|
|
|
<zlibDir Condition="$(zlibDir) == ''">$(ExternalsDir)\zlib-1.3.1\</zlibDir>
|
2023-02-03 14:08:34 -04:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2014-11-22 16:54:57 -04:00
|
|
|
<!-- Suffix for all binaries when building for debug -->
|
|
|
|
<PyDebugExt Condition="'$(PyDebugExt)' == '' and $(Configuration) == 'Debug'">_d</PyDebugExt>
|
2024-01-17 17:52:23 -04:00
|
|
|
|
2015-10-31 16:17:11 -03:00
|
|
|
<!-- Suffix for versions/keys when building with test markers -->
|
|
|
|
<PyTestExt Condition="$(UseTestMarker) == 'true'">-test</PyTestExt>
|
2024-01-17 17:52:23 -04:00
|
|
|
|
2015-10-31 16:17:11 -03:00
|
|
|
<!-- Suffix for versions/keys when building for particular platforms -->
|
|
|
|
<PyArchExt Condition="'$(ArchName)' == 'win32'">-32</PyArchExt>
|
2019-02-14 12:31:30 -04:00
|
|
|
<PyArchExt Condition="'$(ArchName)' == 'arm32'">-arm32</PyArchExt>
|
2019-05-17 14:07:24 -03:00
|
|
|
<PyArchExt Condition="'$(ArchName)' == 'arm64'">-arm64</PyArchExt>
|
2019-06-19 17:07:23 -03:00
|
|
|
|
|
|
|
<!-- Include Tkinter by default -->
|
|
|
|
<IncludeTkinter Condition="'$(IncludeTkinter)' == ''">true</IncludeTkinter>
|
2015-07-09 00:18:44 -03:00
|
|
|
</PropertyGroup>
|
2024-01-17 17:52:23 -04:00
|
|
|
|
2019-02-14 12:31:30 -04:00
|
|
|
<PropertyGroup Condition="'$(Platform)'=='ARM'" Label="ArmConfiguration">
|
|
|
|
<WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2019-05-17 14:07:24 -03:00
|
|
|
<PropertyGroup Condition="'$(Platform)'=='ARM64'" Label="Arm64Configuration">
|
|
|
|
<WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2017-05-23 20:25:25 -03:00
|
|
|
<PropertyGroup Condition="$(DefaultWindowsSDKVersion) == ''">
|
|
|
|
<!--
|
|
|
|
Attempt to select the latest installed WinSDK. If we don't find any, then we will
|
|
|
|
let the MSBuild targets determine which one it wants to use (typically the earliest
|
|
|
|
possible version). Since we limit WINVER to Windows 7 anyway, it doesn't really
|
|
|
|
matter which WinSDK version we use.
|
|
|
|
-->
|
2017-11-06 16:52:09 -04:00
|
|
|
<_RegistryVersion>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion>
|
2019-03-21 14:52:57 -03:00
|
|
|
<_RegistryVersion Condition="$(_RegistryVersion) == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion>
|
2018-12-09 23:59:32 -04:00
|
|
|
<!-- Sometimes the version in the registry has to .0 suffix, and sometimes it doesn't. Check and add it -->
|
|
|
|
<_RegistryVersion Condition="$(_RegistryVersion) != '' and !$(_RegistryVersion.EndsWith('.0'))">$(_RegistryVersion).0</_RegistryVersion>
|
|
|
|
|
|
|
|
<!-- The minimum allowed SDK version to use for building -->
|
|
|
|
<DefaultWindowsSDKVersion>10.0.10586.0</DefaultWindowsSDKVersion>
|
2021-06-19 09:45:16 -03:00
|
|
|
<DefaultWindowsSDKVersion Condition="$(_RegistryVersion) != '' and $([System.Version]::Parse($(_RegistryVersion))) > $([System.Version]::Parse($(DefaultWindowsSDKVersion)))">$(_RegistryVersion)</DefaultWindowsSDKVersion>
|
2017-05-23 20:25:25 -03:00
|
|
|
</PropertyGroup>
|
2021-06-19 09:45:16 -03:00
|
|
|
|
|
|
|
<Target Name="_CheckWindowsSDKFound" BeforeTargets="_CheckWindowsSDKInstalled" Condition="$(_RegistryVersion) == ''">
|
|
|
|
<PropertyGroup>
|
|
|
|
<_Message>Failed to locate a Windows SDK installation.</_Message>
|
|
|
|
<_Message>$(_Message) If the build fails, please use the Visual Studio Installer to install the Windows SDK.</_Message>
|
|
|
|
<_Message>$(_Message) (Ignore the version number specified in the error message and select the latest.)</_Message>
|
|
|
|
</PropertyGroup>
|
|
|
|
<Warning Text="$(_Message)" />
|
|
|
|
</Target>
|
|
|
|
|
2018-12-09 23:59:32 -04:00
|
|
|
<PropertyGroup Condition="$(WindowsTargetPlatformVersion) == ''">
|
|
|
|
<WindowsTargetPlatformVersion>$(DefaultWindowsSDKVersion)</WindowsTargetPlatformVersion>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2015-07-09 00:18:44 -03:00
|
|
|
<PropertyGroup Condition="'$(OverrideVersion)' == ''">
|
2014-11-22 16:54:57 -04:00
|
|
|
<!--
|
|
|
|
Read version information from Include\patchlevel.h. The following properties are set:
|
2024-01-17 17:52:23 -04:00
|
|
|
|
2014-11-22 16:54:57 -04:00
|
|
|
MajorVersionNumber - the '3' in '3.5.2a1'
|
|
|
|
MinorVersionNumber - the '5' in '3.5.2a1'
|
|
|
|
MicroVersionNumber - the '2' in '3.5.2a1'
|
|
|
|
ReleaseSerial - the '1' in '3.5.2a1'
|
|
|
|
ReleaseLevelName - the 'a1' in '3.5.2a1'
|
|
|
|
PythonVersionNumber - '3.5.2' for '3.5.2a1'
|
|
|
|
PythonVersion - '3.5.2a1'
|
|
|
|
PythonVersionHex - 0x030502a1 for '3.5.2a1'
|
|
|
|
ReleaseLevelNumber - 10 for alpha, 11 for beta, 12 for RC (gamma), and 15 for final
|
|
|
|
Field3Value - 2101 for '3.5.2a1' (== 1000*2 + 10*10 ('a') + 1)
|
|
|
|
-->
|
|
|
|
<_PatchLevelContent>$([System.IO.File]::ReadAllText(`$(PySourcePath)Include\patchlevel.h`))</_PatchLevelContent>
|
|
|
|
<MajorVersionNumber>$([System.Text.RegularExpressions.Regex]::Match($(_PatchLevelContent), `define\s+PY_MAJOR_VERSION\s+(\d+)`).Groups[1].Value)</MajorVersionNumber>
|
|
|
|
<MinorVersionNumber>$([System.Text.RegularExpressions.Regex]::Match($(_PatchLevelContent), `define\s+PY_MINOR_VERSION\s+(\d+)`).Groups[1].Value)</MinorVersionNumber>
|
|
|
|
<MicroVersionNumber>$([System.Text.RegularExpressions.Regex]::Match($(_PatchLevelContent), `define\s+PY_MICRO_VERSION\s+(\d+)`).Groups[1].Value)</MicroVersionNumber>
|
|
|
|
<_ReleaseLevel>$([System.Text.RegularExpressions.Regex]::Match($(_PatchLevelContent), `define\s+PY_RELEASE_LEVEL\s+PY_RELEASE_LEVEL_(\w+)`).Groups[1].Value)</_ReleaseLevel>
|
|
|
|
<ReleaseSerial>$([System.Text.RegularExpressions.Regex]::Match($(_PatchLevelContent), `define\s+PY_RELEASE_SERIAL\s+(\d+)`).Groups[1].Value)</ReleaseSerial>
|
|
|
|
<ReleaseLevelNumber>15</ReleaseLevelNumber>
|
|
|
|
<ReleaseLevelNumber Condition="$(_ReleaseLevel) == 'ALPHA'">10</ReleaseLevelNumber>
|
|
|
|
<ReleaseLevelNumber Condition="$(_ReleaseLevel) == 'BETA'">11</ReleaseLevelNumber>
|
|
|
|
<ReleaseLevelNumber Condition="$(_ReleaseLevel) == 'GAMMA'">12</ReleaseLevelNumber>
|
|
|
|
<ReleaseLevelName Condition="$(_ReleaseLevel) == 'ALPHA'">a$(ReleaseSerial)</ReleaseLevelName>
|
|
|
|
<ReleaseLevelName Condition="$(_ReleaseLevel) == 'BETA'">b$(ReleaseSerial)</ReleaseLevelName>
|
|
|
|
<ReleaseLevelName Condition="$(_ReleaseLevel) == 'GAMMA'">rc$(ReleaseSerial)</ReleaseLevelName>
|
2015-07-09 00:18:44 -03:00
|
|
|
</PropertyGroup>
|
2024-01-17 17:52:23 -04:00
|
|
|
|
2015-07-09 00:18:44 -03:00
|
|
|
<PropertyGroup Condition="'$(OverrideVersion)' != ''">
|
|
|
|
<!--
|
|
|
|
Override the version number when building by specifying OverrideVersion.
|
|
|
|
For example:
|
2024-01-17 17:52:23 -04:00
|
|
|
|
2017-09-25 13:58:10 -03:00
|
|
|
PCbuild\build.bat "/p:OverrideVersion=3.5.2a1"
|
2024-01-17 17:52:23 -04:00
|
|
|
|
2015-07-09 00:18:44 -03:00
|
|
|
Use the -V option to check your version is valid:
|
2024-01-17 17:52:23 -04:00
|
|
|
|
2017-09-25 13:58:10 -03:00
|
|
|
PCbuild\build.bat -V "/p:OverrideVersion=3.5.2a1"
|
2015-07-09 00:18:44 -03:00
|
|
|
PythonVersionNumber: 3.5.2
|
|
|
|
PythonVersion: 3.5.2a1
|
|
|
|
PythonVersionHex: 0x030502A1
|
|
|
|
Field3Value: 2101
|
2024-01-17 17:52:23 -04:00
|
|
|
|
2015-07-09 00:18:44 -03:00
|
|
|
Note that this only affects the version numbers embedded in resources and
|
|
|
|
installers, but not sys.version.
|
|
|
|
-->
|
|
|
|
<MajorVersionNumber>$([System.Text.RegularExpressions.Regex]::Match($(OverrideVersion), `(\d+)\.(\d+)\.(\d+)((a|b|rc)(\d))?`).Groups[1].Value)</MajorVersionNumber>
|
|
|
|
<MinorVersionNumber>$([System.Text.RegularExpressions.Regex]::Match($(OverrideVersion), `(\d+)\.(\d+)\.(\d+)((a|b|rc)(\d))?`).Groups[2].Value)</MinorVersionNumber>
|
|
|
|
<MicroVersionNumber>$([System.Text.RegularExpressions.Regex]::Match($(OverrideVersion), `(\d+)\.(\d+)\.(\d+)((a|b|rc)(\d))?`).Groups[3].Value)</MicroVersionNumber>
|
|
|
|
<ReleaseLevelName>$([System.Text.RegularExpressions.Regex]::Match($(OverrideVersion), `(\d+)\.(\d+)\.(\d+)((a|b|rc)(\d))?`).Groups[4].Value)</ReleaseLevelName>
|
|
|
|
<_ReleaseLevel>$([System.Text.RegularExpressions.Regex]::Match($(OverrideVersion), `(\d+)\.(\d+)\.(\d+)((a|b|rc)(\d))?`).Groups[5].Value)</_ReleaseLevel>
|
|
|
|
<ReleaseSerial>$([System.Text.RegularExpressions.Regex]::Match($(OverrideVersion), `(\d+)\.(\d+)\.(\d+)((a|b|rc)(\d))?`).Groups[6].Value)</ReleaseSerial>
|
|
|
|
<ReleaseSerial Condition="'$(ReleaseSerial)' == ''">0</ReleaseSerial>
|
|
|
|
<ReleaseLevelNumber>15</ReleaseLevelNumber>
|
|
|
|
<ReleaseLevelNumber Condition="$(_ReleaseLevel) == 'a'">10</ReleaseLevelNumber>
|
|
|
|
<ReleaseLevelNumber Condition="$(_ReleaseLevel) == 'b'">11</ReleaseLevelNumber>
|
|
|
|
<ReleaseLevelNumber Condition="$(_ReleaseLevel) == 'rc'">12</ReleaseLevelNumber>
|
|
|
|
</PropertyGroup>
|
2021-06-19 09:45:16 -03:00
|
|
|
|
2015-07-09 00:18:44 -03:00
|
|
|
<PropertyGroup>
|
2014-11-22 16:54:57 -04:00
|
|
|
<PythonVersionNumber>$(MajorVersionNumber).$(MinorVersionNumber).$(MicroVersionNumber)</PythonVersionNumber>
|
|
|
|
<PythonVersion>$(MajorVersionNumber).$(MinorVersionNumber).$(MicroVersionNumber)$(ReleaseLevelName)</PythonVersion>
|
|
|
|
<PythonVersionHex>$([msbuild]::BitwiseOr(
|
|
|
|
$([msbuild]::Multiply($(MajorVersionNumber), 16777216)),
|
|
|
|
$([msbuild]::BitwiseOr(
|
|
|
|
$([msbuild]::Multiply($(MinorVersionNumber), 65536)),
|
|
|
|
$([msbuild]::BitwiseOr(
|
|
|
|
$([msbuild]::Multiply($(MicroVersionNumber), 256)),
|
|
|
|
$([msbuild]::BitwiseOr(
|
|
|
|
$([msbuild]::Multiply($(ReleaseLevelNumber), 16)),
|
|
|
|
$(ReleaseSerial)
|
|
|
|
))
|
|
|
|
))
|
|
|
|
))
|
|
|
|
))</PythonVersionHex>
|
|
|
|
<Field3Value>$([msbuild]::Add(
|
|
|
|
$(ReleaseSerial),
|
|
|
|
$([msbuild]::Add(
|
|
|
|
$([msbuild]::Multiply($(ReleaseLevelNumber), 10)),
|
|
|
|
$([msbuild]::Multiply($(MicroVersionNumber), 1000))
|
|
|
|
))
|
|
|
|
))</Field3Value>
|
2015-10-31 16:17:11 -03:00
|
|
|
<Field3Value Condition="$(UseTestMarker) == 'true'">$([msbuild]::Add($(Field3Value), 9000))</Field3Value>
|
2024-01-17 17:52:23 -04:00
|
|
|
|
|
|
|
<!-- Name and full path of the resulting python.exe binary -->
|
|
|
|
<PyExeName Condition="$(DisableGil) == 'true'">python$(MajorVersionNumber).$(MinorVersionNumber)t</PyExeName>
|
|
|
|
<PyExeName Condition="$(PyExeName) == ''">python</PyExeName>
|
|
|
|
<PythonExe Condition="'$(PythonExe)' == ''">$(BuildPath)$(PyExeName)$(PyDebugExt).exe</PythonExe>
|
|
|
|
<PyWExeName Condition="$(DisableGil) == 'true'">pythonw$(MajorVersionNumber).$(MinorVersionNumber)t</PyWExeName>
|
|
|
|
<PyWExeName Condition="$(PyWExeName) == ''">pythonw</PyWExeName>
|
|
|
|
|
2014-11-22 16:54:57 -04:00
|
|
|
<!-- The name of the resulting pythonXY.dll (without the extension) -->
|
2024-01-17 17:52:23 -04:00
|
|
|
<PyDllName Condition="$(DisableGil) == 'true'">python$(MajorVersionNumber)$(MinorVersionNumber)t$(PyDebugExt)</PyDllName>
|
|
|
|
<PyDllName Condition="$(PyDllName) == ''">python$(MajorVersionNumber)$(MinorVersionNumber)$(PyDebugExt)</PyDllName>
|
2020-07-06 13:32:00 -03:00
|
|
|
<!-- The name of the resulting pythonX.dll (without the extension) -->
|
2024-01-17 17:52:23 -04:00
|
|
|
<Py3DllName Condition="$(DisableGil) == 'true'">python3t</Py3DllName>
|
|
|
|
<Py3DllName Condition="$(Py3DllName) == ''">python3</Py3DllName>
|
2014-12-16 00:45:23 -04:00
|
|
|
|
|
|
|
<!-- The version and platform tag to include in .pyd filenames -->
|
2015-10-31 16:17:11 -03:00
|
|
|
<PydTag Condition="$(ArchName) == 'win32'">.cp$(MajorVersionNumber)$(MinorVersionNumber)-win32</PydTag>
|
2019-02-14 12:31:30 -04:00
|
|
|
<PydTag Condition="$(ArchName) == 'arm32'">.cp$(MajorVersionNumber)$(MinorVersionNumber)-win_arm32</PydTag>
|
2019-05-17 14:07:24 -03:00
|
|
|
<PydTag Condition="$(ArchName) == 'arm64'">.cp$(MajorVersionNumber)$(MinorVersionNumber)-win_arm64</PydTag>
|
2015-10-31 16:17:11 -03:00
|
|
|
<PydTag Condition="$(ArchName) == 'amd64'">.cp$(MajorVersionNumber)$(MinorVersionNumber)-win_amd64</PydTag>
|
2024-01-17 17:52:23 -04:00
|
|
|
|
2015-01-15 13:10:16 -04:00
|
|
|
<!-- The version number for sys.winver -->
|
2015-10-31 16:17:11 -03:00
|
|
|
<SysWinVer>$(MajorVersionNumber).$(MinorVersionNumber)$(PyArchExt)$(PyTestExt)</SysWinVer>
|
2024-01-17 17:52:23 -04:00
|
|
|
|
|
|
|
<!-- The version and platform tag to include in .pyd filenames for freethreaded builds -->
|
|
|
|
<FreethreadedPydTag Condition="$(ArchName) == 'win32'">.cp$(MajorVersionNumber)$(MinorVersionNumber)t-win32</FreethreadedPydTag>
|
|
|
|
<FreethreadedPydTag Condition="$(ArchName) == 'arm32'">.cp$(MajorVersionNumber)$(MinorVersionNumber)t-win_arm32</FreethreadedPydTag>
|
|
|
|
<FreethreadedPydTag Condition="$(ArchName) == 'arm64'">.cp$(MajorVersionNumber)$(MinorVersionNumber)t-win_arm64</FreethreadedPydTag>
|
|
|
|
<FreethreadedPydTag Condition="$(ArchName) == 'amd64'">.cp$(MajorVersionNumber)$(MinorVersionNumber)t-win_amd64</FreethreadedPydTag>
|
|
|
|
|
|
|
|
<!-- The version number for sys.winver for freethreaded builds -->
|
|
|
|
<FreethreadedSysWinVer>$(MajorVersionNumber).$(MinorVersionNumber)t$(PyArchExt)$(PyTestExt)</FreethreadedSysWinVer>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup Condition="$(DisableGil) != 'true'">
|
|
|
|
<!-- The extension to use for standard library PYDs -->
|
|
|
|
<PyStdlibPydExt>.pyd</PyStdlibPydExt>
|
2014-11-22 16:54:57 -04:00
|
|
|
</PropertyGroup>
|
2024-01-17 17:52:23 -04:00
|
|
|
|
|
|
|
<PropertyGroup Condition="$(DisableGil) == 'true'">
|
|
|
|
<PydTag>$(FreethreadedPydTag)</PydTag>
|
|
|
|
|
|
|
|
<!-- The extension to use for standard library PYDs -->
|
|
|
|
<PyStdlibPydExt>$(PydTag).pyd</PyStdlibPydExt>
|
|
|
|
|
|
|
|
<!-- The version number for sys.winver -->
|
|
|
|
<SysWinVer>$(FreethreadedSysWinVer)</SysWinVer>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2014-11-22 16:54:57 -04:00
|
|
|
<!-- Displays the calculated version info -->
|
|
|
|
<Target Name="ShowVersionInfo">
|
|
|
|
<Message Importance="high" Text="PythonVersionNumber: $(PythonVersionNumber)" />
|
|
|
|
<Message Importance="high" Text="PythonVersion: $(PythonVersion)" />
|
2015-07-09 00:18:44 -03:00
|
|
|
<Message Importance="high" Text="PythonVersionHex: 0x$([System.UInt32]::Parse($(PythonVersionHex)).ToString(`X08`))" />
|
2019-06-14 12:29:20 -03:00
|
|
|
<Message Importance="high" Text="PythonVersionUnique: $(MajorVersionNumber).$(MinorVersionNumber).$(Field3Value)" />
|
2014-11-22 16:54:57 -04:00
|
|
|
<Message Importance="high" Text="Field3Value: $(Field3Value)" />
|
2015-10-31 16:17:11 -03:00
|
|
|
<Message Importance="high" Text="SysWinVer: $(SysWinVer)" />
|
|
|
|
<Message Importance="high" Text="PyDllName: $(PyDllName)" />
|
2018-12-09 23:59:32 -04:00
|
|
|
<Message Importance="high" Text="WindowsSdkVersion: $(TargetPlatformVersion)" />
|
2014-11-22 16:54:57 -04:00
|
|
|
</Target>
|
|
|
|
</Project>
|