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"> |
| 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> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 40 | <Import Project="python.props" /> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 41 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 42 | <PropertyGroup Label="Configuration"> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 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> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 50 | <ImportGroup Label="PropertySheets"> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 51 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
| 52 | <Import Project="pyproject.props" /> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 53 | </ImportGroup> |
| 54 | <PropertyGroup Label="UserMacros" /> |
| 55 | <PropertyGroup> |
| 56 | <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 57 | </PropertyGroup> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 58 | <ItemDefinitionGroup> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 59 | <ClCompile> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 60 | <PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 61 | </ClCompile> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 62 | <Link> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 63 | <SubSystem>Console</SubSystem> |
| 64 | <StackReserveSize>2000000</StackReserveSize> |
| 65 | <BaseAddress>0x1d000000</BaseAddress> |
| 66 | </Link> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 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> |
Nick Coghlan | 973fe0b | 2014-07-25 21:52:14 +1000 | [diff] [blame] | 75 | <ClCompile Include="..\Programs\python.c" /> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 76 | </ItemGroup> |
| 77 | <ItemGroup> |
| 78 | <ProjectReference Include="pythoncore.vcxproj"> |
| 79 | <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project> |
| 80 | <ReferenceOutputAssembly>false</ReferenceOutputAssembly> |
| 81 | </ProjectReference> |
Brian Curtin | 401f9f3 | 2012-05-13 11:19:23 -0500 | [diff] [blame] | 82 | </ItemGroup> |
| 83 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 84 | <ImportGroup Label="ExtensionTargets"> |
| 85 | </ImportGroup> |
Steve Dower | 40a23e8 | 2017-06-19 10:34:25 -0700 | [diff] [blame^] | 86 | <Target Name="ValidateUcrtbase" AfterTargets="AfterBuild" Condition="$(Configuration) != 'PGInstrument'"> |
Steve Dower | a7a222f | 2016-04-12 20:11:25 -0700 | [diff] [blame] | 87 | <PropertyGroup> |
| 88 | <UcrtName>ucrtbase</UcrtName> |
| 89 | <UcrtName Condition="'$(Configuration)' == 'Debug'">ucrtbased</UcrtName> |
| 90 | </PropertyGroup> |
Steve Dower | fb4a96a | 2016-09-22 17:07:56 -0700 | [diff] [blame] | 91 | <Exec Command='setlocal |
| 92 | set PYTHONPATH=$(PySourcePath)Lib |
| 93 | "$(OutDir)python$(PyDebugExt).exe" "$(PySourcePath)PC\validate_ucrtbase.py" $(UcrtName)' ContinueOnError="true" /> |
Steve Dower | a7a222f | 2016-04-12 20:11:25 -0700 | [diff] [blame] | 94 | </Target> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 95 | <Target Name="GeneratePythonBat" AfterTargets="AfterBuild"> |
| 96 | <PropertyGroup> |
Steve Dower | 40a23e8 | 2017-06-19 10:34:25 -0700 | [diff] [blame^] | 97 | <_PGOPath Condition="$(Configuration) == 'PGInstrument' and $(Platform) == 'Win32'">@set PATH=%PATH%%3B$(VCInstallDir)bin</_PGOPath> |
| 98 | <_PGOPath Condition="$(Configuration) == 'PGInstrument' and $(Platform) == 'x64'">@set PATH=%PATH%%3B$(VCInstallDir)bin\amd64</_PGOPath> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 99 | <_Content>@rem This script invokes the most recently built Python with all arguments |
| 100 | @rem passed through to the interpreter. This file is generated by the |
| 101 | @rem build process and any changes *will* be thrown away by the next |
| 102 | @rem rebuild. |
| 103 | @rem This is only meant as a convenience for developing CPython |
| 104 | @rem and using it outside of that context is ill-advised. |
| 105 | @echo Running $(Configuration)^|$(Platform) interpreter... |
Steve Dower | fb4a96a | 2016-09-22 17:07:56 -0700 | [diff] [blame] | 106 | @setlocal |
| 107 | @set PYTHONHOME=$(PySourcePath) |
Steve Dower | 40a23e8 | 2017-06-19 10:34:25 -0700 | [diff] [blame^] | 108 | $(_PGOPath) |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 109 | @"$(OutDir)python$(PyDebugExt).exe" %* |
| 110 | </_Content> |
| 111 | <_ExistingContent Condition="Exists('$(PySourcePath)python.bat')">$([System.IO.File]::ReadAllText('$(PySourcePath)python.bat'))</_ExistingContent> |
| 112 | </PropertyGroup> |
| 113 | <WriteLinesToFile File="$(PySourcePath)python.bat" Lines="$(_Content)" Overwrite="true" Condition="'$(_Content)' != '$(_ExistingContent)'" /> |
| 114 | </Target> |
Zachary Ware | 45bc17b | 2014-04-30 15:47:53 -0500 | [diff] [blame] | 115 | </Project> |