Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [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"> |
Paul Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 4 | <ProjectConfiguration Include="Debug|ARM"> |
| 5 | <Configuration>Debug</Configuration> |
| 6 | <Platform>ARM</Platform> |
| 7 | </ProjectConfiguration> |
Paul Monson | f96e7fd | 2019-05-17 10:07:24 -0700 | [diff] [blame] | 8 | <ProjectConfiguration Include="Debug|ARM64"> |
| 9 | <Configuration>Debug</Configuration> |
| 10 | <Platform>ARM64</Platform> |
| 11 | </ProjectConfiguration> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 12 | <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 Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 20 | <ProjectConfiguration Include="PGInstrument|ARM"> |
| 21 | <Configuration>PGInstrument</Configuration> |
| 22 | <Platform>ARM</Platform> |
| 23 | </ProjectConfiguration> |
Paul Monson | f96e7fd | 2019-05-17 10:07:24 -0700 | [diff] [blame] | 24 | <ProjectConfiguration Include="PGInstrument|ARM64"> |
| 25 | <Configuration>PGInstrument</Configuration> |
| 26 | <Platform>ARM64</Platform> |
| 27 | </ProjectConfiguration> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 28 | <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 Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 36 | <ProjectConfiguration Include="PGUpdate|ARM"> |
| 37 | <Configuration>PGUpdate</Configuration> |
| 38 | <Platform>ARM</Platform> |
| 39 | </ProjectConfiguration> |
Paul Monson | f96e7fd | 2019-05-17 10:07:24 -0700 | [diff] [blame] | 40 | <ProjectConfiguration Include="PGUpdate|ARM64"> |
| 41 | <Configuration>PGUpdate</Configuration> |
| 42 | <Platform>ARM64</Platform> |
| 43 | </ProjectConfiguration> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 44 | <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 Monson | 8a1657b | 2019-02-14 08:31:30 -0800 | [diff] [blame] | 52 | <ProjectConfiguration Include="Release|ARM"> |
| 53 | <Configuration>Release</Configuration> |
| 54 | <Platform>ARM</Platform> |
| 55 | </ProjectConfiguration> |
Paul Monson | f96e7fd | 2019-05-17 10:07:24 -0700 | [diff] [blame] | 56 | <ProjectConfiguration Include="Release|ARM64"> |
| 57 | <Configuration>Release</Configuration> |
| 58 | <Platform>ARM64</Platform> |
| 59 | </ProjectConfiguration> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 60 | <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>{19C0C13F-47CA-4432-AFF3-799A296A4DDC}</ProjectGuid> |
| 71 | <Keyword>Win32Proj</Keyword> |
| 72 | <RootNamespace>_freeze_importlib</RootNamespace> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 73 | <SupportPGO>false</SupportPGO> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 74 | </PropertyGroup> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 75 | <Import Project="python.props" /> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 76 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 77 | <PropertyGroup Label="Configuration"> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 78 | <ConfigurationType>Application</ConfigurationType> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 79 | <CharacterSet>Unicode</CharacterSet> |
| 80 | </PropertyGroup> |
| 81 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
| 82 | <ImportGroup Label="ExtensionSettings"> |
| 83 | </ImportGroup> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 84 | <ImportGroup Label="PropertySheets"> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 85 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
| 86 | <Import Project="pyproject.props" /> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 87 | </ImportGroup> |
| 88 | <PropertyGroup Label="UserMacros" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 89 | <ItemDefinitionGroup> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 90 | <ClCompile> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 91 | <PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 92 | </ClCompile> |
| 93 | <Link> |
| 94 | <SubSystem>Console</SubSystem> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 95 | </Link> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 96 | </ItemDefinitionGroup> |
| 97 | <ItemGroup> |
Nick Coghlan | 973fe0b | 2014-07-25 21:52:14 +1000 | [diff] [blame] | 98 | <ClCompile Include="..\Programs\_freeze_importlib.c" /> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 99 | </ItemGroup> |
| 100 | <ItemGroup> |
| 101 | <ProjectReference Include="pythoncore.vcxproj"> |
| 102 | <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project> |
| 103 | <Private>true</Private> |
| 104 | <ReferenceOutputAssembly>true</ReferenceOutputAssembly> |
| 105 | <CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies> |
| 106 | <LinkLibraryDependencies>true</LinkLibraryDependencies> |
| 107 | <UseLibraryDependencyInputs>false</UseLibraryDependencyInputs> |
| 108 | </ProjectReference> |
| 109 | </ItemGroup> |
| 110 | <ItemGroup> |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 111 | <None Include="..\Lib\importlib\_bootstrap.py"> |
Serhiy Storchaka | 79d1c2e | 2018-09-18 22:22:29 +0300 | [diff] [blame] | 112 | <ModName>importlib._bootstrap</ModName> |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 113 | <IntFile>$(IntDir)importlib.g.h</IntFile> |
| 114 | <OutFile>$(PySourcePath)Python\importlib.h</OutFile> |
| 115 | </None> |
| 116 | <None Include="..\Lib\importlib\_bootstrap_external.py"> |
Serhiy Storchaka | 79d1c2e | 2018-09-18 22:22:29 +0300 | [diff] [blame] | 117 | <ModName>importlib._bootstrap_external</ModName> |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 118 | <IntFile>$(IntDir)importlib_external.g.h</IntFile> |
| 119 | <OutFile>$(PySourcePath)Python\importlib_external.h</OutFile> |
| 120 | </None> |
Serhiy Storchaka | 79d1c2e | 2018-09-18 22:22:29 +0300 | [diff] [blame] | 121 | <None Include="..\Lib\zipimport.py"> |
| 122 | <ModName>zipimport</ModName> |
| 123 | <IntFile>$(IntDir)importlib_zipimport.g.h</IntFile> |
| 124 | <OutFile>$(PySourcePath)Python\importlib_zipimport.h</OutFile> |
| 125 | </None> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 126 | </ItemGroup> |
| 127 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 128 | <ImportGroup Label="ExtensionTargets"> |
| 129 | </ImportGroup> |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 130 | <Target Name="_RebuildImportLib"> |
Serhiy Storchaka | 79d1c2e | 2018-09-18 22:22:29 +0300 | [diff] [blame] | 131 | <Exec Command='"$(TargetPath)" "%(None.ModName)" "%(None.FullPath)" "%(None.IntFile)"' /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 132 | |
| 133 | <PropertyGroup> |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 134 | <_OldContent Condition="Exists($(OutTargetPath))"></_OldContent> |
| 135 | <_NewContent Condition="Exists($(IntTargetPath))">$([System.IO.File]::ReadAllText($(IntTargetPath)).Replace(`
`, `
`))</_NewContent> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 136 | </PropertyGroup> |
| 137 | |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 138 | <Copy SourceFiles="%(None.IntFile)" |
| 139 | DestinationFiles="%(None.OutFile)" |
| 140 | Condition="!Exists(%(None.OutFile)) or (Exists(%(None.IntFile)) and '$([System.IO.File]::ReadAllText(%(None.OutFile)).Replace(`
`, `
`))' != '$([System.IO.File]::ReadAllText(%(None.IntFile)).Replace(`
`, `
`))')"> |
| 141 | <Output TaskParameter="CopiedFiles" ItemName="_Updated" /> |
| 142 | </Copy> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 143 | |
Jeroen Demeyer | 3396d1e | 2019-03-29 19:37:22 +0100 | [diff] [blame] | 144 | <Warning Text="@(_Updated->'%(Filename)%(Extension)',', ') updated. You will need to rebuild pythoncore to see the changes.%0D%0A%0D%0AIf you are not developing on Windows but you see this error on a continuous integration build, you need to run 'make regen-all' and commit any changes." |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 145 | Condition="'@(_Updated)' != '' and $(Configuration) == 'Debug'" /> |
Jeroen Demeyer | 3396d1e | 2019-03-29 19:37:22 +0100 | [diff] [blame] | 146 | <Error Text="@(_Updated->'%(Filename)%(Extension)',', ') updated. You will need to rebuild pythoncore to see the changes.%0D%0A%0D%0AIf you are not developing on Windows but you see this error on a continuous integration build, you need to run 'make regen-all' and commit any changes." |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 147 | Condition="'@(_Updated)' != '' and $(Configuration) == 'Release'" /> |
| 148 | </Target> |
| 149 | <Target Name="RebuildImportLib" AfterTargets="AfterBuild" Condition="$(Configuration) == 'Debug' or $(Configuration) == 'Release'" |
| 150 | DependsOnTargets="_RebuildImportLib"> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 151 | </Target> |
| 152 | <Target Name="_CleanImportLib" BeforeTargets="CoreClean"> |
| 153 | <ItemGroup> |
| 154 | <Clean Include="$(IntDir)importlib.g.h" /> |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 155 | <Clean Include="$(IntDir)importlib_external.g.h" /> |
Serhiy Storchaka | 79d1c2e | 2018-09-18 22:22:29 +0300 | [diff] [blame] | 156 | <Clean Include="$(IntDir)importlib_zipimport.g.h" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 157 | </ItemGroup> |
| 158 | </Target> |
Nick Coghlan | 973fe0b | 2014-07-25 21:52:14 +1000 | [diff] [blame] | 159 | </Project> |