From e5a6c4ecfc31ee7acca853314822dddde62bd6ca Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Sat, 31 Jan 2015 11:17:07 -0800 Subject: Fixes python3_d.dll build so that functions are forwarded to python35_d.dll --- PCbuild/python3dll.vcxproj | 35 ++++++++++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/PCbuild/python3dll.vcxproj b/PCbuild/python3dll.vcxproj index 4c5cd1e..b03d09f 100644 --- a/PCbuild/python3dll.vcxproj +++ b/PCbuild/python3dll.vcxproj @@ -66,7 +66,8 @@ $(OutDir)$(TargetName)stub.lib - $(PySourcePath)PC\python3.def + $(PySourcePath)PC\python3.def + $(IntDir)python3_d.def DllMain @@ -87,9 +88,37 @@ + + + + <_DefLines Remove="@(_DefLines)" /> + <_Lines Remove="@(_Lines)" /> + + + + + + <_Pattern1>(=python$(MajorVersionNumber)$(MinorVersionNumber))\. + <_Sub1>$1_d. + <_Pattern2>"python3" + <_Sub2>"python3_d" + + + <_Lines Include="@(_DefLines)"> + $([System.Text.RegularExpressions.Regex]::Replace($([System.Text.RegularExpressions.Regex]::Replace(`%(Identity)`, `$(_Pattern1)`, `$(_Sub1)`)), `$(_Pattern2)`, `$(_Sub2)`)) + + + + + + + + <_DefLines Remove="@(_DefLines)" /> + <_Lines Remove="@(_Lines)" /> + - + <_Pattern>^[\w.]+=.+?\.([^ ]+).*$ @@ -97,7 +126,7 @@ <_Lines Include="EXPORTS" /> - <_Symbols Include="@(DefLines)" Condition="$([System.Text.RegularExpressions.Regex]::IsMatch(`%(Identity)`, `$(_Pattern)`))"> + <_Symbols Include="@(_DefLines)" Condition="$([System.Text.RegularExpressions.Regex]::IsMatch(`%(Identity)`, `$(_Pattern)`))"> $([System.Text.RegularExpressions.Regex]::Replace(`%(Identity)`, `$(_Pattern)`, `$(_Sub)`)) <_Lines Include="@(_Symbols->'%(Symbol)')" /> -- cgit v0.12