Skip to content

Commit b07e928

Browse files
Add Windows build support.
1 parent 39df95e commit b07e928

File tree

5 files changed

+115
-1
lines changed

5 files changed

+115
-1
lines changed

PCbuild/_xxsubinterpreters.vcxproj

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Debug|x64">
9+
<Configuration>Debug</Configuration>
10+
<Platform>x64</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="PGInstrument|Win32">
13+
<Configuration>PGInstrument</Configuration>
14+
<Platform>Win32</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="PGInstrument|x64">
17+
<Configuration>PGInstrument</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
<ProjectConfiguration Include="PGUpdate|Win32">
21+
<Configuration>PGUpdate</Configuration>
22+
<Platform>Win32</Platform>
23+
</ProjectConfiguration>
24+
<ProjectConfiguration Include="PGUpdate|x64">
25+
<Configuration>PGUpdate</Configuration>
26+
<Platform>x64</Platform>
27+
</ProjectConfiguration>
28+
<ProjectConfiguration Include="Release|Win32">
29+
<Configuration>Release</Configuration>
30+
<Platform>Win32</Platform>
31+
</ProjectConfiguration>
32+
<ProjectConfiguration Include="Release|x64">
33+
<Configuration>Release</Configuration>
34+
<Platform>x64</Platform>
35+
</ProjectConfiguration>
36+
</ItemGroup>
37+
<PropertyGroup Label="Globals">
38+
<ProjectGuid>{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}</ProjectGuid>
39+
<RootNamespace>_xxsubinterpreters</RootNamespace>
40+
<Keyword>Win32Proj</Keyword>
41+
</PropertyGroup>
42+
<Import Project="python.props" />
43+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
44+
<PropertyGroup Label="Configuration">
45+
<ConfigurationType>DynamicLibrary</ConfigurationType>
46+
<CharacterSet>NotSet</CharacterSet>
47+
</PropertyGroup>
48+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
49+
<PropertyGroup>
50+
<TargetExt>.pyd</TargetExt>
51+
</PropertyGroup>
52+
<ImportGroup Label="ExtensionSettings">
53+
</ImportGroup>
54+
<ImportGroup Label="PropertySheets">
55+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
56+
<Import Project="pyproject.props" />
57+
</ImportGroup>
58+
<PropertyGroup Label="UserMacros" />
59+
<PropertyGroup>
60+
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
61+
</PropertyGroup>
62+
<ItemDefinitionGroup>
63+
<ClCompile>
64+
<PreprocessorDefinitions>Py_BUILD_CORE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
65+
</ClCompile>
66+
</ItemDefinitionGroup>
67+
<ItemGroup>
68+
<ClCompile Include="..\Modules\_xxsubinterpretersmodule.c" />
69+
</ItemGroup>
70+
<ItemGroup>
71+
<ResourceCompile Include="..\PC\python_nt.rc" />
72+
</ItemGroup>
73+
<ItemGroup>
74+
<ProjectReference Include="pythoncore.vcxproj">
75+
<Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>
76+
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
77+
</ProjectReference>
78+
</ItemGroup>
79+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
80+
<ImportGroup Label="ExtensionTargets">
81+
</ImportGroup>
82+
</Project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="Source Files">
5+
<UniqueIdentifier>{YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY}</UniqueIdentifier>
6+
</Filter>
7+
</ItemGroup>
8+
<ItemGroup>
9+
<ClCompile Include="..\Modules\_xxsubinterpreters.c">
10+
<Filter>Source Files</Filter>
11+
</ClCompile>
12+
</ItemGroup>
13+
</Project>

PCbuild/pcbuild.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<ExtensionModules Include="@(ExternalModules->'%(Identity)')" Condition="$(IncludeExternals)" />
6060
<Projects Include="@(ExtensionModules->'%(Identity).vcxproj')" Condition="$(IncludeExtensions)" />
6161
<!-- Test modules -->
62-
<TestModules Include="_ctypes_test;_testbuffer;_testcapi;_testembed;_testimportmultiple;_testmultiphase;_testconsole" />
62+
<TestModules Include="_ctypes_test;_testbuffer;_testcapi;_testembed;_testimportmultiple;_testmultiphase;_testconsole;_xxsubinterpreters" />
6363
<TestModules Include="xxlimited" Condition="'$(Configuration)' == 'Release'" />
6464
<Projects Include="@(TestModules->'%(Identity).vcxproj')" Condition="$(IncludeTests)">
6565
<!-- Disable parallel build for test modules -->

PCbuild/pcbuild.sln

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "liblzma", "liblzma.vcxproj"
9595
EndProject
9696
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_distutils_findvs", "_distutils_findvs.vcxproj", "{41ADEDF9-11D8-474E-B4D7-BB82332C878E}"
9797
EndProject
98+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "_xxsubinterpreters", "_xxsubinterpreters.vcxproj", "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}"
99+
EndProject
98100
Global
99101
GlobalSection(SolutionConfigurationPlatforms) = preSolution
100102
Debug|Win32 = Debug|Win32
@@ -711,6 +713,22 @@ Global
711713
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.Release|Win32.Build.0 = Release|Win32
712714
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.Release|x64.ActiveCfg = Release|x64
713715
{41ADEDF9-11D8-474E-B4D7-BB82332C878E}.Release|x64.Build.0 = Release|x64
716+
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.Debug|Win32.ActiveCfg = Debug|Win32
717+
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.Debug|Win32.Build.0 = Debug|Win32
718+
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.Debug|x64.ActiveCfg = Debug|x64
719+
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.Debug|x64.Build.0 = Debug|x64
720+
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.PGInstrument|Win32.ActiveCfg = PGInstrument|Win32
721+
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.PGInstrument|Win32.Build.0 = PGInstrument|Win32
722+
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.PGInstrument|x64.ActiveCfg = PGInstrument|x64
723+
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.PGInstrument|x64.Build.0 = PGInstrument|x64
724+
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.PGUpdate|Win32.ActiveCfg = PGUpdate|Win32
725+
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.PGUpdate|Win32.Build.0 = PGUpdate|Win32
726+
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.PGUpdate|x64.ActiveCfg = PGUpdate|x64
727+
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.PGUpdate|x64.Build.0 = PGUpdate|x64
728+
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.Release|Win32.ActiveCfg = Release|Win32
729+
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.Release|Win32.Build.0 = Release|Win32
730+
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.Release|x64.ActiveCfg = Release|x64
731+
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.Release|x64.Build.0 = Release|x64
714732
EndGlobalSection
715733
GlobalSection(SolutionProperties) = preSolution
716734
HideSolutionNode = FALSE

PCbuild/readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ _testconsole
145145
_testimportmultiple
146146
_testmultiphase
147147
_tkinter
148+
_xxsubinterpreters
148149
pyexpat
149150
select
150151
unicodedata

0 commit comments

Comments
 (0)