]> git.pld-linux.org Git - packages/chromium-browser.git/commitdiff
clean third_party keeping only stuff really needed
authorElan Ruusamäe <glen@delfi.ee>
Wed, 2 Jan 2013 22:31:07 +0000 (00:31 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 2 Jan 2013 22:37:05 +0000 (00:37 +0200)
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

index 204e9fe23356f1cf97128b643239ce21d0c5f466..5b1ec4325666e06cd6e6eda0534ca4cd87b95a3d 100755 (executable)
@@ -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,
This page took 0.075652 seconds and 4 git commands to generate.