blob: 2094420a8df3956f5a009641f3facba782f55c1f [file] [log] [blame]
Steve Dower21a92f82019-06-14 08:29:20 -07001<?xml version="1.0" encoding="utf-8"?>
Brian Curtin401f9f32012-05-13 11:19:23 -05002<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>
Paul Monsoncfb241b2019-05-22 15:16:21 -070058 <Platform>ARM64</Platform>
Paul Monsonf96e7fd2019-05-17 10:07:24 -070059 </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" />
Steve Dower21a92f82019-06-14 08:29:20 -070085 <Import Project="tcltk.props" />
Brian Curtin401f9f32012-05-13 11:19:23 -050086 </ImportGroup>
87 <PropertyGroup Label="UserMacros" />
88 <PropertyGroup>
89 <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
Brian Curtin401f9f32012-05-13 11:19:23 -050090 </PropertyGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080091 <ItemDefinitionGroup>
Brian Curtin401f9f32012-05-13 11:19:23 -050092 <ClCompile>
Victor Stinnerf7e5b562017-11-15 15:48:08 -080093 <PreprocessorDefinitions>Py_BUILD_CORE;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Brian Curtin401f9f32012-05-13 11:19:23 -050094 </ClCompile>
Brian Curtin401f9f32012-05-13 11:19:23 -050095 <Link>
Brian Curtin401f9f32012-05-13 11:19:23 -050096 <SubSystem>Console</SubSystem>
97 <StackReserveSize>2000000</StackReserveSize>
Brian Curtin401f9f32012-05-13 11:19:23 -050098 </Link>
Brian Curtin401f9f32012-05-13 11:19:23 -050099 </ItemDefinitionGroup>
100 <ItemGroup>
101 <None Include="..\PC\pycon.ico" />
102 </ItemGroup>
103 <ItemGroup>
104 <ResourceCompile Include="..\PC\python_exe.rc" />
105 </ItemGroup>
106 <ItemGroup>
Nick Coghlan973fe0b2014-07-25 21:52:14 +1000107 <ClCompile Include="..\Programs\python.c" />
Brian Curtin401f9f32012-05-13 11:19:23 -0500108 </ItemGroup>
109 <ItemGroup>
110 <ProjectReference Include="pythoncore.vcxproj">
111 <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>
112 <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
113 </ProjectReference>
Brian Curtin401f9f32012-05-13 11:19:23 -0500114 </ItemGroup>
115 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
116 <ImportGroup Label="ExtensionTargets">
117 </ImportGroup>
Paul Monsonf96e7fd2019-05-17 10:07:24 -0700118 <Target Name="ValidateUcrtbase" AfterTargets="AfterBuild" Condition="$(Configuration) != 'PGInstrument' and $(Platform) != 'ARM' and $(Platform) != 'ARM64'">
Steve Dowera7a222f2016-04-12 20:11:25 -0700119 <PropertyGroup>
120 <UcrtName>ucrtbase</UcrtName>
121 <UcrtName Condition="'$(Configuration)' == 'Debug'">ucrtbased</UcrtName>
122 </PropertyGroup>
Steve Dowerfb4a96a2016-09-22 17:07:56 -0700123 <Exec Command='setlocal
124set PYTHONPATH=$(PySourcePath)Lib
125"$(OutDir)python$(PyDebugExt).exe" "$(PySourcePath)PC\validate_ucrtbase.py" $(UcrtName)' ContinueOnError="true" />
Steve Dowera7a222f2016-04-12 20:11:25 -0700126 </Target>
Steve Dower65e4cb12014-11-22 12:54:57 -0800127 <Target Name="GeneratePythonBat" AfterTargets="AfterBuild">
128 <PropertyGroup>
Steve Dower40a23e82017-06-19 10:34:25 -0700129 <_PGOPath Condition="$(Configuration) == 'PGInstrument' and $(Platform) == 'Win32'">@set PATH=%PATH%%3B$(VCInstallDir)bin</_PGOPath>
130 <_PGOPath Condition="$(Configuration) == 'PGInstrument' and $(Platform) == 'x64'">@set PATH=%PATH%%3B$(VCInstallDir)bin\amd64</_PGOPath>
Steve Dower5fcd5e62017-09-06 10:01:38 -0700131 <_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 -0800132 <_Content>@rem This script invokes the most recently built Python with all arguments
133@rem passed through to the interpreter. This file is generated by the
134@rem build process and any changes *will* be thrown away by the next
135@rem rebuild.
136@rem This is only meant as a convenience for developing CPython
137@rem and using it outside of that context is ill-advised.
138@echo Running $(Configuration)^|$(Platform) interpreter...
Steve Dowerfb4a96a2016-09-22 17:07:56 -0700139@setlocal
140@set PYTHONHOME=$(PySourcePath)
Steve Dower40a23e82017-06-19 10:34:25 -0700141$(_PGOPath)
Steve Dower65e4cb12014-11-22 12:54:57 -0800142@"$(OutDir)python$(PyDebugExt).exe" %*
143</_Content>
144 <_ExistingContent Condition="Exists('$(PySourcePath)python.bat')">$([System.IO.File]::ReadAllText('$(PySourcePath)python.bat'))</_ExistingContent>
145 </PropertyGroup>
146 <WriteLinesToFile File="$(PySourcePath)python.bat" Lines="$(_Content)" Overwrite="true" Condition="'$(_Content)' != '$(_ExistingContent)'" />
147 </Target>
Steve Dower21a92f82019-06-14 08:29:20 -0700148 <Target Name="GenerateLicense" AfterTargets="AfterBuild">
149 <ItemGroup>
150 <LicenseFiles Include="$(PySourcePath)LICENSE;
151 $(PySourcePath)PC\crtlicense.txt;
152 $(bz2Dir)LICENSE;
Steve Dower8fcaffb2019-09-11 13:43:00 +0100153 $(opensslOutDir)LICENSE;
154 $(libffiDir)LICENSE;" />
Paul Monson00f64932019-06-17 08:21:28 -0700155 <LicenseFiles Include="$(tcltkDir)tcllicense.terms;
Steve Dower21a92f82019-06-14 08:29:20 -0700156 $(tcltkDir)tklicense.terms;
Paul Monson00f64932019-06-17 08:21:28 -0700157 $(tcltkDir)tixlicense.terms" Condition="$(IncludeTkinter)" />
Steve Dower21a92f82019-06-14 08:29:20 -0700158 <_LicenseFiles Include="@(LicenseFiles)">
Steve Dower8fcaffb2019-09-11 13:43:00 +0100159 <Content Condition="Exists(%(FullPath))">$([System.IO.File]::ReadAllText(%(FullPath)))</Content>
Steve Dower21a92f82019-06-14 08:29:20 -0700160 </_LicenseFiles>
161 </ItemGroup>
162
163 <WriteLinesToFile File="$(OutDir)LICENSE.txt"
164 Overwrite="true"
165 Lines="@(_LicenseFiles->'%(Content)')" />
166 </Target>
Victor Stinnerf7e5b562017-11-15 15:48:08 -0800167</Project>