blob: 76885d8b354a8b8ecf99f279e5695f36c2a3171a [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>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +02008 <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>
Paul Monson8a1657b2019-02-14 08:31:30 -080016 <ProjectConfiguration Include="PGInstrument|ARM">
17 <Configuration>PGInstrument</Configuration>
18 <Platform>ARM</Platform>
19 </ProjectConfiguration>
Steve Dower65e4cb12014-11-22 12:54:57 -080020 <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>
Paul Monson8a1657b2019-02-14 08:31:30 -080028 <ProjectConfiguration Include="PGUpdate|ARM">
29 <Configuration>PGUpdate</Configuration>
30 <Platform>ARM</Platform>
31 </ProjectConfiguration>
Steve Dower65e4cb12014-11-22 12:54:57 -080032 <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>
Paul Monson8a1657b2019-02-14 08:31:30 -080040 <ProjectConfiguration Include="Release|ARM">
41 <Configuration>Release</Configuration>
42 <Platform>ARM</Platform>
43 </ProjectConfiguration>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020044 <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>{19C0C13F-47CA-4432-AFF3-799A296A4DDC}</ProjectGuid>
55 <Keyword>Win32Proj</Keyword>
56 <RootNamespace>_freeze_importlib</RootNamespace>
Steve Dower65e4cb12014-11-22 12:54:57 -080057 <SupportPGO>false</SupportPGO>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020058 </PropertyGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080059 <Import Project="python.props" />
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020060 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
Steve Dower65e4cb12014-11-22 12:54:57 -080061 <PropertyGroup Label="Configuration">
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020062 <ConfigurationType>Application</ConfigurationType>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020063 <CharacterSet>Unicode</CharacterSet>
64 </PropertyGroup>
65 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
66 <ImportGroup Label="ExtensionSettings">
67 </ImportGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080068 <ImportGroup Label="PropertySheets">
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020069 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
70 <Import Project="pyproject.props" />
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020071 </ImportGroup>
72 <PropertyGroup Label="UserMacros" />
Steve Dower65e4cb12014-11-22 12:54:57 -080073 <ItemDefinitionGroup>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020074 <ClCompile>
Steve Dower65e4cb12014-11-22 12:54:57 -080075 <PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020076 </ClCompile>
77 <Link>
78 <SubSystem>Console</SubSystem>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020079 </Link>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020080 </ItemDefinitionGroup>
81 <ItemGroup>
Nick Coghlan973fe0b2014-07-25 21:52:14 +100082 <ClCompile Include="..\Programs\_freeze_importlib.c" />
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020083 </ItemGroup>
84 <ItemGroup>
85 <ProjectReference Include="pythoncore.vcxproj">
86 <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>
87 <Private>true</Private>
88 <ReferenceOutputAssembly>true</ReferenceOutputAssembly>
89 <CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
90 <LinkLibraryDependencies>true</LinkLibraryDependencies>
91 <UseLibraryDependencyInputs>false</UseLibraryDependencyInputs>
92 </ProjectReference>
93 </ItemGroup>
94 <ItemGroup>
Steve Dower10beb3c2016-12-12 11:17:59 -080095 <None Include="..\Lib\importlib\_bootstrap.py">
Serhiy Storchaka79d1c2e2018-09-18 22:22:29 +030096 <ModName>importlib._bootstrap</ModName>
Steve Dower10beb3c2016-12-12 11:17:59 -080097 <IntFile>$(IntDir)importlib.g.h</IntFile>
98 <OutFile>$(PySourcePath)Python\importlib.h</OutFile>
99 </None>
100 <None Include="..\Lib\importlib\_bootstrap_external.py">
Serhiy Storchaka79d1c2e2018-09-18 22:22:29 +0300101 <ModName>importlib._bootstrap_external</ModName>
Steve Dower10beb3c2016-12-12 11:17:59 -0800102 <IntFile>$(IntDir)importlib_external.g.h</IntFile>
103 <OutFile>$(PySourcePath)Python\importlib_external.h</OutFile>
104 </None>
Serhiy Storchaka79d1c2e2018-09-18 22:22:29 +0300105 <None Include="..\Lib\zipimport.py">
106 <ModName>zipimport</ModName>
107 <IntFile>$(IntDir)importlib_zipimport.g.h</IntFile>
108 <OutFile>$(PySourcePath)Python\importlib_zipimport.h</OutFile>
109 </None>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +0200110 </ItemGroup>
111 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
112 <ImportGroup Label="ExtensionTargets">
113 </ImportGroup>
Steve Dower10beb3c2016-12-12 11:17:59 -0800114 <Target Name="_RebuildImportLib">
Serhiy Storchaka79d1c2e2018-09-18 22:22:29 +0300115 <Exec Command='"$(TargetPath)" "%(None.ModName)" "%(None.FullPath)" "%(None.IntFile)"' />
Steve Dower65e4cb12014-11-22 12:54:57 -0800116
117 <PropertyGroup>
Steve Dower10beb3c2016-12-12 11:17:59 -0800118 <_OldContent Condition="Exists($(OutTargetPath))"></_OldContent>
119 <_NewContent Condition="Exists($(IntTargetPath))">$([System.IO.File]::ReadAllText($(IntTargetPath)).Replace(`&#x0D;&#x0A;`, `&#x0A;`))</_NewContent>
Steve Dower65e4cb12014-11-22 12:54:57 -0800120 </PropertyGroup>
121
Steve Dower10beb3c2016-12-12 11:17:59 -0800122 <Copy SourceFiles="%(None.IntFile)"
123 DestinationFiles="%(None.OutFile)"
124 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;`))')">
125 <Output TaskParameter="CopiedFiles" ItemName="_Updated" />
126 </Copy>
Steve Dower65e4cb12014-11-22 12:54:57 -0800127
Jeroen Demeyer3396d1e2019-03-29 19:37:22 +0100128 <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 -0800129 Condition="'@(_Updated)' != '' and $(Configuration) == 'Debug'" />
Jeroen Demeyer3396d1e2019-03-29 19:37:22 +0100130 <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 -0800131 Condition="'@(_Updated)' != '' and $(Configuration) == 'Release'" />
132 </Target>
133 <Target Name="RebuildImportLib" AfterTargets="AfterBuild" Condition="$(Configuration) == 'Debug' or $(Configuration) == 'Release'"
134 DependsOnTargets="_RebuildImportLib">
Steve Dower65e4cb12014-11-22 12:54:57 -0800135 </Target>
136 <Target Name="_CleanImportLib" BeforeTargets="CoreClean">
137 <ItemGroup>
138 <Clean Include="$(IntDir)importlib.g.h" />
Steve Dower10beb3c2016-12-12 11:17:59 -0800139 <Clean Include="$(IntDir)importlib_external.g.h" />
Serhiy Storchaka79d1c2e2018-09-18 22:22:29 +0300140 <Clean Include="$(IntDir)importlib_zipimport.g.h" />
Steve Dower65e4cb12014-11-22 12:54:57 -0800141 </ItemGroup>
142 </Target>
Nick Coghlan973fe0b2014-07-25 21:52:14 +1000143</Project>