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

Steve Lhomme git at videolan.org
Fri Jun 26 11:41:34 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jun 23 11:14:43 2020 +0200| [79821b196f269d1d1512750e3f88c2727862f6ef] | 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.

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

 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 aa1c44a1a9..fa442d0fb9 100644
--- a/extras/package/win32/package.mak
+++ b/extras/package/win32/package.mak
@@ -25,6 +25,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