2012-05-13 13:19:23 -03:00
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
|
<ItemGroup Label="ProjectConfigurations">
|
2014-11-22 16:54:57 -04:00
|
|
|
|
<ProjectConfiguration Include="Debug|Win32">
|
|
|
|
|
<Configuration>Debug</Configuration>
|
|
|
|
|
<Platform>Win32</Platform>
|
|
|
|
|
</ProjectConfiguration>
|
|
|
|
|
<ProjectConfiguration Include="Debug|x64">
|
|
|
|
|
<Configuration>Debug</Configuration>
|
|
|
|
|
<Platform>x64</Platform>
|
|
|
|
|
</ProjectConfiguration>
|
2012-05-13 13:19:23 -03:00
|
|
|
|
<ProjectConfiguration Include="PGInstrument|Win32">
|
|
|
|
|
<Configuration>PGInstrument</Configuration>
|
|
|
|
|
<Platform>Win32</Platform>
|
|
|
|
|
</ProjectConfiguration>
|
|
|
|
|
<ProjectConfiguration Include="PGInstrument|x64">
|
|
|
|
|
<Configuration>PGInstrument</Configuration>
|
|
|
|
|
<Platform>x64</Platform>
|
|
|
|
|
</ProjectConfiguration>
|
|
|
|
|
<ProjectConfiguration Include="PGUpdate|Win32">
|
|
|
|
|
<Configuration>PGUpdate</Configuration>
|
|
|
|
|
<Platform>Win32</Platform>
|
|
|
|
|
</ProjectConfiguration>
|
|
|
|
|
<ProjectConfiguration Include="PGUpdate|x64">
|
|
|
|
|
<Configuration>PGUpdate</Configuration>
|
|
|
|
|
<Platform>x64</Platform>
|
|
|
|
|
</ProjectConfiguration>
|
|
|
|
|
<ProjectConfiguration Include="Release|Win32">
|
|
|
|
|
<Configuration>Release</Configuration>
|
|
|
|
|
<Platform>Win32</Platform>
|
|
|
|
|
</ProjectConfiguration>
|
|
|
|
|
<ProjectConfiguration Include="Release|x64">
|
|
|
|
|
<Configuration>Release</Configuration>
|
|
|
|
|
<Platform>x64</Platform>
|
|
|
|
|
</ProjectConfiguration>
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<PropertyGroup Label="Globals">
|
|
|
|
|
<ProjectGuid>{885D4898-D08D-4091-9C40-C700CFE3FC5A}</ProjectGuid>
|
|
|
|
|
<RootNamespace>python3dll</RootNamespace>
|
|
|
|
|
<Keyword>Win32Proj</Keyword>
|
2014-11-22 16:54:57 -04:00
|
|
|
|
<TargetName>python3</TargetName>
|
|
|
|
|
<SupportPGO>false</SupportPGO>
|
2012-05-13 13:19:23 -03:00
|
|
|
|
</PropertyGroup>
|
2014-11-22 16:54:57 -04:00
|
|
|
|
<Import Project="python.props" />
|
2012-05-13 13:19:23 -03:00
|
|
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
2014-11-22 16:54:57 -04:00
|
|
|
|
<PropertyGroup Label="Configuration">
|
|
|
|
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
2012-05-13 13:19:23 -03:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
|
|
|
|
<ImportGroup Label="ExtensionSettings">
|
|
|
|
|
</ImportGroup>
|
2014-11-22 16:54:57 -04:00
|
|
|
|
<ImportGroup Label="PropertySheets">
|
2012-05-13 13:19:23 -03:00
|
|
|
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
|
|
|
|
<Import Project="pyproject.props" />
|
|
|
|
|
</ImportGroup>
|
|
|
|
|
<PropertyGroup Label="UserMacros" />
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
2014-11-22 16:54:57 -04:00
|
|
|
|
<_Machine>X86</_Machine>
|
|
|
|
|
<_Machine Condition="$(Platform) == 'x64'">X64</_Machine>
|
2016-07-13 23:58:21 -03:00
|
|
|
|
<ExtensionsToDeleteOnClean>$(ExtensionsToDeleteOnClean);$(IntDir)python3_d.def;$(IntDir)python3stub.def</ExtensionsToDeleteOnClean>
|
2012-05-13 13:19:23 -03:00
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<ItemDefinitionGroup>
|
2014-11-22 16:54:57 -04:00
|
|
|
|
<ClCompile>
|
|
|
|
|
<BufferSecurityCheck>false</BufferSecurityCheck>
|
|
|
|
|
</ClCompile>
|
|
|
|
|
<Link>
|
|
|
|
|
<AdditionalDependencies>$(OutDir)$(TargetName)stub.lib</AdditionalDependencies>
|
2015-01-31 15:17:07 -04:00
|
|
|
|
<ModuleDefinitionFile Condition="$(Configuration) != 'Debug'">$(PySourcePath)PC\python3.def</ModuleDefinitionFile>
|
|
|
|
|
<ModuleDefinitionFile Condition="$(Configuration) == 'Debug'">$(IntDir)python3_d.def</ModuleDefinitionFile>
|
2014-11-22 16:54:57 -04:00
|
|
|
|
<EntryPointSymbol>DllMain</EntryPointSymbol>
|
|
|
|
|
</Link>
|
|
|
|
|
<PreLinkEvent>
|
|
|
|
|
<Command>lib /nologo /def:"$(IntDir)python3stub.def" /out:"$(OutDir)$(TargetName)stub.lib" /MACHINE:$(_Machine)</Command>
|
|
|
|
|
<Message>Rebuilding $(TargetName)stub.lib</Message>
|
|
|
|
|
<Outputs>$(OutDir)$(TargetName)stub.lib</Outputs>
|
|
|
|
|
</PreLinkEvent>
|
2012-05-13 13:19:23 -03:00
|
|
|
|
</ItemDefinitionGroup>
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<None Include="..\PC\python3.def" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<ClCompile Include="..\PC\python3dll.c" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<ResourceCompile Include="..\PC\python_nt.rc" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
|
|
|
|
<ImportGroup Label="ExtensionTargets">
|
|
|
|
|
</ImportGroup>
|
2015-01-31 15:17:07 -04:00
|
|
|
|
|
2018-05-28 16:51:16 -03:00
|
|
|
|
<Target Name="BuildPython3_dDef" BeforeTargets="BuildStubDef" Condition="$(Configuration) == 'Debug'">
|
2015-01-31 15:17:07 -04:00
|
|
|
|
<ItemGroup>
|
|
|
|
|
<_DefLines Remove="@(_DefLines)" />
|
|
|
|
|
<_Lines Remove="@(_Lines)" />
|
2018-05-28 16:51:16 -03:00
|
|
|
|
<_OriginalLines Remove="@(_OriginalLines)" />
|
2015-01-31 15:17:07 -04:00
|
|
|
|
</ItemGroup>
|
|
|
|
|
<ReadLinesFromFile File="..\PC\python3.def">
|
|
|
|
|
<Output TaskParameter="Lines" ItemName="_DefLines" />
|
|
|
|
|
</ReadLinesFromFile>
|
2018-05-28 16:51:16 -03:00
|
|
|
|
<ReadLinesFromFile File="$(IntDir)python3_d.def" Condition="Exists('$(IntDir)python3_d.def')">
|
|
|
|
|
<Output TaskParameter="Lines" ItemName="_OriginalLines" />
|
|
|
|
|
</ReadLinesFromFile>
|
2015-01-31 15:17:07 -04:00
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<_Pattern1>(=python$(MajorVersionNumber)$(MinorVersionNumber))\.</_Pattern1>
|
|
|
|
|
<_Sub1>$1_d.</_Sub1>
|
|
|
|
|
<_Pattern2>"python3"</_Pattern2>
|
|
|
|
|
<_Sub2>"python3_d"</_Sub2>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<_Lines Include="@(_DefLines)">
|
|
|
|
|
<New>$([System.Text.RegularExpressions.Regex]::Replace($([System.Text.RegularExpressions.Regex]::Replace(`%(Identity)`, `$(_Pattern1)`, `$(_Sub1)`)), `$(_Pattern2)`, `$(_Sub2)`))</New>
|
|
|
|
|
</_Lines>
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<MakeDir Directories="$(IntDir)" />
|
2018-05-28 16:51:16 -03:00
|
|
|
|
<Message Text="Updating python3_d.def" Condition="@(_Lines->'%(New)') != @(_OriginalLines)" Importance="high" />
|
|
|
|
|
<WriteLinesToFile File="$(IntDir)python3_d.def" Lines="@(_Lines->'%(New)')" Overwrite="true"
|
|
|
|
|
Condition="@(_Lines->'%(New)') != @(_OriginalLines)" />
|
2015-01-31 15:17:07 -04:00
|
|
|
|
</Target>
|
|
|
|
|
|
2018-05-28 16:51:16 -03:00
|
|
|
|
<Target Name="BuildStubDef" BeforeTargets="PreLinkEvent">
|
2015-01-31 15:17:07 -04:00
|
|
|
|
<ItemGroup>
|
|
|
|
|
<_DefLines Remove="@(_DefLines)" />
|
|
|
|
|
<_Lines Remove="@(_Lines)" />
|
2018-05-28 16:51:16 -03:00
|
|
|
|
<_OriginalLines Remove="@(_OriginalLines)" />
|
2015-01-31 15:17:07 -04:00
|
|
|
|
</ItemGroup>
|
2014-11-22 16:54:57 -04:00
|
|
|
|
<ReadLinesFromFile File="..\PC\python3.def">
|
2015-01-31 15:17:07 -04:00
|
|
|
|
<Output TaskParameter="Lines" ItemName="_DefLines" />
|
2014-11-22 16:54:57 -04:00
|
|
|
|
</ReadLinesFromFile>
|
2018-05-28 16:51:16 -03:00
|
|
|
|
<ReadLinesFromFile File="$(IntDir)python3stub.def" Condition="Exists('$(IntDir)python3stub.def')">
|
|
|
|
|
<Output TaskParameter="Lines" ItemName="_OriginalLines" />
|
|
|
|
|
</ReadLinesFromFile>
|
2014-11-22 16:54:57 -04:00
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<_Pattern>^[\w.]+=.+?\.([^ ]+).*$</_Pattern>
|
|
|
|
|
<_Sub>$1</_Sub>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<_Lines Include="EXPORTS" />
|
2015-01-31 15:17:07 -04:00
|
|
|
|
<_Symbols Include="@(_DefLines)" Condition="$([System.Text.RegularExpressions.Regex]::IsMatch(`%(Identity)`, `$(_Pattern)`))">
|
2014-11-22 16:54:57 -04:00
|
|
|
|
<Symbol>$([System.Text.RegularExpressions.Regex]::Replace(`%(Identity)`, `$(_Pattern)`, `$(_Sub)`))</Symbol>
|
|
|
|
|
</_Symbols>
|
|
|
|
|
<_Lines Include="@(_Symbols->'%(Symbol)')" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
<MakeDir Directories="$(IntDir)" />
|
2018-05-28 19:39:25 -03:00
|
|
|
|
<Message Text="Updating python3stub.def" Condition="@(_Lines) != @(_OriginalLines)" Importance="high" />
|
2018-05-28 16:51:16 -03:00
|
|
|
|
<WriteLinesToFile File="$(IntDir)python3stub.def" Lines="@(_Lines)" Overwrite="true"
|
2018-05-28 19:39:25 -03:00
|
|
|
|
Condition="@(_Lines) != @(_OriginalLines)" />
|
2014-11-22 16:54:57 -04:00
|
|
|
|
</Target>
|
2012-05-13 13:19:23 -03:00
|
|
|
|
</Project>
|