[vlc-devel] commit: WinCE: strip plugin DLLs when creating package (Pierre Ynard )

git version control git at videolan.org
Sun Nov 8 15:49:23 CET 2009


vlc | branch: 1.0-bugfix | Pierre Ynard <linkfanel at yahoo.fr> | Wed Nov  4 13:15:08 2009 +0100| [0657d7289f21e8815893cb78e202a67923b31048] | committer: Pierre Ynard 

WinCE: strip plugin DLLs when creating package

This is quite important on devices where storage space is limited...
(cherry picked from commit 6ec51c9175d20d7ae9e3a525c3fde5330314faaf)

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

 Makefile.am |   38 +++++++++++++++++---------------------
 1 files changed, 17 insertions(+), 21 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 65fff17..de84559 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -878,7 +878,7 @@ endif
 	find vlc-$(VERSION)/sdk.tmp -type d | sort -r | xargs rmdir
 	rm -Rf vlc-$(VERSION)/sdk/bin
 
-#strip exe and main dll
+# Strip DLLs
 package-win-common-strip: package-win32-base-debug
 	@if test -e "$(win32_debugdir)"; then \
 	  echo "Error: please remove $(win32_debugdir), it is in the way"; \
@@ -886,23 +886,18 @@ package-win-common-strip: package-win32-base-debug
 	else \
 	  echo "OK."; mkdir -p "$(win32_debugdir)"; \
 	fi
-	for i in "" vlc-$(VERSION)/*$(LIBEXT) ; \
-      do if test -n "$$i" ; then \
-      $(OBJCOPY) --only-keep-debug "$$i" "$$i.dbg"; \
-      $(OBJCOPY) --strip-all "$$i" ; \
-      $(OBJCOPY) --add-gnu-debuglink="$$i.dbg" "$$i" ; \
-	  mv "$$i.dbg" "$(win32_debugdir)"; \
-    fi; done
-
-#strip all plugins dll
+	for i in "" $(win32_destdir)/*$(LIBEXT) \
+	            $(win32_destdir)/plugins/*$(LIBEXT) \
+	; do \
+	  if test -n "$$i" ; then \
+	    $(OBJCOPY) --only-keep-debug "$$i" "$$i.dbg"; \
+	    $(OBJCOPY) --strip-all "$$i" ; \
+	    $(OBJCOPY) --add-gnu-debuglink="$$i.dbg" "$$i" ; \
+	    mv "$$i.dbg" "$(win32_debugdir)"; \
+	  fi ; \
+	done
+
 package-win32-base: package-win-common-strip
-	for i in "" $(win32_destdir)/plugins/*$(LIBEXT) ; \
-	  do if test -n "$$i" ; then \
-	  $(OBJCOPY) --only-keep-debug "$$i" "$$i.dbg"; \
-	  $(OBJCOPY) --strip-all "$$i" ; \
-	  $(OBJCOPY) --add-gnu-debuglink="$$i.dbg" "$$i" ; \
-	  mv "$$i.dbg" "$(win32_debugdir)"; \
-	fi ; done
 
 package-win32-base-exe: package-win32-base
 # Create package
@@ -968,13 +963,14 @@ package-win32-debug: package-win32-base-debug-zip package-win32-base-debug-7zip
 # Clean up
 	rm -Rf $(win32_destdir)
 
-package-wince-base: package-win-common package-win-common-strip
+package-wince-base: package-win-common-strip
 
-package-wince-base-zip:
+package-wince-base-zip: package-wince-base
 # Create package 
-	zip -r vlc-$(VERSION)-wince.zip vlc-$(VERSION)
+	rm -f -- vlc-$(VERSION)-wince.zip
+	zip -r -9 vlc-$(VERSION)-wince.zip vlc-$(VERSION)
 
-package-wince: package-wince-base  package-wince-base-zip
+package-wince: package-wince-base-zip
 # Clean up
 	rm -Rf $(win32_destdir)
 




More information about the vlc-devel mailing list