Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 856bf9a

Browse files
committed
Add build support for AMD64.
1 parent cffcfed commit 856bf9a

21 files changed

Lines changed: 933 additions & 21 deletions

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,8 @@ Library
699699
Build
700700
-----
701701

702+
- Build support for Win64-AMD64 was added.
703+
702704
- Patch #1428494: Prefer linking against ncursesw over ncurses library.
703705

704706
- Patch #881820: look for openpty and forkpty also in libbsd.

PCbuild/_bsddb.vcproj

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,68 @@
183183
<Tool
184184
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
185185
</Configuration>
186+
<Configuration
187+
Name="ReleaseAMD64|Win32"
188+
OutputDirectory="."
189+
IntermediateDirectory="amd64-temp-release\_bsddb"
190+
ConfigurationType="2"
191+
UseOfMFC="0"
192+
ATLMinimizesCRunTimeLibraryUsage="FALSE">
193+
<Tool
194+
Name="VCCLCompilerTool"
195+
AdditionalOptions=" /USECL:MS_OPTERON"
196+
Optimization="2"
197+
InlineFunctionExpansion="1"
198+
AdditionalIncludeDirectories="{MSSDKPATH}\include\Win64\atl\amd64;{MSSDKPATH}\include\Win64\crt\amd64;{MSSDKPATH}\include\Win64\crt\amd64\sys;{MSSDKPATH}\include\Win64\mfc\amd64;..\Include;..\PC;&quot;..\..\db-4.2.52\build_win32&quot;"
199+
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS"
200+
StringPooling="TRUE"
201+
BasicRuntimeChecks="0"
202+
RuntimeLibrary="2"
203+
BufferSecurityCheck="FALSE"
204+
EnableFunctionLevelLinking="TRUE"
205+
UsePrecompiledHeader="2"
206+
WarningLevel="3"
207+
SuppressStartupBanner="TRUE"
208+
Detect64BitPortabilityProblems="TRUE"
209+
DebugInformationFormat="3"
210+
CompileAs="0"/>
211+
<Tool
212+
Name="VCCustomBuildTool"/>
213+
<Tool
214+
Name="VCLinkerTool"
215+
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
216+
AdditionalDependencies="..\..\db-4.2.52\build_win32\Release_static\libdb42s.lib"
217+
OutputFile="./_bsddb.pyd"
218+
LinkIncremental="1"
219+
SuppressStartupBanner="TRUE"
220+
IgnoreDefaultLibraryNames="msvcrt"
221+
GenerateDebugInformation="TRUE"
222+
ProgramDatabaseFile=".\./_bsddb.pdb"
223+
SubSystem="2"
224+
BaseAddress="0x1e180000"
225+
ImportLibrary=".\./_bsddb.lib"
226+
TargetMachine="0"/>
227+
<Tool
228+
Name="VCMIDLTool"/>
229+
<Tool
230+
Name="VCPostBuildEventTool"/>
231+
<Tool
232+
Name="VCPreBuildEventTool"/>
233+
<Tool
234+
Name="VCPreLinkEventTool"/>
235+
<Tool
236+
Name="VCResourceCompilerTool"/>
237+
<Tool
238+
Name="VCWebServiceProxyGeneratorTool"/>
239+
<Tool
240+
Name="VCXMLDataGeneratorTool"/>
241+
<Tool
242+
Name="VCWebDeploymentTool"/>
243+
<Tool
244+
Name="VCManagedWrapperGeneratorTool"/>
245+
<Tool
246+
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
247+
</Configuration>
186248
</Configurations>
187249
<References>
188250
</References>

