Skip to content

Commit 6a688b3

Browse files
committed
Copy dbgcore.dll and DbgModel.dll as a post-build step into the same directory as the unit test runner so it finds the correct versions.
1 parent 8bb6245 commit 6a688b3

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

test/PyExtTest/PyExtTest.vcxproj

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,15 @@
103103
<SubSystem>Console</SubSystem>
104104
</Link>
105105
<PostBuildEvent>
106-
<Command>echo Copying dbghelp.dll and symsrv.dll locally...
106+
<Command>echo Copying Windows SDK debugger DLLs to target directory...
107107
cd $(TargetDir)
108108
IF NOT EXIST dbgeng.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\dbgeng.dll" .\
109+
IF NOT EXIST dbgcore.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\dbgcore.dll" .\
109110
IF NOT EXIST dbghelp.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\dbghelp.dll" .\
111+
IF NOT EXIST DbgModel.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\DbgModel.dll" .\
110112
IF NOT EXIST symsrv.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\symsrv.dll" .\
111113
</Command>
112-
<Message>Copy dbghelp and symsrv from the Debugging Tools for Windows package since the one that ships in system32 can't download symbols from a remote server.</Message>
114+
<Message>Copying dbghelp and symsrv from the Debugging Tools for Windows package since the one that ships in system32 can't download symbols from a remote server...</Message>
113115
</PostBuildEvent>
114116
</ItemDefinitionGroup>
115117
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
@@ -126,13 +128,15 @@ IF NOT EXIST symsrv.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\syms
126128
<SubSystem>Console</SubSystem>
127129
</Link>
128130
<PostBuildEvent>
129-
<Command>echo Copying dbghelp.dll and symsrv.dll locally...
131+
<Command>echo Copying Windows SDK debugger DLLs to target directory...
130132
cd $(TargetDir)
131133
IF NOT EXIST dbgeng.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\dbgeng.dll" .\
134+
IF NOT EXIST dbgcore.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\dbgcore.dll" .\
132135
IF NOT EXIST dbghelp.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\dbghelp.dll" .\
136+
IF NOT EXIST DbgModel.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\DbgModel.dll" .\
133137
IF NOT EXIST symsrv.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\symsrv.dll" .\
134138
</Command>
135-
<Message>Copy dbghelp and symsrv from the Debugging Tools for Windows package since the one that ships in system32 can't download symbols from a remote server.</Message>
139+
<Message>Copying dbghelp and symsrv from the Debugging Tools for Windows package since the one that ships in system32 can't download symbols from a remote server...</Message>
136140
</PostBuildEvent>
137141
</ItemDefinitionGroup>
138142
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
@@ -153,13 +157,15 @@ IF NOT EXIST symsrv.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\syms
153157
<SubSystem>Console</SubSystem>
154158
</Link>
155159
<PostBuildEvent>
156-
<Command>echo Copying dbghelp.dll and symsrv.dll locally...
160+
<Command>echo Copying Windows SDK debugger DLLs to target directory...
157161
cd $(TargetDir)
158162
IF NOT EXIST dbgeng.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\dbgeng.dll" .\
163+
IF NOT EXIST dbgcore.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\dbgcore.dll" .\
159164
IF NOT EXIST dbghelp.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\dbghelp.dll" .\
165+
IF NOT EXIST DbgModel.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\DbgModel.dll" .\
160166
IF NOT EXIST symsrv.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\symsrv.dll" .\
161167
</Command>
162-
<Message>Copy dbghelp and symsrv from the Debugging Tools for Windows package since the one that ships in system32 can't download symbols from a remote server.</Message>
168+
<Message>Copying dbghelp and symsrv from the Debugging Tools for Windows package since the one that ships in system32 can't download symbols from a remote server...</Message>
163169
</PostBuildEvent>
164170
</ItemDefinitionGroup>
165171
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@@ -180,13 +186,15 @@ IF NOT EXIST symsrv.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\syms
180186
<SubSystem>Console</SubSystem>
181187
</Link>
182188
<PostBuildEvent>
183-
<Command>echo Copying dbghelp.dll and symsrv.dll locally...
189+
<Command>echo Copying Windows SDK debugger DLLs to target directory...
184190
cd $(TargetDir)
185191
IF NOT EXIST dbgeng.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\dbgeng.dll" .\
192+
IF NOT EXIST dbgcore.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\dbgcore.dll" .\
186193
IF NOT EXIST dbghelp.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\dbghelp.dll" .\
194+
IF NOT EXIST DbgModel.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\DbgModel.dll" .\
187195
IF NOT EXIST symsrv.dll copy "$(FrameworkSdkDir)Debuggers\$(PlatformTarget)\symsrv.dll" .\
188196
</Command>
189-
<Message>Copy dbghelp and symsrv from the Debugging Tools for Windows package since the one that ships in system32 can't download symbols from a remote server.</Message>
197+
<Message>Copying dbghelp and symsrv from the Debugging Tools for Windows package since the one that ships in system32 can't download symbols from a remote server...</Message>
190198
</PostBuildEvent>
191199
</ItemDefinitionGroup>
192200
<ItemGroup>

0 commit comments

Comments
 (0)