[vlc-devel] [PATCH 3.0 04/10] package: win32: copy the PDBs during package-win-install

Steve Lhomme robux4 at ycbcr.xyz
Fri Aug 21 13:40:58 CEST 2020


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>
---
 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
-- 
2.26.2



More information about the vlc-devel mailing list