Skip to content

Commit e97e5a7

Browse files
author
Trent Mick
committed
Add build support for _elementtree on Windows.
1 parent 07f159d commit e97e5a7

File tree

3 files changed

+346
-0
lines changed

3 files changed

+346
-0
lines changed

PCbuild/_elementtree.vcproj

Lines changed: 335 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,335 @@
1+
<?xml version="1.0" encoding="Windows-1252"?>
2+
<VisualStudioProject
3+
ProjectType="Visual C++"
4+
Version="7.10"
5+
Name="_elementtree"
6+
ProjectGUID="{1966DDE2-4AB7-4E4E-ACC9-C121E4D37F8E}"
7+
SccProjectName="_elementtree"
8+
SccLocalPath="..">
9+
<Platforms>
10+
<Platform
11+
Name="Win32"/>
12+
</Platforms>
13+
<Configurations>
14+
<Configuration
15+
Name="Debug|Win32"
16+
OutputDirectory=".\."
17+
IntermediateDirectory=".\x86-temp-debug\_elementtree"
18+
ConfigurationType="2"
19+
UseOfMFC="0"
20+
ATLMinimizesCRunTimeLibraryUsage="FALSE">
21+
<Tool
22+
Name="VCCLCompilerTool"
23+
Optimization="0"
24+
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\expat"
25+
PreprocessorDefinitions="_DEBUG;HAVE_EXPAT_H;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE"
26+
RuntimeLibrary="3"
27+
UsePrecompiledHeader="2"
28+
PrecompiledHeaderFile=".\x86-temp-debug\_elementtree/_elementtree.pch"
29+
AssemblerListingLocation=".\x86-temp-debug\_elementtree/"
30+
ObjectFile=".\x86-temp-debug\_elementtree/"
31+
ProgramDataBaseFileName=".\x86-temp-debug\_elementtree/"
32+
WarningLevel="3"
33+
SuppressStartupBanner="TRUE"
34+
DebugInformationFormat="3"
35+
CompileAs="0"/>
36+
<Tool
37+
Name="VCCustomBuildTool"/>
38+
<Tool
39+
Name="VCLinkerTool"
40+
AdditionalDependencies="odbccp32.lib"
41+
OutputFile="./_elementtree_d.pyd"
42+
LinkIncremental="1"
43+
SuppressStartupBanner="TRUE"
44+
GenerateDebugInformation="TRUE"
45+
ProgramDatabaseFile=".\./_elementtree_d.pdb"
46+
SubSystem="2"
47+
BaseAddress="0x1D100000"
48+
ImportLibrary=".\./_elementtree_d.lib"
49+
TargetMachine="1"/>
50+
<Tool
51+
Name="VCMIDLTool"
52+
PreprocessorDefinitions="_DEBUG"
53+
MkTypLibCompatible="TRUE"
54+
SuppressStartupBanner="TRUE"
55+
TargetEnvironment="1"
56+
TypeLibraryName=".\./_elementtree.tlb"
57+
HeaderFileName=""/>
58+
<Tool
59+
Name="VCPostBuildEventTool"/>
60+
<Tool
61+
Name="VCPreBuildEventTool"/>
62+
<Tool
63+
Name="VCPreLinkEventTool"/>
64+
<Tool
65+
Name="VCResourceCompilerTool"
66+
PreprocessorDefinitions="_DEBUG"
67+
Culture="1033"/>
68+
<Tool
69+
Name="VCWebServiceProxyGeneratorTool"/>
70+
<Tool
71+
Name="VCXMLDataGeneratorTool"/>
72+
<Tool
73+
Name="VCWebDeploymentTool"/>
74+
<Tool
75+
Name="VCManagedWrapperGeneratorTool"/>
76+
<Tool
77+
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
78+
</Configuration>
79+
<Configuration
80+
Name="Release|Win32"
81+
OutputDirectory=".\."
82+
IntermediateDirectory=".\x86-temp-release\_elementtree"
83+
ConfigurationType="2"
84+
UseOfMFC="0"
85+
ATLMinimizesCRunTimeLibraryUsage="FALSE">
86+
<Tool
87+
Name="VCCLCompilerTool"
88+
Optimization="2"
89+
InlineFunctionExpansion="1"
90+
AdditionalIncludeDirectories="..\Include,..\PC,..\Modules\expat"
91+
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE"
92+
StringPooling="TRUE"
93+
RuntimeLibrary="2"
94+
EnableFunctionLevelLinking="TRUE"
95+
UsePrecompiledHeader="2"
96+
PrecompiledHeaderFile=".\x86-temp-release\_elementtree/_elementtree.pch"
97+
AssemblerListingLocation=".\x86-temp-release\_elementtree/"
98+
ObjectFile=".\x86-temp-release\_elementtree/"
99+
ProgramDataBaseFileName=".\x86-temp-release\_elementtree/"
100+
WarningLevel="3"
101+
SuppressStartupBanner="TRUE"
102+
DebugInformationFormat="3"
103+
CompileAs="0"/>
104+
<Tool
105+
Name="VCCustomBuildTool"/>
106+
<Tool
107+
Name="VCLinkerTool"
108+
AdditionalDependencies="odbccp32.lib"
109+
OutputFile="./_elementtree.pyd"
110+
LinkIncremental="1"
111+
SuppressStartupBanner="TRUE"
112+
GenerateDebugInformation="TRUE"
113+
ProgramDatabaseFile=".\./_elementtree.pdb"
114+
SubSystem="2"
115+
BaseAddress="0x1D100000"
116+
ImportLibrary=".\./_elementtree.lib"
117+
TargetMachine="1"/>
118+
<Tool
119+
Name="VCMIDLTool"
120+
PreprocessorDefinitions="NDEBUG"
121+
MkTypLibCompatible="TRUE"
122+
SuppressStartupBanner="TRUE"
123+
TargetEnvironment="1"
124+
TypeLibraryName=".\./_elementtree.tlb"
125+
HeaderFileName=""/>
126+
<Tool
127+
Name="VCPostBuildEventTool"/>
128+
<Tool
129+
Name="VCPreBuildEventTool"/>
130+
<Tool
131+
Name="VCPreLinkEventTool"/>
132+
<Tool
133+
Name="VCResourceCompilerTool"
134+
PreprocessorDefinitions="NDEBUG"
135+
Culture="1033"/>
136+
<Tool
137+
Name="VCWebServiceProxyGeneratorTool"/>
138+
<Tool
139+
Name="VCXMLDataGeneratorTool"/>
140+
<Tool
141+
Name="VCWebDeploymentTool"/>
142+
<Tool
143+
Name="VCManagedWrapperGeneratorTool"/>
144+
<Tool
145+
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
146+
</Configuration>
147+
<Configuration
148+
Name="ReleaseItanium|Win32"
149+
OutputDirectory="./."
150+
IntermediateDirectory=".\ia64-temp-release\_elementtree"
151+
ConfigurationType="2"
152+
UseOfMFC="0"
153+
ATLMinimizesCRunTimeLibraryUsage="FALSE">
154+
<Tool
155+
Name="VCCLCompilerTool"
156+
AdditionalOptions=" /USECL:MS_ITANIUM"
157+
Optimization="2"
158+
InlineFunctionExpansion="1"
159+
AdditionalIncludeDirectories="{MSSDKPATH}\include\Win64\atl;{MSSDKPATH}\include\Win64\crt;{MSSDKPATH}\include\Win64\crt\sys;{MSSDKPATH}\include\Win64\mfc;..\Include,..\PC,..\Modules\expat"
160+
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE"
161+
StringPooling="TRUE"
162+
BasicRuntimeChecks="0"
163+
RuntimeLibrary="2"
164+
BufferSecurityCheck="FALSE"
165+
EnableFunctionLevelLinking="TRUE"
166+
UsePrecompiledHeader="2"
167+
PrecompiledHeaderFile=".\ia64-temp-release\_elementtree/_elementtree.pch"
168+
AssemblerListingLocation=".\ia64-temp-release\_elementtree/"
169+
ObjectFile=".\ia64-temp-release\_elementtree/"
170+
ProgramDataBaseFileName=".\ia64-temp-release\_elementtree/"
171+
WarningLevel="3"
172+
SuppressStartupBanner="TRUE"
173+
Detect64BitPortabilityProblems="TRUE"
174+
DebugInformationFormat="3"
175+
CompileAs="0"/>
176+
<Tool
177+
Name="VCCustomBuildTool"/>
178+
<Tool
179+
Name="VCLinkerTool"
180+
AdditionalOptions=" /MACHINE:IA64 /USELINK:MS_SDK"
181+
AdditionalDependencies="odbccp32.lib"
182+
OutputFile="./_elementtree.pyd"
183+
LinkIncremental="1"
184+
SuppressStartupBanner="TRUE"
185+
GenerateDebugInformation="TRUE"
186+
ProgramDatabaseFile=".\./_elementtree.pdb"
187+
SubSystem="2"
188+
BaseAddress="0x1D100000"
189+
ImportLibrary=".\./_elementtree.lib"
190+
TargetMachine="0"/>
191+
<Tool
192+
Name="VCMIDLTool"
193+
PreprocessorDefinitions="NDEBUG"
194+
MkTypLibCompatible="TRUE"
195+
SuppressStartupBanner="TRUE"
196+
TargetEnvironment="1"
197+
TypeLibraryName=".\./_elementtree.tlb"
198+
HeaderFileName=""/>
199+
<Tool
200+
Name="VCPostBuildEventTool"/>
201+
<Tool
202+
Name="VCPreBuildEventTool"/>
203+
<Tool
204+
Name="VCPreLinkEventTool"/>
205+
<Tool
206+
Name="VCResourceCompilerTool"
207+
PreprocessorDefinitions="NDEBUG"
208+
Culture="1033"/>
209+
<Tool
210+
Name="VCWebServiceProxyGeneratorTool"/>
211+
<Tool
212+
Name="VCXMLDataGeneratorTool"/>
213+
<Tool
214+
Name="VCWebDeploymentTool"/>
215+
<Tool
216+
Name="VCManagedWrapperGeneratorTool"/>
217+
<Tool
218+
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
219+
</Configuration>
220+
</Configurations>
221+
<References>
222+
</References>
223+
<Files>
224+
<File
225+
RelativePath="..\Modules\_elementtree.c">
226+
<FileConfiguration
227+
Name="Debug|Win32">
228+
<Tool
229+
Name="VCCLCompilerTool"
230+
Optimization="0"
231+
AdditionalIncludeDirectories=""
232+
PreprocessorDefinitions="_DEBUG;HAVE_EXPAT_H;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE;$(NoInherit)"/>
233+
</FileConfiguration>
234+
<FileConfiguration
235+
Name="Release|Win32">
236+
<Tool
237+
Name="VCCLCompilerTool"
238+
Optimization="2"
239+
AdditionalIncludeDirectories=""
240+
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE;$(NoInherit)"/>
241+
</FileConfiguration>
242+
<FileConfiguration
243+
Name="ReleaseItanium|Win32">
244+
<Tool
245+
Name="VCCLCompilerTool"
246+
Optimization="2"
247+
AdditionalIncludeDirectories=""
248+
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE;$(NoInherit)"/>
249+
</FileConfiguration>
250+
</File>
251+
<File
252+
RelativePath="..\Modules\expat\xmlparse.c">
253+
<FileConfiguration
254+
Name="Debug|Win32">
255+
<Tool
256+
Name="VCCLCompilerTool"
257+
Optimization="0"
258+
AdditionalIncludeDirectories=""
259+
PreprocessorDefinitions="_DEBUG;HAVE_EXPAT_H;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE;$(NoInherit)"/>
260+
</FileConfiguration>
261+
<FileConfiguration
262+
Name="Release|Win32">
263+
<Tool
264+
Name="VCCLCompilerTool"
265+
Optimization="2"
266+
AdditionalIncludeDirectories=""
267+
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE;$(NoInherit)"/>
268+
</FileConfiguration>
269+
<FileConfiguration
270+
Name="ReleaseItanium|Win32">
271+
<Tool
272+
Name="VCCLCompilerTool"
273+
Optimization="2"
274+
AdditionalIncludeDirectories=""
275+
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE;$(NoInherit)"/>
276+
</FileConfiguration>
277+
</File>
278+
<File
279+
RelativePath="..\Modules\expat\xmlrole.c">
280+
<FileConfiguration
281+
Name="Debug|Win32">
282+
<Tool
283+
Name="VCCLCompilerTool"
284+
Optimization="0"
285+
AdditionalIncludeDirectories=""
286+
PreprocessorDefinitions="_DEBUG;HAVE_EXPAT_H;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE;$(NoInherit)"/>
287+
</FileConfiguration>
288+
<FileConfiguration
289+
Name="Release|Win32">
290+
<Tool
291+
Name="VCCLCompilerTool"
292+
Optimization="2"
293+
AdditionalIncludeDirectories=""
294+
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE;$(NoInherit)"/>
295+
</FileConfiguration>
296+
<FileConfiguration
297+
Name="ReleaseItanium|Win32">
298+
<Tool
299+
Name="VCCLCompilerTool"
300+
Optimization="2"
301+
AdditionalIncludeDirectories=""
302+
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE;$(NoInherit)"/>
303+
</FileConfiguration>
304+
</File>
305+
<File
306+
RelativePath="..\Modules\expat\xmltok.c">
307+
<FileConfiguration
308+
Name="Debug|Win32">
309+
<Tool
310+
Name="VCCLCompilerTool"
311+
Optimization="0"
312+
AdditionalIncludeDirectories=""
313+
PreprocessorDefinitions="_DEBUG;HAVE_EXPAT_H;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE;$(NoInherit)"/>
314+
</FileConfiguration>
315+
<FileConfiguration
316+
Name="Release|Win32">
317+
<Tool
318+
Name="VCCLCompilerTool"
319+
Optimization="2"
320+
AdditionalIncludeDirectories=""
321+
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE;$(NoInherit)"/>
322+
</FileConfiguration>
323+
<FileConfiguration
324+
Name="ReleaseItanium|Win32">
325+
<Tool
326+
Name="VCCLCompilerTool"
327+
Optimization="2"
328+
AdditionalIncludeDirectories=""
329+
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;XML_NS;XML_DTD;BYTEORDER=1234;XML_CONTEXT_BYTES=1024;USE_PYEXPAT_CAPI;XML_STATIC;HAVE_MEMMOVE;$(NoInherit)"/>
330+
</FileConfiguration>
331+
</File>
332+
</Files>
333+
<Globals>
334+
</Globals>
335+
</VisualStudioProject>