PCbuild/_elementtree.vcproj

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,67 @@
181181
<Tool
182182
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
183183
</Configuration>
184+
<Configuration
185+
Name="ReleaseAMD64|Win32"
186+
OutputDirectory="."
187+
IntermediateDirectory="amd64-temp-release\_elementtree"
188+
ConfigurationType="2"
189+
UseOfMFC="0"
190+
ATLMinimizesCRunTimeLibraryUsage="FALSE">
191+
<Tool
192+
Name="VCCLCompilerTool"
193+
AdditionalOptions=" /USECL:MS_OPTERON"
194+
Optimization="2"
195+
InlineFunctionExpansion="1"
196+
AdditionalIncludeDirectories="{MSSDKPATH}\include\Win64\atl\amd64;{MSSDKPATH}\include\Win64\crt\amd64;{MSSDKPATH}\include\Win64\crt\amd64\sys;{MSSDKPATH}\include\Win64\mfc\amd64;..\Include,..\PC,..\Modules\expat"
197+
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE"
198+
StringPooling="TRUE"
199+
BasicRuntimeChecks="0"
200+
RuntimeLibrary="2"
201+
BufferSecurityCheck="FALSE"
202+
EnableFunctionLevelLinking="TRUE"
203+
UsePrecompiledHeader="2"
204+
WarningLevel="3"
205+
SuppressStartupBanner="TRUE"
206+
Detect64BitPortabilityProblems="TRUE"
207+
DebugInformationFormat="3"
208+
CompileAs="0"/>
209+
<Tool
210+
Name="VCCustomBuildTool"/>
211+
<Tool
212+
Name="VCLinkerTool"
213+
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
214+
AdditionalDependencies="odbccp32.lib"
215+
OutputFile="./_elementtree.pyd"
216+
LinkIncremental="1"
217+
SuppressStartupBanner="TRUE"
218+
GenerateDebugInformation="TRUE"
219+
ProgramDatabaseFile=".\./_elementtree.pdb"
220+
SubSystem="2"
221+
BaseAddress="0x1D100000"
222+
ImportLibrary=".\./_elementtree.lib"
223+
TargetMachine="0"/>
224+
<Tool
225+
Name="VCMIDLTool"/>
226+
<Tool
227+
Name="VCPostBuildEventTool"/>
228+
<Tool
229+
Name="VCPreBuildEventTool"/>
230+
<Tool
231+
Name="VCPreLinkEventTool"/>
232+
<Tool
233+
Name="VCResourceCompilerTool"/>
234+
<Tool
235+
Name="VCWebServiceProxyGeneratorTool"/>
236+
<Tool
237+
Name="VCXMLDataGeneratorTool"/>
238+
<Tool
239+
Name="VCWebDeploymentTool"/>
240+
<Tool
241+
Name="VCManagedWrapperGeneratorTool"/>
242+
<Tool
243+
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
244+
</Configuration>
184245
</Configurations>
185246
<References>
186247
</References>

PCbuild/_socket.vcproj

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,67 @@
180180
<Tool
181181
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
182182
</Configuration>
183+
<Configuration
184+
Name="ReleaseAMD64|Win32"
185+
OutputDirectory="."
186+
IntermediateDirectory="amd64-temp-release\_socket"
187+
ConfigurationType="2"
188+
UseOfMFC="0"
189+
ATLMinimizesCRunTimeLibraryUsage="FALSE">
190+
<Tool
191+
Name="VCCLCompilerTool"
192+
AdditionalOptions=" /USECL:MS_OPTERON"
193+
Optimization="2"
194+
InlineFunctionExpansion="1"
195+
AdditionalIncludeDirectories="{MSSDKPATH}\include\Win64\atl\amd64;{MSSDKPATH}\include\Win64\crt\amd64;{MSSDKPATH}\include\Win64\crt\amd64\sys;{MSSDKPATH}\include\Win64\mfc\amd64;..\Include,..\PC"
196+
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS"
197+
StringPooling="TRUE"
198+
BasicRuntimeChecks="0"
199+
RuntimeLibrary="2"
200+
BufferSecurityCheck="FALSE"
201+
EnableFunctionLevelLinking="TRUE"
202+
UsePrecompiledHeader="2"
203+
WarningLevel="3"
204+
SuppressStartupBanner="TRUE"
205+
Detect64BitPortabilityProblems="TRUE"
206+
DebugInformationFormat="3"
207+
CompileAs="0"/>
208+
<Tool
209+
Name="VCCustomBuildTool"/>
210+
<Tool
211+
Name="VCLinkerTool"
212+
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
213+
AdditionalDependencies="ws2_32.lib"
214+
OutputFile="./_socket.pyd"
215+
LinkIncremental="1"
216+
SuppressStartupBanner="TRUE"
217+
GenerateDebugInformation="TRUE"
218+
ProgramDatabaseFile=".\./_socket.pdb"
219+
SubSystem="2"
220+
BaseAddress="0x1e1D0000"
221+
ImportLibrary=".\./_socket.lib"
222+
TargetMachine="0"/>
223+
<Tool
224+
Name="VCMIDLTool"/>
225+
<Tool
226+
Name="VCPostBuildEventTool"/>
227+
<Tool
228+
Name="VCPreBuildEventTool"/>
229+
<Tool
230+
Name="VCPreLinkEventTool"/>
231+
<Tool
232+
Name="VCResourceCompilerTool"/>
233+
<Tool
234+
Name="VCWebServiceProxyGeneratorTool"/>
235+
<Tool
236+
Name="VCXMLDataGeneratorTool"/>
237+
<Tool
238+
Name="VCWebDeploymentTool"/>
239+
<Tool
240+
Name="VCManagedWrapperGeneratorTool"/>
241+
<Tool
242+
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
243+
</Configuration>
183244
</Configurations>
184245
<References>
185246
</References>

