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|ARM64">
9      <Configuration>Debug</Configuration>
10      <Platform>ARM64</Platform>
11    </ProjectConfiguration>
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>
20    <ProjectConfiguration Include="PGInstrument|ARM">
21      <Configuration>PGInstrument</Configuration>
22      <Platform>ARM</Platform>
23    </ProjectConfiguration>
24    <ProjectConfiguration Include="PGInstrument|ARM64">
25      <Configuration>PGInstrument</Configuration>
26      <Platform>ARM64</Platform>
27    </ProjectConfiguration>
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>
36    <ProjectConfiguration Include="PGUpdate|ARM">
37      <Configuration>PGUpdate</Configuration>
38      <Platform>ARM</Platform>
39    </ProjectConfiguration>
40    <ProjectConfiguration Include="PGUpdate|ARM64">
41      <Configuration>PGUpdate</Configuration>
42      <Platform>ARM64</Platform>
43    </ProjectConfiguration>
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>
52    <ProjectConfiguration Include="Release|ARM">
53      <Configuration>Release</Configuration>
54      <Platform>ARM</Platform>
55    </ProjectConfiguration>
56    <ProjectConfiguration Include="Release|ARM64">
57      <Configuration>Release</Configuration>
58      <Platform>ARM64</Platform>
59    </ProjectConfiguration>
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>
73    <SupportPGO>false</SupportPGO>
74  </PropertyGroup>
75  <Import Project="python.props" />
76  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
77  <PropertyGroup Label="Configuration">
78    <ConfigurationType>Application</ConfigurationType>
79    <CharacterSet>Unicode</CharacterSet>
80  </PropertyGroup>
81  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
82  <ImportGroup Label="ExtensionSettings">
83  </ImportGroup>
84  <ImportGroup Label="PropertySheets">
85    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
86    <Import Project="pyproject.props" />
87  </ImportGroup>
88  <PropertyGroup Label="UserMacros" />
89  <ItemDefinitionGroup>
90    <ClCompile>
91      <PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
92    </ClCompile>
93    <Link>
94      <SubSystem>Console</SubSystem>
95    </Link>
96  </ItemDefinitionGroup>
97  <ItemGroup>
98    <ClCompile Include="..\Programs\_freeze_importlib.c" />
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>
111    <None Include="..\Lib\importlib\_bootstrap.py">
112      <ModName>importlib._bootstrap</ModName>
113      <IntFile>$(IntDir)importlib.g.h</IntFile>
114      <OutFile>$(PySourcePath)Python\importlib.h</OutFile>
115    </None>
116    <None Include="..\Lib\importlib\_bootstrap_external.py">
117      <ModName>importlib._bootstrap_external</ModName>
118      <IntFile>$(IntDir)importlib_external.g.h</IntFile>
119      <OutFile>$(PySourcePath)Python\importlib_external.h</OutFile>
120    </None>
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>
126  </ItemGroup>
127  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
128  <ImportGroup Label="ExtensionTargets">
129  </ImportGroup>
130  <Target Name="_RebuildImportLib">
131    <Exec Command='"$(TargetPath)" "%(None.ModName)" "%(None.FullPath)" "%(None.IntFile)"' />
132
133    <PropertyGroup>
134      <_OldContent Condition="Exists($(OutTargetPath))"></_OldContent>
135      <_NewContent Condition="Exists($(IntTargetPath))">$([System.IO.File]::ReadAllText($(IntTargetPath)).Replace(`&#x0D;&#x0A;`, `&#x0A;`))</_NewContent>
136    </PropertyGroup>
137
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(`&#x0D;&#x0A;`, `&#x0A;`))' != '$([System.IO.File]::ReadAllText(%(None.IntFile)).Replace(`&#x0D;&#x0A;`, `&#x0A;`))')">
141      <Output TaskParameter="CopiedFiles" ItemName="_Updated" />
142    </Copy>
143
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."
145             Condition="'@(_Updated)' != '' and $(Configuration) == 'Debug'" />
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."
147           Condition="'@(_Updated)' != '' and $(Configuration) == 'Release'" />
148  </Target>
149  <Target Name="RebuildImportLib" AfterTargets="AfterBuild" Condition="$(Configuration) == 'Debug' or $(Configuration) == 'Release'"
150          DependsOnTargets="_RebuildImportLib">
151  </Target>
152  <Target Name="_CleanImportLib" BeforeTargets="CoreClean">
153    <ItemGroup>
154      <Clean Include="$(IntDir)importlib.g.h" />
155      <Clean Include="$(IntDir)importlib_external.g.h" />
156      <Clean Include="$(IntDir)importlib_zipimport.g.h" />
157    </ItemGroup>
158  </Target>
159</Project>
160