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"> |
| 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> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 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> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 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>{19C0C13F-47CA-4432-AFF3-799A296A4DDC}</ProjectGuid> |
| 39 | <Keyword>Win32Proj</Keyword> |
| 40 | <RootNamespace>_freeze_importlib</RootNamespace> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 41 | <SupportPGO>false</SupportPGO> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 42 | </PropertyGroup> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 43 | <Import Project="python.props" /> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 44 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 45 | <PropertyGroup Label="Configuration"> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 46 | <ConfigurationType>Application</ConfigurationType> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 47 | <CharacterSet>Unicode</CharacterSet> |
| 48 | </PropertyGroup> |
| 49 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
| 50 | <ImportGroup Label="ExtensionSettings"> |
| 51 | </ImportGroup> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 52 | <ImportGroup Label="PropertySheets"> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 53 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
| 54 | <Import Project="pyproject.props" /> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 55 | </ImportGroup> |
| 56 | <PropertyGroup Label="UserMacros" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 57 | <ItemDefinitionGroup> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 58 | <ClCompile> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 59 | <PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 60 | </ClCompile> |
| 61 | <Link> |
| 62 | <SubSystem>Console</SubSystem> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 63 | </Link> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 64 | </ItemDefinitionGroup> |
| 65 | <ItemGroup> |
Nick Coghlan | 973fe0b | 2014-07-25 21:52:14 +1000 | [diff] [blame] | 66 | <ClCompile Include="..\Programs\_freeze_importlib.c" /> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 67 | </ItemGroup> |
| 68 | <ItemGroup> |
| 69 | <ProjectReference Include="pythoncore.vcxproj"> |
| 70 | <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project> |
| 71 | <Private>true</Private> |
| 72 | <ReferenceOutputAssembly>true</ReferenceOutputAssembly> |
| 73 | <CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies> |
| 74 | <LinkLibraryDependencies>true</LinkLibraryDependencies> |
| 75 | <UseLibraryDependencyInputs>false</UseLibraryDependencyInputs> |
| 76 | </ProjectReference> |
| 77 | </ItemGroup> |
| 78 | <ItemGroup> |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 79 | <None Include="..\Lib\importlib\_bootstrap.py"> |
| 80 | <IntFile>$(IntDir)importlib.g.h</IntFile> |
| 81 | <OutFile>$(PySourcePath)Python\importlib.h</OutFile> |
| 82 | </None> |
| 83 | <None Include="..\Lib\importlib\_bootstrap_external.py"> |
| 84 | <IntFile>$(IntDir)importlib_external.g.h</IntFile> |
| 85 | <OutFile>$(PySourcePath)Python\importlib_external.h</OutFile> |
| 86 | </None> |
Martin v. Löwis | 96d97ec | 2012-07-28 20:46:52 +0200 | [diff] [blame] | 87 | </ItemGroup> |
| 88 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 89 | <ImportGroup Label="ExtensionTargets"> |
| 90 | </ImportGroup> |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 91 | <Target Name="_RebuildImportLib"> |
| 92 | <Exec Command='"$(TargetPath)" "%(None.FullPath)" "%(None.IntFile)"' /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 93 | |
| 94 | <PropertyGroup> |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 95 | <_OldContent Condition="Exists($(OutTargetPath))"></_OldContent> |
| 96 | <_NewContent Condition="Exists($(IntTargetPath))">$([System.IO.File]::ReadAllText($(IntTargetPath)).Replace(`
`, `
`))</_NewContent> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 97 | </PropertyGroup> |
| 98 | |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 99 | <Copy SourceFiles="%(None.IntFile)" |
| 100 | DestinationFiles="%(None.OutFile)" |
| 101 | Condition="!Exists(%(None.OutFile)) or (Exists(%(None.IntFile)) and '$([System.IO.File]::ReadAllText(%(None.OutFile)).Replace(`
`, `
`))' != '$([System.IO.File]::ReadAllText(%(None.IntFile)).Replace(`
`, `
`))')"> |
| 102 | <Output TaskParameter="CopiedFiles" ItemName="_Updated" /> |
| 103 | </Copy> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 104 | |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 105 | <Warning Text="@(_Updated->'%(Filename)%(Extension)',', ') updated. You will need to rebuild pythoncore to see the changes." |
| 106 | Condition="'@(_Updated)' != '' and $(Configuration) == 'Debug'" /> |
| 107 | <Error Text="@(_Updated->'%(Filename)%(Extension)',', ') updated. You will need to rebuild pythoncore to see the changes." |
| 108 | Condition="'@(_Updated)' != '' and $(Configuration) == 'Release'" /> |
| 109 | </Target> |
| 110 | <Target Name="RebuildImportLib" AfterTargets="AfterBuild" Condition="$(Configuration) == 'Debug' or $(Configuration) == 'Release'" |
| 111 | DependsOnTargets="_RebuildImportLib"> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 112 | </Target> |
| 113 | <Target Name="_CleanImportLib" BeforeTargets="CoreClean"> |
| 114 | <ItemGroup> |
| 115 | <Clean Include="$(IntDir)importlib.g.h" /> |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 116 | <Clean Include="$(IntDir)importlib_external.g.h" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 117 | </ItemGroup> |
| 118 | </Target> |
Nick Coghlan | 973fe0b | 2014-07-25 21:52:14 +1000 | [diff] [blame] | 119 | </Project> |