Anthony Shaw | 9e36589 | 2019-12-18 08:21:20 +1100 | [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|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> |
Anthony Shaw | 9e36589 | 2019-12-18 08:21:20 +1100 | [diff] [blame] | 136 | <None Include="..\Include\token.h"> |
| 137 | </None> |
| 138 | <None Include="..\Include\opcode.h"> |
| 139 | </None> |
Victor Stinner | 5cf4782 | 2020-11-02 22:03:28 +0100 | [diff] [blame^] | 140 | <None Include="..\Include\internal\pycore_ast.h"> |
| 141 | </None> |
Anthony Shaw | 9e36589 | 2019-12-18 08:21:20 +1100 | [diff] [blame] | 142 | <None Include="..\Include\Python-ast.h"> |
| 143 | </None> |
| 144 | <None Include="..\Python\Python-ast.c"> |
| 145 | </None> |
| 146 | <None Include="..\Lib\keyword.py"> |
| 147 | </None> |
| 148 | <None Include="..\Lib\symbol.py"> |
| 149 | </None> |
| 150 | <None Include="..\Doc\library\token-list.inc"> |
| 151 | </None> |
| 152 | </ItemGroup> |
| 153 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 154 | <ImportGroup Label="ExtensionTargets"> |
| 155 | </ImportGroup> |
Pablo Galindo | c5fc156 | 2020-04-22 23:29:27 +0100 | [diff] [blame] | 156 | <Target Name="_RegenPegen" BeforeTargets="Build"> |
Pablo Galindo | 1ed83ad | 2020-06-11 17:30:46 +0100 | [diff] [blame] | 157 | <!-- Regenerate Parser/parser.c --> |
Anthony Shaw | 9b64ef3 | 2020-04-29 19:09:09 +1000 | [diff] [blame] | 158 | <SetEnv Name="PYTHONPATH" Prefix="true" Value="$(PySourcePath)Tools\peg_generator\" /> |
Pablo Galindo | 1ed83ad | 2020-06-11 17:30:46 +0100 | [diff] [blame] | 159 | <Exec Command=""$(PythonExe)" -m pegen -q c "$(PySourcePath)Grammar\python.gram" "$(PySourcePath)Grammar\Tokens" -o "$(IntDir)parser.c"" /> |
| 160 | <Copy SourceFiles="$(IntDir)parser.c" DestinationFiles="$(PySourcePath)Parser\parser.c"> |
Pablo Galindo | c5fc156 | 2020-04-22 23:29:27 +0100 | [diff] [blame] | 161 | <Output TaskParameter="CopiedFiles" ItemName="_UpdatedParse" /> |
| 162 | </Copy> |
| 163 | <Warning Text="Pegen updated. You will need to rebuild pythoncore to see the changes." Condition="'@(_UpdatedParse)' != ''" /> |
| 164 | </Target> |
Anthony Shaw | 9e36589 | 2019-12-18 08:21:20 +1100 | [diff] [blame] | 165 | <Target Name="_RegenAST_H" AfterTargets="_RegenGrammar"> |
Victor Stinner | 5cf4782 | 2020-11-02 22:03:28 +0100 | [diff] [blame^] | 166 | <!-- Regenerate Include/Python-ast.h, Python/Python-ast.c and Include/internal/pycore_ast.h using Parser/asdl_c.py -h --> |
| 167 | <Exec Command=""$(PythonExe)" "$(PySourcePath)Parser\asdl_c.py" "$(PySourcePath)Parser\Python.asdl" -H "$(IntDir)Python-ast.h" -C "$(IntDir)Python-ast.c" -I "$(IntDir)pycore_ast.h"" /> |
Anthony Shaw | 9e36589 | 2019-12-18 08:21:20 +1100 | [diff] [blame] | 168 | <Copy SourceFiles="$(IntDir)Python-ast.h" DestinationFiles="$(PySourcePath)Include\Python-ast.h"> |
| 169 | <Output TaskParameter="CopiedFiles" ItemName="_UpdatedH" /> |
| 170 | </Copy> |
Anthony Shaw | 9e36589 | 2019-12-18 08:21:20 +1100 | [diff] [blame] | 171 | <Copy SourceFiles="$(IntDir)Python-ast.c" DestinationFiles="$(PySourcePath)Python\Python-ast.c"> |
Batuhan Taskaya | 63b8e0c | 2020-05-18 20:42:10 +0300 | [diff] [blame] | 172 | <Output TaskParameter="CopiedFiles" ItemName="_UpdatedC" /> |
Anthony Shaw | 9e36589 | 2019-12-18 08:21:20 +1100 | [diff] [blame] | 173 | </Copy> |
Victor Stinner | 5cf4782 | 2020-11-02 22:03:28 +0100 | [diff] [blame^] | 174 | <Copy SourceFiles="$(IntDir)pycore_ast.h" DestinationFiles="$(PySourcePath)Include\internal\pycore_ast.h"> |
| 175 | <Output TaskParameter="CopiedFiles" ItemName="_UpdatedInternalH" /> |
| 176 | </Copy> |
| 177 | <Warning Text="ASDL is updated. You will need to rebuild pythoncore to see the changes." Condition="'@(_UpdatedH)' != '' != '' and '@(_UpdatedC)' != '' and @(_UpdatedInternalH)'" /> |
Anthony Shaw | 9e36589 | 2019-12-18 08:21:20 +1100 | [diff] [blame] | 178 | </Target> |
| 179 | <Target Name="_RegenOpcodes" AfterTargets="_RegenAST_C"> |
| 180 | <!-- Regenerate Include/opcode.h from Lib/opcode.py using Tools/scripts/generate_opcode_h.py--> |
| 181 | <Exec Command=""$(PythonExe)" $(PySourcePath)Tools\scripts\generate_opcode_h.py "$(PySourcePath)Lib\opcode.py" "$(IntDir)opcode.h"" /> |
| 182 | <Copy SourceFiles="$(IntDir)opcode.h" DestinationFiles="$(PySourcePath)Include\opcode.h"> |
| 183 | <Output TaskParameter="CopiedFiles" ItemName="_Updated" /> |
| 184 | </Copy> |
| 185 | <Warning Text="Opcodes updated. You will need to rebuild pythoncore to see the changes." Condition="'@(_Updated)' != ''" /> |
| 186 | </Target> |
| 187 | <Target Name="_RegenTokens" AfterTargets="_RegenOpcodes"> |
| 188 | <!-- Regenerate Doc/library/token-list.inc from Grammar/Tokens using Tools/scripts/generate_token.py--> |
| 189 | <Exec Command=""$(PythonExe)" $(PySourcePath)Tools\scripts\generate_token.py rst "$(PySourcePath)Grammar\Tokens" "$(PySourcePath)Doc\library\token-list.inc"" /> |
| 190 | <!-- Regenerate Include/token.h from Grammar/Tokens using Tools/scripts/generate_token.py--> |
| 191 | <Exec Command=""$(PythonExe)" $(PySourcePath)Tools\scripts\generate_token.py h "$(PySourcePath)Grammar\Tokens" "$(PySourcePath)Include\token.h"" /> |
| 192 | <!-- Regenerate Parser/token.c from Grammar/Tokens using Tools/scripts/generate_token.py--> |
| 193 | <Exec Command=""$(PythonExe)" $(PySourcePath)Tools\scripts\generate_token.py c "$(PySourcePath)Grammar\Tokens" "$(PySourcePath)Parser\token.c"" /> |
| 194 | <!-- Regenerate Lib/token.py from Grammar/Tokens using Tools/scripts/generate_token.py --> |
| 195 | <Exec Command=""$(PythonExe)" $(PySourcePath)Tools\scripts\generate_token.py py "$(PySourcePath)Grammar\Tokens" "$(PySourcePath)Lib\token.py"" /> |
| 196 | </Target> |
| 197 | <Target Name="_RegenKeywords" AfterTargets="_RegenTokens"> |
Lysandros Nikolaou | 9727694 | 2020-06-11 15:45:15 +0300 | [diff] [blame] | 198 | <!-- Regenerate Lib/keyword.py from Grammar/python.gram and Grammar/Tokens using Tools/peg_generator/pegen--> |
| 199 | <SetEnv Name="PYTHONPATH" Prefix="true" Value="$(PySourcePath)Tools\peg_generator\" /> |
| 200 | <Exec Command=""$(PythonExe)" -m pegen.keywordgen "$(PySourcePath)Grammar\python.gram" "$(PySourcePath)Grammar\Tokens" "$(IntDir)keyword.py"" /> |
Anthony Shaw | 9e36589 | 2019-12-18 08:21:20 +1100 | [diff] [blame] | 201 | <Copy SourceFiles="$(IntDir)keyword.py" DestinationFiles="$(PySourcePath)Lib\keyword.py"> |
| 202 | <Output TaskParameter="CopiedFiles" ItemName="_Updated" /> |
| 203 | </Copy> |
| 204 | <Warning Text="Keywords updated. You will need to rebuild pythoncore to see the changes." Condition="'@(_Updated)' != ''" /> |
| 205 | </Target> |
Anthony Shaw | 9e36589 | 2019-12-18 08:21:20 +1100 | [diff] [blame] | 206 | <Target Name="_CleanFiles" BeforeTargets="CoreClean"> |
| 207 | <ItemGroup> |
| 208 | <Clean Include="$(IntDir)keyword.py" /> |
| 209 | <Clean Include="$(IntDir)opcode.h" /> |
| 210 | <Clean Include="$(IntDir)Python-ast.c" /> |
| 211 | <Clean Include="$(IntDir)Python-ast.h" /> |
Victor Stinner | 5cf4782 | 2020-11-02 22:03:28 +0100 | [diff] [blame^] | 212 | <Clean Include="$(IntDir)pycore_ast.h" /> |
Anthony Shaw | 9e36589 | 2019-12-18 08:21:20 +1100 | [diff] [blame] | 213 | </ItemGroup> |
| 214 | </Target> |
Pablo Galindo | c5fc156 | 2020-04-22 23:29:27 +0100 | [diff] [blame] | 215 | </Project> |