PCbuild/pcbuild.sln

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "zlib", "zlib.vcproj", "{680
7979
{CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26} = {CF7AC3D1-E2DF-41D2-BEA6-1E2556CDEA26}
8080
EndProjectSection
8181
EndProject
82+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_elementtree", "_elementtree.vcproj", "{1966DDE2-4AB7-4E4E-ACC9-C121E4D37F8E}"
83+
ProjectSection(ProjectDependencies) = postProject
84+
EndProjectSection
85+
EndProject
8286
Global
8387
GlobalSection(SolutionConfiguration) = preSolution
8488
Debug = Debug
@@ -181,6 +185,12 @@ Global
181185
{680CDC79-9CCA-4282-9A8D-927CB0DB55B2}.Release.Build.0 = Release|Win32
182186
{680CDC79-9CCA-4282-9A8D-927CB0DB55B2}.ReleaseItanium.ActiveCfg = ReleaseItanium|Win32
183187
{680CDC79-9CCA-4282-9A8D-927CB0DB55B2}.ReleaseItanium.Build.0 = ReleaseItanium|Win32
188+
{1966DDE2-4AB7-4E4E-ACC9-C121E4D37F8E}.Debug.ActiveCfg = Debug|Win32
189+
{1966DDE2-4AB7-4E4E-ACC9-C121E4D37F8E}.Debug.Build.0 = Debug|Win32
190+
{1966DDE2-4AB7-4E4E-ACC9-C121E4D37F8E}.Release.ActiveCfg = Release|Win32
191+
{1966DDE2-4AB7-4E4E-ACC9-C121E4D37F8E}.Release.Build.0 = Release|Win32
192+
{1966DDE2-4AB7-4E4E-ACC9-C121E4D37F8E}.ReleaseItanium.ActiveCfg = ReleaseItanium|Win32
193+
{1966DDE2-4AB7-4E4E-ACC9-C121E4D37F8E}.ReleaseItanium.Build.0 = ReleaseItanium|Win32
184194
EndGlobalSection
185195
GlobalSection(SolutionItems) = postSolution
186196
readme.txt = readme.txt

Tools/msi/msi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
'unicodedata.pyd',
105105
'winsound.pyd',
106106
'zlib.pyd',
107+
'_elementtree.pyd',
107108
'_bsddb.pyd',
108109
'_socket.pyd',
109110
'_ssl.pyd',

0 commit comments

Comments
 (0)