PCbuild/_ssl.vcproj

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@
5050
ReBuildCommandLine="python build_ssl.py -a"
5151
Output="_ssl.pyd"/>
5252
</Configuration>
53+
<Configuration
54+
Name="ReleaseAMD64|Win32"
55+
OutputDirectory="."
56+
IntermediateDirectory="amd64-temp-release\_ssl"
57+
ConfigurationType="0"
58+
UseOfMFC="0"
59+
ATLMinimizesCRunTimeLibraryUsage="FALSE">
60+
<Tool
61+
Name="VCNMakeTool"
62+
BuildCommandLine="python build_ssl.py"
63+
ReBuildCommandLine="python build_ssl.py -a"
64+
Output="_ssl.pyd"/>
65+
</Configuration>
5366
</Configurations>
5467
<References>
5568
</References>

PCbuild/_testcapi.vcproj

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,65 @@
175175
<Tool
176176
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
177177
</Configuration>
178+
<Configuration
179+
Name="ReleaseAMD64|Win32"
180+
OutputDirectory="."
181+
IntermediateDirectory="amd64-temp-release\_testcapi"
182+
ConfigurationType="2"
183+
UseOfMFC="0"
184+
ATLMinimizesCRunTimeLibraryUsage="FALSE"
185+
CharacterSet="2">
186+
<Tool
187+
Name="VCCLCompilerTool"
188+
AdditionalOptions=" /USECL:MS_OPTERON"
189+
Optimization="2"
190+
InlineFunctionExpansion="1"
191+
AdditionalIncludeDirectories="{MSSDKPATH}\include\Win64\atl\amd64;{MSSDKPATH}\include\Win64\crt\amd64;{MSSDKPATH}\include\Win64\crt\amd64\sys;{MSSDKPATH}\include\Win64\mfc\amd64;..\Include,..\PC"
192+
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;MMAP_EXPORTS"
193+
StringPooling="TRUE"
194+
BasicRuntimeChecks="0"
195+
RuntimeLibrary="2"
196+
BufferSecurityCheck="FALSE"
197+
EnableFunctionLevelLinking="TRUE"
198+
UsePrecompiledHeader="2"
199+
WarningLevel="3"
200+
SuppressStartupBanner="TRUE"
201+
Detect64BitPortabilityProblems="TRUE"
202+
DebugInformationFormat="3"
203+
CompileAs="0"/>
204+
<Tool
205+
Name="VCCustomBuildTool"/>
206+
<Tool
207+
Name="VCLinkerTool"
208+
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
209+
OutputFile="./_testcapi.pyd"
210+
LinkIncremental="1"
211+
SuppressStartupBanner="TRUE"
212+
ProgramDatabaseFile=".\./_testcapi.pdb"
213+
BaseAddress="0x1e1F0000"
214+
ImportLibrary=".\./_testcapi.lib"
215+
TargetMachine="0"/>
216+
<Tool
217+
Name="VCMIDLTool"/>
218+
<Tool
219+
Name="VCPostBuildEventTool"/>
220+
<Tool
221+
Name="VCPreBuildEventTool"/>
222+
<Tool
223+
Name="VCPreLinkEventTool"/>
224+
<Tool
225+
Name="VCResourceCompilerTool"/>
226+
<Tool
227+
Name="VCWebServiceProxyGeneratorTool"/>
228+
<Tool
229+
Name="VCXMLDataGeneratorTool"/>
230+
<Tool
231+
Name="VCWebDeploymentTool"/>
232+
<Tool
233+
Name="VCManagedWrapperGeneratorTool"/>
234+
<Tool
235+
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
236+
</Configuration>
178237
</Configurations>
179238
<References>
180239
</References>

