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|ARM"> 5 <Configuration>Debug</Configuration> 6 <Platform>ARM</Platform> 7 </ProjectConfiguration> 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> 16 <ProjectConfiguration Include="PGInstrument|ARM"> 17 <Configuration>PGInstrument</Configuration> 18 <Platform>ARM</Platform> 19 </ProjectConfiguration> 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> 28 <ProjectConfiguration Include="PGUpdate|ARM"> 29 <Configuration>PGUpdate</Configuration> 30 <Platform>ARM</Platform> 31 </ProjectConfiguration> 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> 40 <ProjectConfiguration Include="Release|ARM"> 41 <Configuration>Release</Configuration> 42 <Platform>ARM</Platform> 43 </ProjectConfiguration> 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>{21CF2108-2CC9-4005-A6ED-B7965ADE3854}</ProjectGuid> 55 <Keyword>Win32Proj</Keyword> 56 <RootNamespace>regen</RootNamespace> 57 <SupportPGO>false</SupportPGO> 58 <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> 59 </PropertyGroup> 60 <Import Project="python.props" /> 61 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> 62 <PropertyGroup Label="Configuration"> 63 <ConfigurationType>Utility</ConfigurationType> 64 <CharacterSet>Unicode</CharacterSet> 65 </PropertyGroup> 66 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> 67 <PlatformToolset>v142</PlatformToolset> 68 </PropertyGroup> 69 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'"> 70 <PlatformToolset>v142</PlatformToolset> 71 </PropertyGroup> 72 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> 73 <PlatformToolset>v142</PlatformToolset> 74 </PropertyGroup> 75 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> 76 <PlatformToolset>v142</PlatformToolset> 77 </PropertyGroup> 78 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|ARM'"> 79 <PlatformToolset>v142</PlatformToolset> 80 </PropertyGroup> 81 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> 82 <PlatformToolset>v142</PlatformToolset> 83 </PropertyGroup> 84 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='PGUpdate|x64'"> 85 <PlatformToolset>v142</PlatformToolset> 86 </PropertyGroup> 87 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='PGUpdate|ARM'"> 88 <PlatformToolset>v142</PlatformToolset> 89 </PropertyGroup> 90 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='PGUpdate|Win32'"> 91 <PlatformToolset>v142</PlatformToolset> 92 </PropertyGroup> 93 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='PGInstrument|ARM'"> 94 <PlatformToolset>v142</PlatformToolset> 95 </PropertyGroup> 96 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='PGInstrument|x64'"> 97 <PlatformToolset>v142</PlatformToolset> 98 </PropertyGroup> 99 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='PGInstrument|Win32'"> 100 <PlatformToolset>v142</PlatformToolset> 101 </PropertyGroup> 102 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> 103 <ImportGroup Label="ExtensionSettings"> 104 </ImportGroup> 105 <ImportGroup Label="PropertySheets"> 106 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 107 <Import Project="pyproject.props" /> 108 </ImportGroup> 109 <PropertyGroup Label="UserMacros" /> 110 <ItemDefinitionGroup> 111 <ClCompile> 112 <PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> 113 </ClCompile> 114 <Link> 115 <SubSystem>Console</SubSystem> 116 </Link> 117 </ItemDefinitionGroup> 118 <ItemGroup> 119 <ClCompile Include="..\Programs\_freeze_importlib.c" /> 120 </ItemGroup> 121 <ItemGroup> 122 <ProjectReference Include="pythoncore.vcxproj"> 123 <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project> 124 <Private>true</Private> 125 <ReferenceOutputAssembly>true</ReferenceOutputAssembly> 126 <CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies> 127 <LinkLibraryDependencies>true</LinkLibraryDependencies> 128 <UseLibraryDependencyInputs>false</UseLibraryDependencyInputs> 129 </ProjectReference> 130 </ItemGroup> 131 <ItemGroup> 132 <None Include="..\Grammar\Grammar"> 133 </None> 134 <None Include="..\Grammar\Tokens"> 135 </None> 136 <None Include="..\Include\graminit.h"> 137 </None> 138 <None Include="..\Python\graminit.c"> 139 </None> 140 <None Include="..\Include\token.h"> 141 </None> 142 <None Include="..\Include\opcode.h"> 143 </None> 144 <None Include="..\Include\Python-ast.h"> 145 </None> 146 <None Include="..\Python\Python-ast.c"> 147 </None> 148 <None Include="..\Lib\keyword.py"> 149 </None> 150 <None Include="..\Lib\symbol.py"> 151 </None> 152 <None Include="..\Doc\library\token-list.inc"> 153 </None> 154 </ItemGroup> 155 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> 156 <ImportGroup Label="ExtensionTargets"> 157 </ImportGroup> 158 <Target Name="_RegenGrammar" BeforeTargets="Build"> 159 <!-- Regenerate Include/graminit.h and Python/graminit.c from Grammar/Grammar using pgen--> 160 <Exec Command=""$(PythonExe)" -m Parser.pgen "$(PySourcePath)Grammar\Grammar" "$(PySourcePath)Grammar\Tokens" "$(IntDir)graminit.h" "$(IntDir)graminit.c"" /> 161 <Copy SourceFiles="$(IntDir)graminit.h" DestinationFiles="$(PySourcePath)Include\graminit.h"> 162 <Output TaskParameter="CopiedFiles" ItemName="_UpdatedH" /> 163 </Copy> 164 <Copy SourceFiles="$(IntDir)graminit.c" DestinationFiles="$(PySourcePath)Python\graminit.c"> 165 <Output TaskParameter="CopiedFiles" ItemName="_UpdatedC" /> 166 </Copy> 167 <Warning Text="Grammar updated. You will need to rebuild pythoncore to see the changes." Condition="'@(_UpdatedH)' != '' and '@(_UpdatedC)' != ''" /> 168 </Target> 169 <Target Name="_RegenPegen" BeforeTargets="Build"> 170 <!-- Regenerate Parser/pegen/parse.c --> 171 <SetEnv Name="PYTHONPATH" Prefix="true" Value="$(PySourcePath)Tools\peg_generator\" /> 172 <Exec Command=""$(PythonExe)" -m pegen -q c "$(PySourcePath)Grammar\python.gram" "$(PySourcePath)Grammar\Tokens" -o "$(IntDir)parse.c"" /> 173 <Copy SourceFiles="$(IntDir)parse.c" DestinationFiles="$(PySourcePath)Parser\pegen\parse.c"> 174 <Output TaskParameter="CopiedFiles" ItemName="_UpdatedParse" /> 175 </Copy> 176 <Warning Text="Pegen updated. You will need to rebuild pythoncore to see the changes." Condition="'@(_UpdatedParse)' != ''" /> 177 </Target> 178 <Target Name="_RegenAST_H" AfterTargets="_RegenGrammar"> 179 <!-- Regenerate Include/Python-ast.h and Python/Python-ast.c using Parser/asdl_c.py -h --> 180 <Exec Command=""$(PythonExe)" "$(PySourcePath)Parser\asdl_c.py" "$(PySourcePath)Parser\Python.asdl" -H "$(IntDir)Python-ast.h" -C "$(IntDir)Python-ast.c"" /> 181 <Copy SourceFiles="$(IntDir)Python-ast.h" DestinationFiles="$(PySourcePath)Include\Python-ast.h"> 182 <Output TaskParameter="CopiedFiles" ItemName="_UpdatedH" /> 183 </Copy> 184 <Copy SourceFiles="$(IntDir)Python-ast.c" DestinationFiles="$(PySourcePath)Python\Python-ast.c"> 185 <Output TaskParameter="CopiedFiles" ItemName="_UpdatedC" /> 186 </Copy> 187 <Warning Text="ASDL is updated. You will need to rebuild pythoncore to see the changes." Condition="'@(_UpdatedH)' != '' and '@(_UpdatedC)' != ''" /> 188 </Target> 189 <Target Name="_RegenOpcodes" AfterTargets="_RegenAST_C"> 190 <!-- Regenerate Include/opcode.h from Lib/opcode.py using Tools/scripts/generate_opcode_h.py--> 191 <Exec Command=""$(PythonExe)" $(PySourcePath)Tools\scripts\generate_opcode_h.py "$(PySourcePath)Lib\opcode.py" "$(IntDir)opcode.h"" /> 192 <Copy SourceFiles="$(IntDir)opcode.h" DestinationFiles="$(PySourcePath)Include\opcode.h"> 193 <Output TaskParameter="CopiedFiles" ItemName="_Updated" /> 194 </Copy> 195 <Warning Text="Opcodes updated. You will need to rebuild pythoncore to see the changes." Condition="'@(_Updated)' != ''" /> 196 </Target> 197 <Target Name="_RegenTokens" AfterTargets="_RegenOpcodes"> 198 <!-- Regenerate Doc/library/token-list.inc from Grammar/Tokens using Tools/scripts/generate_token.py--> 199 <Exec Command=""$(PythonExe)" $(PySourcePath)Tools\scripts\generate_token.py rst "$(PySourcePath)Grammar\Tokens" "$(PySourcePath)Doc\library\token-list.inc"" /> 200 <!-- Regenerate Include/token.h from Grammar/Tokens using Tools/scripts/generate_token.py--> 201 <Exec Command=""$(PythonExe)" $(PySourcePath)Tools\scripts\generate_token.py h "$(PySourcePath)Grammar\Tokens" "$(PySourcePath)Include\token.h"" /> 202 <!-- Regenerate Parser/token.c from Grammar/Tokens using Tools/scripts/generate_token.py--> 203 <Exec Command=""$(PythonExe)" $(PySourcePath)Tools\scripts\generate_token.py c "$(PySourcePath)Grammar\Tokens" "$(PySourcePath)Parser\token.c"" /> 204 <!-- Regenerate Lib/token.py from Grammar/Tokens using Tools/scripts/generate_token.py --> 205 <Exec Command=""$(PythonExe)" $(PySourcePath)Tools\scripts\generate_token.py py "$(PySourcePath)Grammar\Tokens" "$(PySourcePath)Lib\token.py"" /> 206 </Target> 207 <Target Name="_RegenKeywords" AfterTargets="_RegenTokens"> 208 <!-- Regenerate Lib/keyword.py from Grammar/python.gram and Grammar/Tokens using Tools/peg_generator/pegen--> 209 <SetEnv Name="PYTHONPATH" Prefix="true" Value="$(PySourcePath)Tools\peg_generator\" /> 210 <Exec Command=""$(PythonExe)" -m pegen.keywordgen "$(PySourcePath)Grammar\python.gram" "$(PySourcePath)Grammar\Tokens" "$(IntDir)keyword.py"" /> 211 <Copy SourceFiles="$(IntDir)keyword.py" DestinationFiles="$(PySourcePath)Lib\keyword.py"> 212 <Output TaskParameter="CopiedFiles" ItemName="_Updated" /> 213 </Copy> 214 <Warning Text="Keywords updated. You will need to rebuild pythoncore to see the changes." Condition="'@(_Updated)' != ''" /> 215 </Target> 216 <Target Name="_RegenSymbols" AfterTargets="_RegenKeywords"> 217 <!-- Regenerate Lib/symbol.py from Include/graminit.h using Tools/scripts/generate_symbol_py.py--> 218 <Exec Command=""$(PythonExe)" $(PySourcePath)Tools\scripts\generate_symbol_py.py "$(PySourcePath)Include\graminit.h" "$(PySourcePath)Lib\symbol.py"" /> 219 </Target> 220 <Target Name="_CleanFiles" BeforeTargets="CoreClean"> 221 <ItemGroup> 222 <Clean Include="$(IntDir)keyword.py" /> 223 <Clean Include="$(IntDir)opcode.h" /> 224 <Clean Include="$(IntDir)Python-ast.c" /> 225 <Clean Include="$(IntDir)Python-ast.h" /> 226 <Clean Include="$(IntDir)graminit.h.new" /> 227 <Clean Include="$(IntDir)graminit.c.new" /> 228 </ItemGroup> 229 </Target> 230</Project> 231