blob: c73266301e8b20a28c7650823355e74a20a52e82 [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">
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 Dower65e4cb12014-11-22 12:54:57 -080012 <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öwis96d97ec2012-07-28 20:46:52 +020028 <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 Dower65e4cb12014-11-22 12:54:57 -080041 <SupportPGO>false</SupportPGO>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020042 </PropertyGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080043 <Import Project="python.props" />
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020044 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
Steve Dower65e4cb12014-11-22 12:54:57 -080045 <PropertyGroup Label="Configuration">
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020046 <ConfigurationType>Application</ConfigurationType>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020047 <CharacterSet>Unicode</CharacterSet>
48 </PropertyGroup>
49 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
50 <ImportGroup Label="ExtensionSettings">
51 </ImportGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080052 <ImportGroup Label="PropertySheets">
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020053 <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öwis96d97ec2012-07-28 20:46:52 +020055 </ImportGroup>
56 <PropertyGroup Label="UserMacros" />
Steve Dower65e4cb12014-11-22 12:54:57 -080057 <ItemDefinitionGroup>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020058 <ClCompile>
Steve Dower65e4cb12014-11-22 12:54:57 -080059 <PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020060 </ClCompile>
61 <Link>
62 <SubSystem>Console</SubSystem>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020063 </Link>
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020064 </ItemDefinitionGroup>
65 <ItemGroup>
Nick Coghlan973fe0b2014-07-25 21:52:14 +100066 <ClCompile Include="..\Programs\_freeze_importlib.c" />
Martin v. Löwis96d97ec2012-07-28 20:46:52 +020067 </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 Dower10beb3c2016-12-12 11:17:59 -080079 <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öwis96d97ec2012-07-28 20:46:52 +020087 </ItemGroup>
88 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
89 <ImportGroup Label="ExtensionTargets">
90 </ImportGroup>
Steve Dower10beb3c2016-12-12 11:17:59 -080091 <Target Name="_RebuildImportLib">
92 <Exec Command='"$(TargetPath)" "%(None.FullPath)" "%(None.IntFile)"' />
Steve Dower65e4cb12014-11-22 12:54:57 -080093
94 <PropertyGroup>
Steve Dower10beb3c2016-12-12 11:17:59 -080095 <_OldContent Condition="Exists($(OutTargetPath))"></_OldContent>
96 <_NewContent Condition="Exists($(IntTargetPath))">$([System.IO.File]::ReadAllText($(IntTargetPath)).Replace(`&#x0D;&#x0A;`, `&#x0A;`))</_NewContent>
Steve Dower65e4cb12014-11-22 12:54:57 -080097 </PropertyGroup>
98
Steve Dower10beb3c2016-12-12 11:17:59 -080099 <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(`&#x0D;&#x0A;`, `&#x0A;`))' != '$([System.IO.File]::ReadAllText(%(None.IntFile)).Replace(`&#x0D;&#x0A;`, `&#x0A;`))')">
102 <Output TaskParameter="CopiedFiles" ItemName="_Updated" />
103 </Copy>
Steve Dower65e4cb12014-11-22 12:54:57 -0800104
Steve Dower10beb3c2016-12-12 11:17:59 -0800105 <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 Dower65e4cb12014-11-22 12:54:57 -0800112 </Target>
113 <Target Name="_CleanImportLib" BeforeTargets="CoreClean">
114 <ItemGroup>
115 <Clean Include="$(IntDir)importlib.g.h" />
Steve Dower10beb3c2016-12-12 11:17:59 -0800116 <Clean Include="$(IntDir)importlib_external.g.h" />
Steve Dower65e4cb12014-11-22 12:54:57 -0800117 </ItemGroup>
118 </Target>
Nick Coghlan973fe0b2014-07-25 21:52:14 +1000119</Project>