[packages/chromium-browser/DEVEL] clean third_party keeping only stuff really needed

glen glen at pld-linux.org
Wed Jan 2 23:59:25 CET 2013


commit 00360a4d519713f00cdc8e0e52f758495fd83108
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jan 3 00:31:07 2013 +0200

    clean third_party keeping only stuff really needed
    
    727M    chromium-browser-24.0.1312.45/src
    792M    chromium-browser-24.0.1312.45-noclean/src
    
    the list came from archlinux PKGBUILD file

 clean-source.sh | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 71 insertions(+), 2 deletions(-)
---
diff --git a/clean-source.sh b/clean-source.sh
index 204e9fe..5b1ec43 100755
--- a/clean-source.sh
+++ b/clean-source.sh
@@ -481,9 +481,78 @@ strip_system_dirs \
 #needed by `out/Release/obj.target/third_party/libvpx/libvpx_asm_offsets.a'.  Stop.
 
 # third_party/yasm/source/patched-yasm/modules/arch/x86/gen_x86_insn.py', needed by `out/Release/obj/gen/third_party/yasm/x86insns.c'. Stop.
-#gyp_clean third_party/yasm
+#gyp_clean \
+#	_third_party/yasm \
 
-rm -vf third_party/expat/files/lib/expat.h
+# clean third party
+# list based from archlinux PKGBUILD
+# https://aur.archlinux.org/packages/ch/chromium-dev/PKGBUILD
+find third_party -type f \! -iname '*.gyp*' \
+	\! -path 'third_party/angle/*' \
+	\! -path 'third_party/cacheinvalidation/*' \
+	\! -path 'third_party/cld/*' \
+	\! -path 'third_party/cros_system_api/*'  \
+	\! -path 'third_party/ffmpeg/*' \
+	\! -path 'third_party/flac/flac.h' \
+	\! -path 'third_party/flot/*' \
+	\! -path 'third_party/gpsd/*' \
+	\! -path 'third_party/harfbuzz/*' \
+	\! -path 'third_party/harfbuzz-ng/*' \
+	\! -path 'third_party/hunspell/*' \
+	\! -path 'third_party/hyphen/*' \
+	\! -path 'third_party/iccjpeg/*' \
+	\! -path 'third_party/jsoncpp/*' \
+	\! -path 'third_party/khronos/*' \
+	\! -path 'third_party/leveldatabase/*' \
+	\! -path 'third_party/libjingle/*' \
+	\! -path 'third_party/libphonenumber/*' \
+	\! -path 'third_party/libpng/*' \
+	\! -path 'third_party/libsrtp/*' \
+	\! -path 'third_party/libusb/libusb.h' \
+	\! -path 'third_party/libva/*' \
+	\! -path 'third_party/libvpx/libvpx.h' \
+	\! -path 'third_party/libxml/chromium/*' \
+	\! -path 'third_party/libXNVCtrl/*' \
+	\! -path 'third_party/libyuv/*' \
+	\! -path 'third_party/llvm-build/*' \
+	\! -path 'third_party/lss/*' \
+	\! -path 'third_party/mesa/*' \
+	\! -path 'third_party/modp_b64/*' \
+	\! -path 'third_party/mongoose/*' \
+	\! -path 'third_party/mt19937ar/*' \
+	\! -path 'third_party/npapi/*' \
+	\! -path 'third_party/openmax/*' \
+	\! -path 'third_party/opus/*' \
+	\! -path 'third_party/ots/*' \
+	\! -path 'third_party/ply/*' \
+	\! -path 'third_party/protobuf/*' \
+	\! -path 'third_party/pywebsocket/*' \
+	\! -path 'third_party/qcms/*' \
+	\! -path 'third_party/re2/*' \
+	\! -path 'third_party/scons-2.0.1/*' \
+	\! -path 'third_party/sfntly/*' \
+	\! -path 'third_party/skia/*' \
+	\! -path 'third_party/smhasher/*' \
+	\! -path 'third_party/speex/speex.h' \
+	\! -path 'third_party/sqlite/*' \
+	\! -path 'third_party/tcmalloc/*' \
+	\! -path 'third_party/tlslite/*' \
+	\! -path 'third_party/trace-viewer/*' \
+	\! -path 'third_party/undoview/*' \
+	\! -path 'third_party/usb_ids/*' \
+	\! -path 'third_party/v8-i18n/*' \
+	\! -path 'third_party/v8/*' \
+	\! -path 'third_party/webdriver/*' \
+	\! -path 'third_party/webgl_conformance/*' \
+	\! -path 'third_party/WebKit/*' \
+	\! -path 'third_party/webrtc/*' \
+	\! -path 'third_party/widevine/*' \
+	\! -path 'third_party/adobe/flash/*' \
+	\! -path 'third_party/zlib/*' \
+	\! -path 'third_party/libvpx/*' \
+	-print -delete | tee -a REMOVED-clean.txt
+
+rm -vf third_party/expat/files/lib/expat.h | tee -a REMOVED-clean.txt
 
 if [ "${v8:-1}" != "0" ]; then
 	# The implementation files include v8 headers with full path,
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/chromium-browser.git/commitdiff/8dda6bbcf71a76a9a1978aee92b8629bf58aae2a



More information about the pld-cvs-commit mailing list