Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 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"> |
Paul Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 4 | <ProjectConfiguration Include="Debug|ARM"> |
| 5 | <Configuration>Debug</Configuration> |
| 6 | <Platform>ARM</Platform> |
| 7 | </ProjectConfiguration> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 8 | <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 Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 16 | <ProjectConfiguration Include="PGInstrument|ARM"> |
| 17 | <Configuration>PGInstrument</Configuration> |
| 18 | <Platform>ARM</Platform> |
| 19 | </ProjectConfiguration> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 20 | <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 Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 28 | <ProjectConfiguration Include="PGUpdate|ARM"> |
| 29 | <Configuration>PGUpdate</Configuration> |
| 30 | <Platform>ARM</Platform> |
| 31 | </ProjectConfiguration> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 32 | <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 Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 40 | <ProjectConfiguration Include="Release|ARM"> |
| 41 | <Configuration>Release</Configuration> |
| 42 | <Platform>ARM</Platform> |
| 43 | </ProjectConfiguration> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 44 | <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 Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 56 | <Import Project="python.props" /> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 57 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 58 | <PropertyGroup Label="Configuration"> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 59 | <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 Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 66 | <ImportGroup Label="PropertySheets"> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 67 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
| 68 | <Import Project="pyproject.props" /> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 69 | </ImportGroup> |
| 70 | <PropertyGroup Label="UserMacros" /> |
| 71 | <PropertyGroup> |
| 72 | <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 73 | </PropertyGroup> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 74 | <ItemDefinitionGroup> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 75 | <ClCompile> |
Victor Stinner | f7e5b56 | 2017-11-15 15:48:08 -0800 | [diff] [blame] | 76 | <PreprocessorDefinitions>Py_BUILD_CORE;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 77 | </ClCompile> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 78 | <Link> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 79 | <SubSystem>Console</SubSystem> |
| 80 | <StackReserveSize>2000000</StackReserveSize> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 81 | </Link> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 82 | </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 Coghlan | 973fe0b | 2014-07-25 21:52:14 +1000 | [diff] [blame] | 90 | <ClCompile Include="..\Programs\python.c" /> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 91 | </ItemGroup> |
| 92 | <ItemGroup> |
| 93 | <ProjectReference Include="pythoncore.vcxproj"> |
| 94 | <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project> |
| 95 | <ReferenceOutputAssembly>false</ReferenceOutputAssembly> |
| 96 | </ProjectReference> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 97 | </ItemGroup> |
| 98 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 99 | <ImportGroup Label="ExtensionTargets"> |
| 100 | </ImportGroup> |
Paul Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 101 | <Target Name="ValidateUcrtbase" AfterTargets="AfterBuild" Condition="$(Configuration) != 'PGInstrument' and $(Platform) != 'ARM'"> |
Steve Dower | a7a222f | 2016-04-12 20:11:25 -0700 | [diff] [blame] | 102 | <PropertyGroup> |
| 103 | <UcrtName>ucrtbase</UcrtName> |
| 104 | <UcrtName Condition="'$(Configuration)' == 'Debug'">ucrtbased</UcrtName> |
| 105 | </PropertyGroup> |
Steve Dower | fb4a96a | 2016-09-22 17:07:56 -0700 | [diff] [blame] | 106 | <Exec Command='setlocal |
| 107 | set PYTHONPATH=$(PySourcePath)Lib |
| 108 | "$(OutDir)python$(PyDebugExt).exe" "$(PySourcePath)PC\validate_ucrtbase.py" $(UcrtName)' ContinueOnError="true" /> |
Steve Dower | a7a222f | 2016-04-12 20:11:25 -0700 | [diff] [blame] | 109 | </Target> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 110 | <Target Name="GeneratePythonBat" AfterTargets="AfterBuild"> |
| 111 | <PropertyGroup> |
Steve Dower | 40a23e8 | 2017-06-19 10:34:25 -0700 | [diff] [blame] | 112 | <_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 Dower | 5fcd5e6 | 2017-09-06 10:01:38 -0700 | [diff] [blame] | 114 | <_PGOPath Condition="$(Configuration) == 'PGInstrument' and $(VC_PGO_RunTime_Dir) != ''">@set PATH=%PATH%%3B$(VC_PGO_RunTime_Dir)</_PGOPath> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 115 | <_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 Dower | fb4a96a | 2016-09-22 17:07:56 -0700 | [diff] [blame] | 122 | @setlocal |
| 123 | @set PYTHONHOME=$(PySourcePath) |
Steve Dower | 40a23e8 | 2017-06-19 10:34:25 -0700 | [diff] [blame] | 124 | $(_PGOPath) |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 125 | @"$(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 Stinner | f7e5b56 | 2017-11-15 15:48:08 -0800 | [diff] [blame] | 131 | </Project> |