blob: 919b79d986d0faa916cd2320585ab2c6ac5d6a45 [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>
Paul Monsonf96e7fd2019-05-17 10:07:24 -07008 <ProjectConfiguration Include="Debug|ARM64">
9 <Configuration>Debug</Configuration>
10 <Platform>ARM64</Platform>
11 </ProjectConfiguration>
Brian Curtin401f9f32012-05-13 11:19:23 -050012 <ProjectConfiguration Include="Debug|Win32">
13 <Configuration>Debug</Configuration>
14 <Platform>Win32</Platform>
15 </ProjectConfiguration>
16 <ProjectConfiguration Include="Debug|x64">
17 <Configuration>Debug</Configuration>
18 <Platform>x64</Platform>
19 </ProjectConfiguration>
Paul Monson8a1657b2019-02-14 08:31:30 -080020 <ProjectConfiguration Include="PGInstrument|ARM">
21 <Configuration>PGInstrument</Configuration>
22 <Platform>ARM</Platform>
23 </ProjectConfiguration>
Paul Monsonf96e7fd2019-05-17 10:07:24 -070024 <ProjectConfiguration Include="PGInstrument|ARM64">
25 <Configuration>PGInstrument</Configuration>
26 <Platform>ARM64</Platform>
27 </ProjectConfiguration>
Brian Curtin401f9f32012-05-13 11:19:23 -050028 <ProjectConfiguration Include="PGInstrument|Win32">
29 <Configuration>PGInstrument</Configuration>
30 <Platform>Win32</Platform>
31 </ProjectConfiguration>
32 <ProjectConfiguration Include="PGInstrument|x64">
33 <Configuration>PGInstrument</Configuration>
34 <Platform>x64</Platform>
35 </ProjectConfiguration>
Paul Monson8a1657b2019-02-14 08:31:30 -080036 <ProjectConfiguration Include="PGUpdate|ARM">
37 <Configuration>PGUpdate</Configuration>
38 <Platform>ARM</Platform>
39 </ProjectConfiguration>
Paul Monsonf96e7fd2019-05-17 10:07:24 -070040 <ProjectConfiguration Include="PGUpdate|ARM64">
41 <Configuration>PGUpdate</Configuration>
42 <Platform>ARM64</Platform>
43 </ProjectConfiguration>
Brian Curtin401f9f32012-05-13 11:19:23 -050044 <ProjectConfiguration Include="PGUpdate|Win32">
45 <Configuration>PGUpdate</Configuration>
46 <Platform>Win32</Platform>
47 </ProjectConfiguration>
48 <ProjectConfiguration Include="PGUpdate|x64">
49 <Configuration>PGUpdate</Configuration>
50 <Platform>x64</Platform>
51 </ProjectConfiguration>
Paul Monson8a1657b2019-02-14 08:31:30 -080052 <ProjectConfiguration Include="Release|ARM">
53 <Configuration>Release</Configuration>
54 <Platform>ARM</Platform>
55 </ProjectConfiguration>
Paul Monsonf96e7fd2019-05-17 10:07:24 -070056 <ProjectConfiguration Include="Release|ARM64">
57 <Configuration>Release</Configuration>
58 <Platform>ARM</Platform>
59 </ProjectConfiguration>
Brian Curtin401f9f32012-05-13 11:19:23 -050060 <ProjectConfiguration Include="Release|Win32">
61 <Configuration>Release</Configuration>
62 <Platform>Win32</Platform>
63 </ProjectConfiguration>
64 <ProjectConfiguration Include="Release|x64">
65 <Configuration>Release</Configuration>
66 <Platform>x64</Platform>
67 </ProjectConfiguration>
68 </ItemGroup>
69 <PropertyGroup Label="Globals">
70 <ProjectGuid>{B11D750F-CD1F-4A96-85CE-E69A5C5259F9}</ProjectGuid>
71 </PropertyGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080072 <Import Project="python.props" />
Brian Curtin401f9f32012-05-13 11:19:23 -050073 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
Steve Dower65e4cb12014-11-22 12:54:57 -080074 <PropertyGroup Label="Configuration">
Brian Curtin401f9f32012-05-13 11:19:23 -050075 <ConfigurationType>Application</ConfigurationType>
76 <UseOfMfc>false</UseOfMfc>
77 <CharacterSet>MultiByte</CharacterSet>
78 </PropertyGroup>
79 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
80 <ImportGroup Label="ExtensionSettings">
81 </ImportGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080082 <ImportGroup Label="PropertySheets">
Brian Curtin401f9f32012-05-13 11:19:23 -050083 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
84 <Import Project="pyproject.props" />
Brian Curtin401f9f32012-05-13 11:19:23 -050085 </ImportGroup>
86 <PropertyGroup Label="UserMacros" />
87 <PropertyGroup>
88 <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
Brian Curtin401f9f32012-05-13 11:19:23 -050089 </PropertyGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080090 <ItemDefinitionGroup>
Brian Curtin401f9f32012-05-13 11:19:23 -050091 <ClCompile>
Victor Stinnerf7e5b562017-11-15 15:48:08 -080092 <PreprocessorDefinitions>Py_BUILD_CORE;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Brian Curtin401f9f32012-05-13 11:19:23 -050093 </ClCompile>
Brian Curtin401f9f32012-05-13 11:19:23 -050094 <Link>
Brian Curtin401f9f32012-05-13 11:19:23 -050095 <SubSystem>Console</SubSystem>
96 <StackReserveSize>2000000</StackReserveSize>
Brian Curtin401f9f32012-05-13 11:19:23 -050097 </Link>
Brian Curtin401f9f32012-05-13 11:19:23 -050098 </ItemDefinitionGroup>
99 <ItemGroup>
100 <None Include="..\PC\pycon.ico" />
101 </ItemGroup>
102 <ItemGroup>
103 <ResourceCompile Include="..\PC\python_exe.rc" />
104 </ItemGroup>
105 <ItemGroup>
Nick Coghlan973fe0b2014-07-25 21:52:14 +1000106 <ClCompile Include="..\Programs\python.c" />
Brian Curtin401f9f32012-05-13 11:19:23 -0500107 </ItemGroup>
108 <ItemGroup>
109 <ProjectReference Include="pythoncore.vcxproj">
110 <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>
111 <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
112 </ProjectReference>
Brian Curtin401f9f32012-05-13 11:19:23 -0500113 </ItemGroup>
114 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
115 <ImportGroup Label="ExtensionTargets">
116 </ImportGroup>
Paul Monsonf96e7fd2019-05-17 10:07:24 -0700117 <Target Name="ValidateUcrtbase" AfterTargets="AfterBuild" Condition="$(Configuration) != 'PGInstrument' and $(Platform) != 'ARM' and $(Platform) != 'ARM64'">
Steve Dowera7a222f2016-04-12 20:11:25 -0700118 <PropertyGroup>
119 <UcrtName>ucrtbase</UcrtName>
120 <UcrtName Condition="'$(Configuration)' == 'Debug'">ucrtbased</UcrtName>
121 </PropertyGroup>
Steve Dowerfb4a96a2016-09-22 17:07:56 -0700122 <Exec Command='setlocal
123set PYTHONPATH=$(PySourcePath)Lib
124"$(OutDir)python$(PyDebugExt).exe" "$(PySourcePath)PC\validate_ucrtbase.py" $(UcrtName)' ContinueOnError="true" />
Steve Dowera7a222f2016-04-12 20:11:25 -0700125 </Target>
Steve Dower65e4cb12014-11-22 12:54:57 -0800126 <Target Name="GeneratePythonBat" AfterTargets="AfterBuild">
127 <PropertyGroup>
Steve Dower40a23e82017-06-19 10:34:25 -0700128 <_PGOPath Condition="$(Configuration) == 'PGInstrument' and $(Platform) == 'Win32'">@set PATH=%PATH%%3B$(VCInstallDir)bin</_PGOPath>
129 <_PGOPath Condition="$(Configuration) == 'PGInstrument' and $(Platform) == 'x64'">@set PATH=%PATH%%3B$(VCInstallDir)bin\amd64</_PGOPath>
Steve Dower5fcd5e62017-09-06 10:01:38 -0700130 <_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 -0800131 <_Content>@rem This script invokes the most recently built Python with all arguments
132@rem passed through to the interpreter. This file is generated by the
133@rem build process and any changes *will* be thrown away by the next
134@rem rebuild.
135@rem This is only meant as a convenience for developing CPython
136@rem and using it outside of that context is ill-advised.
137@echo Running $(Configuration)^|$(Platform) interpreter...
Steve Dowerfb4a96a2016-09-22 17:07:56 -0700138@setlocal
139@set PYTHONHOME=$(PySourcePath)
Steve Dower40a23e82017-06-19 10:34:25 -0700140$(_PGOPath)
Steve Dower65e4cb12014-11-22 12:54:57 -0800141@"$(OutDir)python$(PyDebugExt).exe" %*
142</_Content>
143 <_ExistingContent Condition="Exists('$(PySourcePath)python.bat')">$([System.IO.File]::ReadAllText('$(PySourcePath)python.bat'))</_ExistingContent>
144 </PropertyGroup>
145 <WriteLinesToFile File="$(PySourcePath)python.bat" Lines="$(_Content)" Overwrite="true" Condition="'$(_Content)' != '$(_ExistingContent)'" />
146 </Target>
Victor Stinnerf7e5b562017-11-15 15:48:08 -0800147</Project>