- find third_party -type f \! -iname '*.gyp*' \
- \! -path 'third_party/WebKit/*' \
- \! -path 'third_party/adobe/flash/*' \
- \! -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/harfbuzz-ng/*' \
- \! -path 'third_party/harfbuzz/*' \
- \! -path 'third_party/hunspell/*' \
- \! -path 'third_party/hyphen/*' \
- \! -path 'third_party/iccjpeg/*' \
- \! -path 'third_party/khronos/*' \
- \! -path 'third_party/leveldatabase/*' \
- \! -path 'third_party/libXNVCtrl/*' \
- \! -path 'third_party/libjingle/*' \
- \! -path 'third_party/libphonenumber/*' \
- \! -path 'third_party/libusb/libusb.h' \
- \! -path 'third_party/libva/*' \
- \! -path 'third_party/libvpx/libvpx.h' \
- \! -path 'third_party/libxml/chromium/*' \
- \! -path 'third_party/libyuv/*' \
- \! -path 'third_party/lss/*' \
- \! -path 'third_party/mesa/*' \
- \! -path 'third_party/modp_b64/*' \
- \! -path 'third_party/mt19937ar/*' \
- \! -path 'third_party/npapi/*' \
- \! -path 'third_party/opus/opus.h*' \
- \! -path 'third_party/ots/*' \
- \! -path 'third_party/protobuf/*' \
- \! -path 'third_party/qcms/*' \
- \! -path 'third_party/re2/*' \
- \! -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/trace-viewer/*' \
- \! -path 'third_party/undoview/*' \
- \! -path 'third_party/v8-i18n/*' \
- \! -path 'third_party/v8/*' \
- \! -path 'third_party/webrtc/*' \
- \! -path 'third_party/widevine/*' \
+
+ # NOTE: don't forget to sync remove_bundled_libraries() {
+
+ local dir
+ for dir in \
+ third_party/ashmem \
+ third_party/eyesfree \
+ third_party/guava \
+ third_party/iaccessible2 \
+ third_party/icon_family \
+ third_party/isimpledom \
+ third_party/jsr-305 \
+ third_party/mach_override \
+ third_party/npapi/npspy \
+ third_party/re2/benchlog \
+ third_party/sqlite/*.patch \
+ third_party/sqlite/src/*.patch \
+ third_party/sudden_motion_sensor \
+ ; do
+ rm -vfr "$dir"
+ done
+
+ find third_party -type f \
+ '!' -iname '*.gyp*' \
+ '!' -iname '*.isolate' \
+ '!' -path 'third_party/WebKit/*' \
+ '!' -path 'third_party/adobe/flash/*' \
+ '!' -path 'third_party/angle/enumerate_files.py' \
+ '!' -path 'third_party/angle/include/EGL/*' \
+ '!' -path 'third_party/angle/include/GLSLANG/*' \
+ '!' -path 'third_party/angle/include/*.h' \
+ '!' -path 'third_party/angle/src/*' \
+ '!' -path 'third_party/angle/src/common/*' \
+ '!' -path 'third_party/angle/src/compiler/*' \
+ '!' -path 'third_party/angle/src/enumerate_files.py' \
+ '!' -path 'third_party/angle/src/third_party/compiler/*' \
+ '!' -path 'third_party/brotli/*' \
+ '!' -path 'third_party/cacheinvalidation/*' \
+ '!' -path 'third_party/cld/*' \
+ '!' -path 'third_party/cld_2/*' \
+ '!' -path 'third_party/cros_system_api/*' \
+ '!' -path 'third_party/cython/python_flags.py' \
+ '!' -path 'third_party/dom_distiller_js/*' \
+ '!' -path 'third_party/ffmpeg/*' \
+ '!' -path 'third_party/fips181/*' \
+ '!' -path 'third_party/flot/*.js' \
+ '!' -path 'third_party/google_input_tools/*' \
+ '!' -path 'third_party/hunspell/*' \
+ '!' -path 'third_party/hyphen/*' \
+ '!' -path 'third_party/iccjpeg/*' \
+ '!' -path 'third_party/icu/icu.isolate' \
+ '!' -path 'third_party/jinja2/*' \
+ '!' -path 'third_party/jstemplate/*' \
+ '!' -path 'third_party/khronos/*' \
+ '!' -path 'third_party/leveldatabase/*' \
+ '!' -path 'third_party/libXNVCtrl/*' \
+ '!' -path 'third_party/libaddressinput/*' \
+ '!' -path 'third_party/libjingle/*' \
+ '!' -path 'third_party/libphonenumber/*' \
+ '!' -path 'third_party/libusb/*' \
+ '!' -path 'third_party/libva/*' \
+ '!' -path 'third_party/libvpx/*' \
+ '!' -path 'third_party/libwebm/*' \
+ '!' -path 'third_party/libwebp/*' \
+ '!' -path 'third_party/libxml/chromium/*' \
+ '!' -path 'third_party/libyuv/*' \
+ '!' -path 'third_party/lss/*.h' \
+ '!' -path 'third_party/lzma_sdk/*' \
+ '!' -path 'third_party/markupsafe/*' \
+ '!' -path 'third_party/mesa/src/include/GL/gl.h' \
+ '!' -path 'third_party/mesa/src/include/GL/glext.h' \
+ '!' -path 'third_party/mesa/src/include/GL/glx.h' \
+ '!' -path 'third_party/mesa/src/include/GL/glxext.h' \
+ '!' -path 'third_party/mesa/src/include/GL/osmesa.h' \
+ '!' -path 'third_party/modp_b64/*' \
+ '!' -path 'third_party/mt19937ar/*' \
+ '!' -path 'third_party/npapi/*' \
+ '!' -path 'third_party/openmax_dl/*' \
+ '!' -path 'third_party/ots/*' \
+ '!' -path 'third_party/pdfium/*' \
+ '!' -path 'third_party/ply/*' \
+ '!' -path 'third_party/polymer/*' \
+ '!' -path 'third_party/polymer_legacy/*' \
+ '!' -path 'third_party/protobuf/*' \
+ '!' -path 'third_party/qcms/*' \
+ '!' -path 'third_party/re2/*' \
+ '!' -path 'third_party/readability/*' \
+ '!' -path 'third_party/sfntly/*' \
+ '!' -path 'third_party/skia/*' \
+ '!' -path 'third_party/smhasher/*' \
+ '!' -path 'third_party/snappy/*' \
+ '!' -path 'third_party/sqlite/amalgamation/*' \
+ '!' -path 'third_party/sqlite/sqlite3.h' \
+ '!' -path 'third_party/sqlite/src/ext/*' \
+ '!' -path 'third_party/tcmalloc/*' \
+ '!' -path 'third_party/trace-viewer/*' \
+ '!' -path 'third_party/undoview/*' \
+ '!' -path 'third_party/usrsctp/*' \
+ '!' -path 'third_party/v8-i18n/*' \
+ '!' -path 'third_party/v8/*' \
+ '!' -path 'third_party/webrtc/*' \
+ '!' -path 'third_party/widevine/*' \
+ '!' -path 'third_party/x86inc/*' \
+ '!' -path 'third_party/zlib/google/*' \
+ '!' -path 'third_party/zlib/zlib.h' \
+ \
+ '!' -path 'third_party/jinja2/*' \
+ '!' -path 'third_party/libvpx/*' \
+ '!' -path 'third_party/markupsafe/*' \
+ '!' -path 'third_party/opus/*' \
+ '!' -path 'third_party/libudev/*' \