[vlc-devel] [PATCH 4/4] win32: package: install generated .pdb files with package-win-common

Steve Lhomme robux4 at ycbcr.xyz
Mon May 20 11:23:58 CEST 2019


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

diff --git a/extras/package/win32/package.mak b/extras/package/win32/package.mak
index 0d7e57bde6..54eabae64d 100644
--- a/extras/package/win32/package.mak
+++ b/extras/package/win32/package.mak
@@ -40,6 +40,11 @@ package-win-sdk: package-win-install
 package-win-common: package-win-install package-win-sdk
 # Executables, major libs
 	find $(prefix) -maxdepth 4 \( -name "*$(LIBEXT)" -o -name "*$(EXEEXT)" \) -exec cp {} "$(win32_destdir)/" \;
+if HAVE_PDB
+	for dir in bin lib src; do \
+	  cp $$dir/.libs/*.pdb $(win32_destdir); \
+	done
+endif
 
 # Text files, clean them from mail addresses
 	for file in AUTHORS THANKS ; \
@@ -55,6 +60,12 @@ package-win-common: package-win-install package-win-sdk
 		mkdir -p "$$plugin_destdir"; \
 		find "$$plugindir" -type f \( -not -name '*.la' -and -not -name '*.a' \) -exec cp -v "{}" "$$plugin_destdir" \; ;\
 	done
+if HAVE_PDB
+	for plugindir in $(prefix)/lib/vlc/plugins/*/; do \
+		plugin_destdir="$(win32_destdir)/plugins/`basename $$plugindir`"; \
+		for plugin in $$(find "$$plugindir" -type f \( -not -name '*.la' -and -not -name '*.a' \)); do cp modules/.libs/$$(basename "$$plugin" | sed s/dll/pdb/) "$$plugin_destdir"; done; \
+	done
+endif
 	-cp -r $(prefix)/share/locale $(win32_destdir)
 
 # BD-J JAR
-- 
2.17.1



More information about the vlc-devel mailing list