blob: a0fe49c464d5cd719bea9bd3dd812f23415288bf [file] [log] [blame]
Martin v. Löwis96d97ec2012-07-28 20:46:52 +02001<?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 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>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020012 <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>
Steve Dower65e4cb12014-11-22 12:54:57 -080028 <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>
Steve Dower65e4cb12014-11-22 12:54:57 -080044 <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>
58 <Platform>ARM64</Platform>
59 </ProjectConfiguration>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020060 <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 Dower65e4cb12014-11-22 12:54:57 -080073 <SupportPGO>false</SupportPGO>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020074 </PropertyGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080075 <Import Project="python.props" />
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020076 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
Steve Dower65e4cb12014-11-22 12:54:57 -080077 <PropertyGroup Label="Configuration">
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020078 <ConfigurationType>Application</ConfigurationType>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020079 <CharacterSet>Unicode</CharacterSet>
80 </PropertyGroup>
81 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
82 <ImportGroup Label="ExtensionSettings">
83 </ImportGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080084 <ImportGroup Label="PropertySheets">
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020085 <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öwis96d97ec2012-07-28 20:46:52 +020087 </ImportGroup>
88 <PropertyGroup Label="UserMacros" />
Steve Dower65e4cb12014-11-22 12:54:57 -080089 <ItemDefinitionGroup>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020090 <ClCompile>
Steve Dower65e4cb12014-11-22 12:54:57 -080091 <PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020092 </ClCompile>
93 <Link>
94 <SubSystem>Console</SubSystem>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020095 </Link>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020096 </ItemDefinitionGroup>
97 <ItemGroup>
Nick Coghlan973fe0b2014-07-25 21:52:14 +100098 <ClCompile Include="..\Programs\_freeze_importlib.c" />
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020099 </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 Dower10beb3c2016-12-12 11:17:59 -0800111 <None Include="..\Lib\importlib\_bootstrap.py">
Serhiy Storchaka79d1c2e2018-09-18 22:22:29 +0300112 <ModName>importlib._bootstrap</ModName>
Steve Dower10beb3c2016-12-12 11:17:59 -0800113 <IntFile>$(IntDir)importlib.g.h</IntFile>
114 <OutFile>$(PySourcePath)Python\importlib.h</OutFile>
115 </None>
116 <None Include="..\Lib\importlib\_bootstrap_external.py">
Serhiy Storchaka79d1c2e2018-09-18 22:22:29 +0300117 <ModName>importlib._bootstrap_external</ModName>
Steve Dower10beb3c2016-12-12 11:17:59 -0800118 <IntFile>$(IntDir)importlib_external.g.h</IntFile>
119 <OutFile>$(PySourcePath)Python\importlib_external.h</OutFile>
120 </None>
Serhiy Storchaka79d1c2e2018-09-18 22:22:29 +0300121 <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öwis96d97ec2012-07-28 20:46:52 +0200126 </ItemGroup>
127 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
128 <ImportGroup Label="ExtensionTargets">
129 </ImportGroup>
Steve Dower10beb3c2016-12-12 11:17:59 -0800130 <Target Name="_RebuildImportLib">
Serhiy Storchaka79d1c2e2018-09-18 22:22:29 +0300131 <Exec Command='"$(TargetPath)" "%(None.ModName)" "%(None.FullPath)" "%(None.IntFile)"' />
Steve Dower65e4cb12014-11-22 12:54:57 -0800132
133 <PropertyGroup>
Steve Dower10beb3c2016-12-12 11:17:59 -0800134 <_OldContent Condition="Exists($(OutTargetPath))"></_OldContent>
135 <_NewContent Condition="Exists($(IntTargetPath))">$([System.IO.File]::ReadAllText($(IntTargetPath)).Replace(`&#x0D;&#x0A;`, `&#x0A;`))</_NewContent>
Steve Dower65e4cb12014-11-22 12:54:57 -0800136 </PropertyGroup>
137
Steve Dower10beb3c2016-12-12 11:17:59 -0800138 <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(`&#x0D;&#x0A;`, `&#x0A;`))' != '$([System.IO.File]::ReadAllText(%(None.IntFile)).Replace(`&#x0D;&#x0A;`, `&#x0A;`))')">
141 <Output TaskParameter="CopiedFiles" ItemName="_Updated" />
142 </Copy>
Steve Dower65e4cb12014-11-22 12:54:57 -0800143
Jeroen Demeyer3396d1e2019-03-29 19:37:22 +0100144 <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 Dower10beb3c2016-12-12 11:17:59 -0800145 Condition="'@(_Updated)' != '' and $(Configuration) == 'Debug'" />
Jeroen Demeyer3396d1e2019-03-29 19:37:22 +0100146 <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 Dower10beb3c2016-12-12 11:17:59 -0800147 Condition="'@(_Updated)' != '' and $(Configuration) == 'Release'" />
148 </Target>
149 <Target Name="RebuildImportLib" AfterTargets="AfterBuild" Condition="$(Configuration) == 'Debug' or $(Configuration) == 'Release'"
150 DependsOnTargets="_RebuildImportLib">
Steve Dower65e4cb12014-11-22 12:54:57 -0800151 </Target>
152 <Target Name="_CleanImportLib" BeforeTargets="CoreClean">
153 <ItemGroup>
154 <Clean Include="$(IntDir)importlib.g.h" />
Steve Dower10beb3c2016-12-12 11:17:59 -0800155 <Clean Include="$(IntDir)importlib_external.g.h" />
Serhiy Storchaka79d1c2e2018-09-18 22:22:29 +0300156 <Clean Include="$(IntDir)importlib_zipimport.g.h" />
Steve Dower65e4cb12014-11-22 12:54:57 -0800157 </ItemGroup>
158 </Target>
Nick Coghlan973fe0b2014-07-25 21:52:14 +1000159</Project>