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>{B11D750F-CD1F-4A96-85CE-E69A5C5259F9}</ProjectGuid>
     39     <MakeVersionInfoBeforeTarget>ClCompile</MakeVersionInfoBeforeTarget>
     40   </PropertyGroup>
     41   <Import Project="python.props" />
     42   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
     43   <PropertyGroup Label="Configuration">
     44     <ConfigurationType>Application</ConfigurationType>
     45     <UseOfMfc>false</UseOfMfc>
     46     <CharacterSet>MultiByte</CharacterSet>
     47   </PropertyGroup>
     48   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
     49   <ImportGroup Label="ExtensionSettings">
     50   </ImportGroup>
     51   <ImportGroup Label="PropertySheets">
     52     <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
     53     <Import Project="pyproject.props" />
     54   </ImportGroup>
     55   <PropertyGroup Label="UserMacros" />
     56   <PropertyGroup>
     57     <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
     58     <!-- For VS2008, we have to embed the manifest to be able to run -->
     59     <GenerateManifest Condition="'$(PlatformToolset)' == 'v90' or '$(BasePlatformToolset)' == 'v90'">true</GenerateManifest>
     60     <EmbedManifest Condition="'$(PlatformToolset)' == 'v90' or '$(BasePlatformToolset)' == 'v90'">true</EmbedManifest>
     61   </PropertyGroup>
     62   <ItemDefinitionGroup>
     63     <ClCompile>
     64       <PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     65     </ClCompile>
     66     <Link>
     67       <SubSystem>Console</SubSystem>
     68       <StackReserveSize>2000000</StackReserveSize>
     69       <BaseAddress>0x1d000000</BaseAddress>
     70     </Link>
     71   </ItemDefinitionGroup>
     72   <ItemGroup>
     73     <None Include="..\PC\pycon.ico" />
     74   </ItemGroup>
     75   <ItemGroup>
     76     <ResourceCompile Include="..\PC\python_exe.rc" />
     77   </ItemGroup>
     78   <ItemGroup>
     79     <ClCompile Include="..\Modules\python.c" />
     80   </ItemGroup>
     81   <ItemGroup>
     82     <ProjectReference Include="pythoncore.vcxproj">
     83       <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project>
     84       <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
     85     </ProjectReference>
     86     <ProjectReference Include="w9xpopen.vcxproj">
     87       <Project>{e9e0a1f6-0009-4e8c-b8f8-1b8f5d49a058}</Project>
     88       <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
     89     </ProjectReference>
     90   </ItemGroup>
     91   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
     92   <ImportGroup Label="ExtensionTargets">
     93   </ImportGroup>
     94   <Target Name="GeneratePythonBat" AfterTargets="AfterBuild">
     95     <PropertyGroup>
     96       <_Content>@rem This script invokes the most recently built Python with all arguments
     97 @rem passed through to the interpreter.  This file is generated by the
     98 @rem build process and any changes *will* be thrown away by the next
     99 @rem rebuild.
    100 @rem This is only meant as a convenience for developing CPython
    101 @rem and using it outside of that context is ill-advised.
    102 @echo Running $(Configuration)^|$(Platform) interpreter...
    103 @"$(OutDir)python$(PyDebugExt).exe" %*
    104 </_Content>
    105       <_ExistingContent Condition="Exists('$(PySourcePath)python.bat')">$([System.IO.File]::ReadAllText('$(PySourcePath)python.bat'))</_ExistingContent>
    106     </PropertyGroup>
    107     <WriteLinesToFile File="$(PySourcePath)python.bat" Lines="$(_Content)" Overwrite="true" Condition="'$(_Content)' != '$(_ExistingContent)'" />
    108   </Target>
    109 </Project>
    110