Home | History | Annotate | Download | only in PCbuild
      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>
     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>
     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>
     41     <SupportPGO>false</SupportPGO>
     42   </PropertyGroup>
     43   <Import Project="python.props" />
     44   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
     45   <PropertyGroup Label="Configuration">
     46     <ConfigurationType>Application</ConfigurationType>
     47     <CharacterSet>Unicode</CharacterSet>
     48   </PropertyGroup>
     49   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
     50   <ImportGroup Label="ExtensionSettings">
     51   </ImportGroup>
     52   <ImportGroup Label="PropertySheets">
     53     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
     54     <Import Project="pyproject.props" />
     55   </ImportGroup>
     56   <PropertyGroup Label="UserMacros" />
     57   <ItemDefinitionGroup>
     58     <ClCompile>
     59       <PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     60     </ClCompile>
     61     <Link>
     62       <SubSystem>Console</SubSystem>
     63     </Link>
     64   </ItemDefinitionGroup>
     65   <ItemGroup>
     66     <ClCompile Include="..\Programs\_freeze_importlib.c" />
     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>
     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>
     87   </ItemGroup>
     88   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
     89   <ImportGroup Label="ExtensionTargets">
     90   </ImportGroup>
     91   <Target Name="_RebuildImportLib">
     92     <Exec Command='"$(TargetPath)" "%(None.FullPath)" "%(None.IntFile)"' />
     93     
     94     <PropertyGroup>
     95       <_OldContent Condition="Exists($(OutTargetPath))"></_OldContent>
     96       <_NewContent Condition="Exists($(IntTargetPath))">$([System.IO.File]::ReadAllText($(IntTargetPath)).Replace(`&#x0D;&#x0A;`, `&#x0A;`))</_NewContent>
     97     </PropertyGroup>
     98     
     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(`&#x0D;&#x0A;`, `&#x0A;`))' != '$([System.IO.File]::ReadAllText(%(None.IntFile)).Replace(`&#x0D;&#x0A;`, `&#x0A;`))')">
    102       <Output TaskParameter="CopiedFiles" ItemName="_Updated" />
    103     </Copy>
    104     
    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">
    112   </Target>
    113   <Target Name="_CleanImportLib" BeforeTargets="CoreClean">
    114     <ItemGroup>
    115       <Clean Include="$(IntDir)importlib.g.h" />
    116       <Clean Include="$(IntDir)importlib_external.g.h" />
    117     </ItemGroup>
    118   </Target>
    119 </Project>
    120