blob: 4c5cd1e680bfb40f715e097920da57bbc02f1e4e [file] [log] [blame]
Brian Curtin401f9f32012-05-13 11:19:23 -05001<?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">
Steve Dower65e4cb12014-11-22 12:54:57 -08004 <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>
Brian Curtin401f9f32012-05-13 11:19:23 -050012 <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>{885D4898-D08D-4091-9C40-C700CFE3FC5A}</ProjectGuid>
39 <RootNamespace>python3dll</RootNamespace>
40 <Keyword>Win32Proj</Keyword>
Steve Dower65e4cb12014-11-22 12:54:57 -080041 <TargetName>python3</TargetName>
42 <MakeVersionInfoBeforeTarget>ClCompile</MakeVersionInfoBeforeTarget>
43 <SupportPGO>false</SupportPGO>
Brian Curtin401f9f32012-05-13 11:19:23 -050044 </PropertyGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080045 <Import Project="python.props" />
Brian Curtin401f9f32012-05-13 11:19:23 -050046 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
Steve Dower65e4cb12014-11-22 12:54:57 -080047 <PropertyGroup Label="Configuration">
48 <ConfigurationType>DynamicLibrary</ConfigurationType>
Brian Curtin401f9f32012-05-13 11:19:23 -050049 </PropertyGroup>
50 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
51 <ImportGroup Label="ExtensionSettings">
52 </ImportGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080053 <ImportGroup Label="PropertySheets">
Brian Curtin401f9f32012-05-13 11:19:23 -050054 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
55 <Import Project="pyproject.props" />
Brian Curtin401f9f32012-05-13 11:19:23 -050056 </ImportGroup>
57 <PropertyGroup Label="UserMacros" />
58 <PropertyGroup>
59 <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
Steve Dower65e4cb12014-11-22 12:54:57 -080060 <_Machine>X86</_Machine>
61 <_Machine Condition="$(Platform) == 'x64'">X64</_Machine>
Brian Curtin401f9f32012-05-13 11:19:23 -050062 </PropertyGroup>
63 <ItemDefinitionGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080064 <ClCompile>
65 <BufferSecurityCheck>false</BufferSecurityCheck>
66 </ClCompile>
67 <Link>
68 <AdditionalDependencies>$(OutDir)$(TargetName)stub.lib</AdditionalDependencies>
69 <ModuleDefinitionFile>$(PySourcePath)PC\python3.def</ModuleDefinitionFile>
70 <EntryPointSymbol>DllMain</EntryPointSymbol>
71 </Link>
72 <PreLinkEvent>
73 <Command>lib /nologo /def:"$(IntDir)python3stub.def" /out:"$(OutDir)$(TargetName)stub.lib" /MACHINE:$(_Machine)</Command>
74 <Message>Rebuilding $(TargetName)stub.lib</Message>
75 <Outputs>$(OutDir)$(TargetName)stub.lib</Outputs>
76 </PreLinkEvent>
Brian Curtin401f9f32012-05-13 11:19:23 -050077 </ItemDefinitionGroup>
78 <ItemGroup>
79 <None Include="..\PC\python3.def" />
80 </ItemGroup>
81 <ItemGroup>
82 <ClCompile Include="..\PC\python3dll.c" />
83 </ItemGroup>
84 <ItemGroup>
85 <ResourceCompile Include="..\PC\python_nt.rc" />
86 </ItemGroup>
87 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
88 <ImportGroup Label="ExtensionTargets">
89 </ImportGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080090 <Target Name="BuildStubDef" BeforeTargets="PreLinkEvent" Inputs="..\PC\python3.def" Outputs="$(IntDir)python3stub.def">
91 <ReadLinesFromFile File="..\PC\python3.def">
92 <Output TaskParameter="Lines" ItemName="DefLines" />
93 </ReadLinesFromFile>
94 <PropertyGroup>
95 <_Pattern>^[\w.]+=.+?\.([^ ]+).*$</_Pattern>
96 <_Sub>$1</_Sub>
97 </PropertyGroup>
98 <ItemGroup>
99 <_Lines Include="EXPORTS" />
100 <_Symbols Include="@(DefLines)" Condition="$([System.Text.RegularExpressions.Regex]::IsMatch(`%(Identity)`, `$(_Pattern)`))">
101 <Symbol>$([System.Text.RegularExpressions.Regex]::Replace(`%(Identity)`, `$(_Pattern)`, `$(_Sub)`))</Symbol>
102 </_Symbols>
103 <_Lines Include="@(_Symbols->'%(Symbol)')" />
104 </ItemGroup>
105 <MakeDir Directories="$(IntDir)" />
106 <WriteLinesToFile File="$(IntDir)python3stub.def" Lines="@(_Lines)" />
107 </Target>
108 <Target Name="_CleanStubDef" BeforeTargets="CoreClean">
109 <ItemGroup>
110 <Clean Include="$(IntDir)python3stub.def" />
111 </ItemGroup>
112 </Target>
Brian Curtin401f9f32012-05-13 11:19:23 -0500113</Project>