blob: 8b64e364f18a556cead3e1dbf8ab1ff176233ac9 [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">
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 Dower65e4cb12014-11-22 12:54:57 -080040 <Import Project="python.props" />
Brian Curtin401f9f32012-05-13 11:19:23 -050041 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
Steve Dower65e4cb12014-11-22 12:54:57 -080042 <PropertyGroup Label="Configuration">
Brian Curtin401f9f32012-05-13 11:19:23 -050043 <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 Dower65e4cb12014-11-22 12:54:57 -080050 <ImportGroup Label="PropertySheets">
Brian Curtin401f9f32012-05-13 11:19:23 -050051 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
52 <Import Project="pyproject.props" />
Brian Curtin401f9f32012-05-13 11:19:23 -050053 </ImportGroup>
54 <PropertyGroup Label="UserMacros" />
55 <PropertyGroup>
56 <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
Brian Curtin401f9f32012-05-13 11:19:23 -050057 </PropertyGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080058 <ItemDefinitionGroup>
Brian Curtin401f9f32012-05-13 11:19:23 -050059 <ClCompile>
Victor Stinnerf7e5b562017-11-15 15:48:08 -080060 <PreprocessorDefinitions>Py_BUILD_CORE;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Brian Curtin401f9f32012-05-13 11:19:23 -050061 </ClCompile>
Brian Curtin401f9f32012-05-13 11:19:23 -050062 <Link>
Brian Curtin401f9f32012-05-13 11:19:23 -050063 <SubSystem>Console</SubSystem>
64 <StackReserveSize>2000000</StackReserveSize>
Brian Curtin401f9f32012-05-13 11:19:23 -050065 </Link>
Brian Curtin401f9f32012-05-13 11:19:23 -050066 </ItemDefinitionGroup>
67 <ItemGroup>
68 <None Include="..\PC\pycon.ico" />
69 </ItemGroup>
70 <ItemGroup>
71 <ResourceCompile Include="..\PC\python_exe.rc" />
72 </ItemGroup>
73 <ItemGroup>
Nick Coghlan973fe0b2014-07-25 21:52:14 +100074 <ClCompile Include="..\Programs\python.c" />
Brian Curtin401f9f32012-05-13 11:19:23 -050075 </ItemGroup>
76 <ItemGroup>
77 <ProjectReference Include="pythoncore.vcxproj">
78 <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>
79 <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
80 </ProjectReference>
Brian Curtin401f9f32012-05-13 11:19:23 -050081 </ItemGroup>
82 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
83 <ImportGroup Label="ExtensionTargets">
84 </ImportGroup>
Steve Dower40a23e82017-06-19 10:34:25 -070085 <Target Name="ValidateUcrtbase" AfterTargets="AfterBuild" Condition="$(Configuration) != 'PGInstrument'">
Steve Dowera7a222f2016-04-12 20:11:25 -070086 <PropertyGroup>
87 <UcrtName>ucrtbase</UcrtName>
88 <UcrtName Condition="'$(Configuration)' == 'Debug'">ucrtbased</UcrtName>
89 </PropertyGroup>
Steve Dowerfb4a96a2016-09-22 17:07:56 -070090 <Exec Command='setlocal
91set PYTHONPATH=$(PySourcePath)Lib
92"$(OutDir)python$(PyDebugExt).exe" "$(PySourcePath)PC\validate_ucrtbase.py" $(UcrtName)' ContinueOnError="true" />
Steve Dowera7a222f2016-04-12 20:11:25 -070093 </Target>
Steve Dower65e4cb12014-11-22 12:54:57 -080094 <Target Name="GeneratePythonBat" AfterTargets="AfterBuild">
95 <PropertyGroup>
Steve Dower40a23e82017-06-19 10:34:25 -070096 <_PGOPath Condition="$(Configuration) == 'PGInstrument' and $(Platform) == 'Win32'">@set PATH=%PATH%%3B$(VCInstallDir)bin</_PGOPath>
97 <_PGOPath Condition="$(Configuration) == 'PGInstrument' and $(Platform) == 'x64'">@set PATH=%PATH%%3B$(VCInstallDir)bin\amd64</_PGOPath>
Steve Dower5fcd5e62017-09-06 10:01:38 -070098 <_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 -080099 <_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 Dowerfb4a96a2016-09-22 17:07:56 -0700106@setlocal
107@set PYTHONHOME=$(PySourcePath)
Steve Dower40a23e82017-06-19 10:34:25 -0700108$(_PGOPath)
Steve Dower65e4cb12014-11-22 12:54:57 -0800109@"$(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>
Victor Stinnerf7e5b562017-11-15 15:48:08 -0800115</Project>