• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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>{B11D750F-CD1F-4A96-85CE-E69A5C5259F9}</ProjectGuid>
39  </PropertyGroup>
40  <Import Project="python.props" />
41  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
42  <PropertyGroup Label="Configuration">
43    <ConfigurationType>Application</ConfigurationType>
44    <UseOfMfc>false</UseOfMfc>
45    <CharacterSet>MultiByte</CharacterSet>
46  </PropertyGroup>
47  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
48  <ImportGroup Label="ExtensionSettings">
49  </ImportGroup>
50  <ImportGroup Label="PropertySheets">
51    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
52    <Import Project="pyproject.props" />
53  </ImportGroup>
54  <PropertyGroup Label="UserMacros" />
55  <PropertyGroup>
56    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
57  </PropertyGroup>
58  <ItemDefinitionGroup>
59    <ClCompile>
60      <PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
61    </ClCompile>
62    <Link>
63      <SubSystem>Console</SubSystem>
64      <StackReserveSize>2000000</StackReserveSize>
65      <BaseAddress>0x1d000000</BaseAddress>
66    </Link>
67  </ItemDefinitionGroup>
68  <ItemGroup>
69    <None Include="..\PC\pycon.ico" />
70  </ItemGroup>
71  <ItemGroup>
72    <ResourceCompile Include="..\PC\python_exe.rc" />
73  </ItemGroup>
74  <ItemGroup>
75    <ClCompile Include="..\Programs\python.c" />
76  </ItemGroup>
77  <ItemGroup>
78    <ProjectReference Include="pythoncore.vcxproj">
79      <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>
80      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
81    </ProjectReference>
82  </ItemGroup>
83  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
84  <ImportGroup Label="ExtensionTargets">
85  </ImportGroup>
86  <Target Name="ValidateUcrtbase" AfterTargets="AfterBuild">
87    <PropertyGroup>
88      <UcrtName>ucrtbase</UcrtName>
89      <UcrtName Condition="'$(Configuration)' == 'Debug'">ucrtbased</UcrtName>
90    </PropertyGroup>
91    <Exec Command='setlocal
92set PYTHONPATH=$(PySourcePath)Lib
93"$(OutDir)python$(PyDebugExt).exe" "$(PySourcePath)PC\validate_ucrtbase.py" $(UcrtName)' ContinueOnError="true" />
94  </Target>
95  <Target Name="GeneratePythonBat" AfterTargets="AfterBuild">
96    <PropertyGroup>
97      <_Content>@rem This script invokes the most recently built Python with all arguments
98@rem passed through to the interpreter.  This file is generated by the
99@rem build process and any changes *will* be thrown away by the next
100@rem rebuild.
101@rem This is only meant as a convenience for developing CPython
102@rem and using it outside of that context is ill-advised.
103@echo Running $(Configuration)^|$(Platform) interpreter...
104@setlocal
105@set PYTHONHOME=$(PySourcePath)
106@"$(OutDir)python$(PyDebugExt).exe" %*
107</_Content>
108      <_ExistingContent Condition="Exists('$(PySourcePath)python.bat')">$([System.IO.File]::ReadAllText('$(PySourcePath)python.bat'))</_ExistingContent>
109    </PropertyGroup>
110    <WriteLinesToFile File="$(PySourcePath)python.bat" Lines="$(_Content)" Overwrite="true" Condition="'$(_Content)' != '$(_ExistingContent)'" />
111  </Target>
112</Project>