blob: 77d22ecdabf9a63ecb7d5e912952d1fcc7cfe8b4 [file] [log] [blame]
Brian Curtin401f9f32012-05-13 11:19:23 -05001<?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">
Paul Monson8a1657b2019-02-14 08:31:30 -08004 <ProjectConfiguration Include="Debug|ARM">
5 <Configuration>Debug</Configuration>
6 <Platform>ARM</Platform>
7 </ProjectConfiguration>
Brian Curtin401f9f32012-05-13 11:19:23 -05008 <ProjectConfiguration Include="Debug|Win32">
9 <Configuration>Debug</Configuration>
10 <Platform>Win32</Platform>
11 </ProjectConfiguration>
12 <ProjectConfiguration Include="Debug|x64">
13 <Configuration>Debug</Configuration>
14 <Platform>x64</Platform>
15 </ProjectConfiguration>
Paul Monson8a1657b2019-02-14 08:31:30 -080016 <ProjectConfiguration Include="PGInstrument|ARM">
17 <Configuration>PGInstrument</Configuration>
18 <Platform>ARM</Platform>
19 </ProjectConfiguration>
Brian Curtin401f9f32012-05-13 11:19:23 -050020 <ProjectConfiguration Include="PGInstrument|Win32">
21 <Configuration>PGInstrument</Configuration>
22 <Platform>Win32</Platform>
23 </ProjectConfiguration>
24 <ProjectConfiguration Include="PGInstrument|x64">
25 <Configuration>PGInstrument</Configuration>
26 <Platform>x64</Platform>
27 </ProjectConfiguration>
Paul Monson8a1657b2019-02-14 08:31:30 -080028 <ProjectConfiguration Include="PGUpdate|ARM">
29 <Configuration>PGUpdate</Configuration>
30 <Platform>ARM</Platform>
31 </ProjectConfiguration>
Brian Curtin401f9f32012-05-13 11:19:23 -050032 <ProjectConfiguration Include="PGUpdate|Win32">
33 <Configuration>PGUpdate</Configuration>
34 <Platform>Win32</Platform>
35 </ProjectConfiguration>
36 <ProjectConfiguration Include="PGUpdate|x64">
37 <Configuration>PGUpdate</Configuration>
38 <Platform>x64</Platform>
39 </ProjectConfiguration>
Paul Monson8a1657b2019-02-14 08:31:30 -080040 <ProjectConfiguration Include="Release|ARM">
41 <Configuration>Release</Configuration>
42 <Platform>ARM</Platform>
43 </ProjectConfiguration>
Brian Curtin401f9f32012-05-13 11:19:23 -050044 <ProjectConfiguration Include="Release|Win32">
45 <Configuration>Release</Configuration>
46 <Platform>Win32</Platform>
47 </ProjectConfiguration>
48 <ProjectConfiguration Include="Release|x64">
49 <Configuration>Release</Configuration>
50 <Platform>x64</Platform>
51 </ProjectConfiguration>
52 </ItemGroup>
53 <PropertyGroup Label="Globals">
54 <ProjectGuid>{B11D750F-CD1F-4A96-85CE-E69A5C5259F9}</ProjectGuid>
55 </PropertyGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080056 <Import Project="python.props" />
Brian Curtin401f9f32012-05-13 11:19:23 -050057 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
Steve Dower65e4cb12014-11-22 12:54:57 -080058 <PropertyGroup Label="Configuration">
Brian Curtin401f9f32012-05-13 11:19:23 -050059 <ConfigurationType>Application</ConfigurationType>
60 <UseOfMfc>false</UseOfMfc>
61 <CharacterSet>MultiByte</CharacterSet>
62 </PropertyGroup>
63 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
64 <ImportGroup Label="ExtensionSettings">
65 </ImportGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080066 <ImportGroup Label="PropertySheets">
Brian Curtin401f9f32012-05-13 11:19:23 -050067 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68 <Import Project="pyproject.props" />
Brian Curtin401f9f32012-05-13 11:19:23 -050069 </ImportGroup>
70 <PropertyGroup Label="UserMacros" />
71 <PropertyGroup>
72 <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
Brian Curtin401f9f32012-05-13 11:19:23 -050073 </PropertyGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080074 <ItemDefinitionGroup>
Brian Curtin401f9f32012-05-13 11:19:23 -050075 <ClCompile>
Victor Stinnerf7e5b562017-11-15 15:48:08 -080076 <PreprocessorDefinitions>Py_BUILD_CORE;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Brian Curtin401f9f32012-05-13 11:19:23 -050077 </ClCompile>
Brian Curtin401f9f32012-05-13 11:19:23 -050078 <Link>
Brian Curtin401f9f32012-05-13 11:19:23 -050079 <SubSystem>Console</SubSystem>
80 <StackReserveSize>2000000</StackReserveSize>
Brian Curtin401f9f32012-05-13 11:19:23 -050081 </Link>
Brian Curtin401f9f32012-05-13 11:19:23 -050082 </ItemDefinitionGroup>
83 <ItemGroup>
84 <None Include="..\PC\pycon.ico" />
85 </ItemGroup>
86 <ItemGroup>
87 <ResourceCompile Include="..\PC\python_exe.rc" />
88 </ItemGroup>
89 <ItemGroup>
Nick Coghlan973fe0b2014-07-25 21:52:14 +100090 <ClCompile Include="..\Programs\python.c" />
Brian Curtin401f9f32012-05-13 11:19:23 -050091 </ItemGroup>
92 <ItemGroup>
93 <ProjectReference Include="pythoncore.vcxproj">
94 <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>
95 <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
96 </ProjectReference>
Brian Curtin401f9f32012-05-13 11:19:23 -050097 </ItemGroup>
98 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
99 <ImportGroup Label="ExtensionTargets">
100 </ImportGroup>
Paul Monson8a1657b2019-02-14 08:31:30 -0800101 <Target Name="ValidateUcrtbase" AfterTargets="AfterBuild" Condition="$(Configuration) != 'PGInstrument' and $(Platform) != 'ARM'">
Steve Dowera7a222f2016-04-12 20:11:25 -0700102 <PropertyGroup>
103 <UcrtName>ucrtbase</UcrtName>
104 <UcrtName Condition="'$(Configuration)' == 'Debug'">ucrtbased</UcrtName>
105 </PropertyGroup>
Steve Dowerfb4a96a2016-09-22 17:07:56 -0700106 <Exec Command='setlocal
107set PYTHONPATH=$(PySourcePath)Lib
108"$(OutDir)python$(PyDebugExt).exe" "$(PySourcePath)PC\validate_ucrtbase.py" $(UcrtName)' ContinueOnError="true" />
Steve Dowera7a222f2016-04-12 20:11:25 -0700109 </Target>
Steve Dower65e4cb12014-11-22 12:54:57 -0800110 <Target Name="GeneratePythonBat" AfterTargets="AfterBuild">
111 <PropertyGroup>
Steve Dower40a23e82017-06-19 10:34:25 -0700112 <_PGOPath Condition="$(Configuration) == 'PGInstrument' and $(Platform) == 'Win32'">@set PATH=%PATH%%3B$(VCInstallDir)bin</_PGOPath>
113 <_PGOPath Condition="$(Configuration) == 'PGInstrument' and $(Platform) == 'x64'">@set PATH=%PATH%%3B$(VCInstallDir)bin\amd64</_PGOPath>
Steve Dower5fcd5e62017-09-06 10:01:38 -0700114 <_PGOPath Condition="$(Configuration) == 'PGInstrument' and $(VC_PGO_RunTime_Dir) != ''">@set PATH=%PATH%%3B$(VC_PGO_RunTime_Dir)</_PGOPath>
Steve Dower65e4cb12014-11-22 12:54:57 -0800115 <_Content>@rem This script invokes the most recently built Python with all arguments
116@rem passed through to the interpreter. This file is generated by the
117@rem build process and any changes *will* be thrown away by the next
118@rem rebuild.
119@rem This is only meant as a convenience for developing CPython
120@rem and using it outside of that context is ill-advised.
121@echo Running $(Configuration)^|$(Platform) interpreter...
Steve Dowerfb4a96a2016-09-22 17:07:56 -0700122@setlocal
123@set PYTHONHOME=$(PySourcePath)
Steve Dower40a23e82017-06-19 10:34:25 -0700124$(_PGOPath)
Steve Dower65e4cb12014-11-22 12:54:57 -0800125@"$(OutDir)python$(PyDebugExt).exe" %*
126</_Content>
127 <_ExistingContent Condition="Exists('$(PySourcePath)python.bat')">$([System.IO.File]::ReadAllText('$(PySourcePath)python.bat'))</_ExistingContent>
128 </PropertyGroup>
129 <WriteLinesToFile File="$(PySourcePath)python.bat" Lines="$(_Content)" Overwrite="true" Condition="'$(_Content)' != '$(_ExistingContent)'" />
130 </Target>
Victor Stinnerf7e5b562017-11-15 15:48:08 -0800131</Project>