[vlc-commits] package: win32: copy the PDBs during package-win-install

Steve Lhomme git at videolan.org
Thu Aug 27 09:37:21 CEST 2020


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jun 23 11:14:43 2020 +0200| [a2514a61d087b08f217815521900d727770867d8] | committer: Steve Lhomme

package: win32: copy the PDBs during package-win-install

The PDBs should be next to the DLL used so that the debugger can find them
easily.

(cherry picked from commit 79821b196f269d1d1512750e3f88c2727862f6ef)

Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=a2514a61d087b08f217815521900d727770867d8
---

 extras/package/win32/package.mak | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/extras/package/win32/package.mak b/extras/package/win32/package.mak
index 048a1dbf93..2045de887a 100644
--- a/extras/package/win32/package.mak
+++ b/extras/package/win32/package.mak
@@ -26,6 +26,11 @@ package-win-install:
 	$(MAKE) install
 	cp '$(DESTDIR)$(libdir)/libvlc.dll.a' '$(DESTDIR)$(libdir)/libvlc.lib'
 	cp '$(DESTDIR)$(libdir)/libvlccore.dll.a' '$(DESTDIR)$(libdir)/libvlccore.lib'
+if ENABLE_PDB
+	cp lib/.libs/libvlc.pdb '$(DESTDIR)$(bindir)'
+	cp src/.libs/libvlccore.pdb '$(DESTDIR)$(bindir)'
+	find '$(DESTDIR)$(libdir)/vlc/plugins' -name "*.dll" -exec sh -c "echo {} | sed -e 's@$(DESTDIR)$(libdir)/vlc/plugins/\(.*\)/\(.*\).dll at modules/.libs/\2.pdb $(DESTDIR)$(libdir)/vlc/plugins/\1@' | xargs -t cp " \;
+endif
 	touch $@
 
 package-win-sdk: package-win-install



More information about the vlc-commits mailing list