[vlc-devel] [PATCH 3/4] package: win32: copy the PDBs during package-win-install

Steve Lhomme robux4 at ycbcr.xyz
Tue Jun 23 13:57:29 CEST 2020


The PDBs should be next to the DLL used so that the debugger can find them
easily.
---
 extras/package/win32/package.mak | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/extras/package/win32/package.mak b/extras/package/win32/package.mak
index aa1c44a1a9d..05a0e4fb27a 100644
--- a/extras/package/win32/package.mak
+++ b/extras/package/win32/package.mak
@@ -25,6 +25,9 @@ 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'
+	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 " \;
 	touch $@
 
 package-win-sdk: package-win-install
-- 
2.26.2



More information about the vlc-devel mailing list