blob: 807213f12a76f449e7f3bf5d328157dbd661feb5 [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>
Brian Curtin401f9f32012-05-13 11:19:23 -050060 <PreprocessorDefinitions>_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>
65 <BaseAddress>0x1d000000</BaseAddress>
66 </Link>
Brian Curtin401f9f32012-05-13 11:19:23 -050067 </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 Coghlan973fe0b2014-07-25 21:52:14 +100075 <ClCompile Include="..\Programs\python.c" />
Brian Curtin401f9f32012-05-13 11:19:23 -050076 </ItemGroup>
77 <ItemGroup>
78 <ProjectReference Include="pythoncore.vcxproj">
79 <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>
80 <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
81 </ProjectReference>
Brian Curtin401f9f32012-05-13 11:19:23 -050082 </ItemGroup>
83 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
84 <ImportGroup Label="ExtensionTargets">
85 </ImportGroup>
Steve Dowera7a222f2016-04-12 20:11:25 -070086 <Target Name="ValidateUcrtbase" AfterTargets="AfterBuild">
87 <PropertyGroup>
88 <UcrtName>ucrtbase</UcrtName>
89 <UcrtName Condition="'$(Configuration)' == 'Debug'">ucrtbased</UcrtName>
90 </PropertyGroup>
Steve Dowerfb4a96a2016-09-22 17:07:56 -070091 <Exec Command='setlocal
92set PYTHONPATH=$(PySourcePath)Lib
93"$(OutDir)python$(PyDebugExt).exe" "$(PySourcePath)PC\validate_ucrtbase.py" $(UcrtName)' ContinueOnError="true" />
Steve Dowera7a222f2016-04-12 20:11:25 -070094 </Target>
Steve Dower65e4cb12014-11-22 12:54:57 -080095 <Target Name="GeneratePythonBat" AfterTargets="AfterBuild">
96 <PropertyGroup>
97 <_Content>@rem This script invokes the most recently built Python with all arguments
98@rem passed through to the interpreter. This file is generated by the
99@rem build process and any changes *will* be thrown away by the next
100@rem rebuild.
101@rem This is only meant as a convenience for developing CPython
102@rem and using it outside of that context is ill-advised.
103@echo Running $(Configuration)^|$(Platform) interpreter...
Steve Dowerfb4a96a2016-09-22 17:07:56 -0700104@setlocal
105@set PYTHONHOME=$(PySourcePath)
Steve Dower65e4cb12014-11-22 12:54:57 -0800106@"$(OutDir)python$(PyDebugExt).exe" %*
107</_Content>
108 <_ExistingContent Condition="Exists('$(PySourcePath)python.bat')">$([System.IO.File]::ReadAllText('$(PySourcePath)python.bat'))</_ExistingContent>
109 </PropertyGroup>
110 <WriteLinesToFile File="$(PySourcePath)python.bat" Lines="$(_Content)" Overwrite="true" Condition="'$(_Content)' != '$(_ExistingContent)'" />
111 </Target>
Zachary Ware45bc17b2014-04-30 15:47:53 -0500112</Project>