PCbuild/_tkinter.vcproj

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,68 @@
183183
<Tool
184184
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
185185
</Configuration>
186+
<Configuration
187+
Name="ReleaseAMD64|Win32"
188+
OutputDirectory="."
189+
IntermediateDirectory="amd64-temp-release\_tkinter"
190+
ConfigurationType="2"
191+
UseOfMFC="0"
192+
ATLMinimizesCRunTimeLibraryUsage="FALSE">
193+
<Tool
194+
Name="VCCLCompilerTool"
195+
AdditionalOptions=" /USECL:MS_OPTERON"
196+
Optimization="2"
197+
InlineFunctionExpansion="1"
198+
AdditionalIncludeDirectories="{MSSDKPATH}\include\Win64\atl\amd64;{MSSDKPATH}\include\Win64\crt\amd64;{MSSDKPATH}\include\Win64\crt\amd64\sys;{MSSDKPATH}\include\Win64\mfc\amd64;..\..\tcltk\include,..\Include,..\PC"
199+
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;WITH_APPINIT"
200+
StringPooling="TRUE"
201+
BasicRuntimeChecks="0"
202+
RuntimeLibrary="2"
203+
BufferSecurityCheck="FALSE"
204+
EnableFunctionLevelLinking="TRUE"
205+
UsePrecompiledHeader="2"
206+
WarningLevel="3"
207+
SuppressStartupBanner="TRUE"
208+
Detect64BitPortabilityProblems="TRUE"
209+
DebugInformationFormat="3"
210+
CompileAs="0"/>
211+
<Tool
212+
Name="VCCustomBuildTool"/>
213+
<Tool
214+
Name="VCLinkerTool"
215+
AdditionalOptions=" /MACHINE:AMD64 /USELINK:MS_SDK"
216+
AdditionalDependencies="..\..\tcltk\lib\tk84.lib ..\..\tcltk\lib\tcl84.lib odbccp32.lib"
217+
OutputFile="./_tkinter.pyd"
218+
LinkIncremental="1"
219+
SuppressStartupBanner="TRUE"
220+
AdditionalLibraryDirectories=""
221+
GenerateDebugInformation="TRUE"
222+
ProgramDatabaseFile=".\./_tkinter.pdb"
223+
SubSystem="2"
224+
BaseAddress="0x1e190000"
225+
ImportLibrary=".\./_tkinter.lib"
226+
TargetMachine="0"/>
227+
<Tool
228+
Name="VCMIDLTool"/>
229+
<Tool
230+
Name="VCPostBuildEventTool"/>
231+
<Tool
232+
Name="VCPreBuildEventTool"/>
233+
<Tool
234+
Name="VCPreLinkEventTool"/>
235+
<Tool
236+
Name="VCResourceCompilerTool"/>
237+
<Tool
238+
Name="VCWebServiceProxyGeneratorTool"/>
239+
<Tool
240+
Name="VCXMLDataGeneratorTool"/>
241+
<Tool
242+
Name="VCWebDeploymentTool"/>
243+
<Tool
244+
Name="VCManagedWrapperGeneratorTool"/>
245+
<Tool
246+
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
247+
</Configuration>
186248
</Configurations>
187249
<References>
188250
</References>

0 commit comments

Comments
 (0)