# also removed non-linux files: find -name win -o -name mac -o name android
# find -type d -name 'android' -o -name 'chromeos' -o -name 'cros'
# find -type d -name *doc*
-
+# find -type d -name *example*
# suffix with _ those that we can't remove (just yet) because of the gclient
# hooks (see build/all.gyp) or of some unneeded deps/includes
remove_nonessential_dirs() {
android_webview \
ash/resources/default_100_percent/cros_ \
ash/resources/default_200_percent/cros_ \
+ ash/shell/cocoa \
ash/system/chromeos \
base/android \
base/chromeos \
breakpad/src/common/android \
breakpad/src/common/mac \
breakpad/src/tools/mac \
- build/android \
+ build/android_ \
build/mac \
build/win \
chrome/android \
chrome/browser/resources/shared/css/chromeos \
chrome/browser/resources/shared/js/chromeos_ \
chrome/browser/ui/android \
+ chrome/browser/ui/cocoa \
chrome/browser/ui/webui/chromeos \
chrome/browser/ui/webui/ntp/android \
chrome/browser/ui/webui/options/chromeos \
chrome/common/mac \
chrome/installer/mac \
chrome/installer/mac/third_party/xz/config/mac \
+ chrome/third_party/jstemplate/tutorial_examples \
+ chrome/third_party/mock4js/examples \
chrome/third_party/wtl/ \
chrome/tools/build/chromeos \
chrome/tools/build/mac \
chrome/tools/build/win \
chrome_frame \
- chromeos \
+ chromeos_ \
cloud_print/service/win \
cloud_print/virtual_driver/win \
content/app/android \
remoting/host/mac \
remoting/host/setup/win \
remoting/host/win \
+ rlz/examples \
rlz/mac \
rlz/win \
sandbox/win_ \
third_party/WebKit/Source/Platform/chromium/public/mac \
third_party/WebKit/Source/Platform/chromium/public/win \
third_party/WebKit/Source/WTF/wtf/mac \
+ third_party/WebKit/Source/WTF/wtf/qt \
third_party/WebKit/Source/WTF/wtf/threads/win \
third_party/WebKit/Source/WTF/wtf/win \
third_party/WebKit/Source/WebCore/WebCore.gyp/mac \
third_party/WebKit/Source/WebCore/accessibility/mac \
+ third_party/WebKit/Source/WebCore/accessibility/qt \
third_party/WebKit/Source/WebCore/accessibility/win \
+ third_party/WebKit/Source/WebCore/bridge/qt \
third_party/WebKit/Source/WebCore/editing/android \
third_party/WebKit/Source/WebCore/editing/mac \
+ third_party/WebKit/Source/WebCore/editing/qt \
third_party/WebKit/Source/WebCore/history/android \
third_party/WebKit/Source/WebCore/history/mac \
+ third_party/WebKit/Source/WebCore/history/qt \
third_party/WebKit/Source/WebCore/loader/mac \
third_party/WebKit/Source/WebCore/loader/win \
third_party/WebKit/Source/WebCore/page/android \
third_party/WebKit/Source/WebCore/page/mac \
+ third_party/WebKit/Source/WebCore/page/qt \
third_party/WebKit/Source/WebCore/page/scrolling/mac \
third_party/WebKit/Source/WebCore/page/win \
third_party/WebKit/Source/WebCore/platform/android \
third_party/WebKit/Source/WebCore/platform/audio/mac \
+ third_party/WebKit/Source/WebCore/platform/audio/qt \
third_party/WebKit/Source/WebCore/platform/cf/win \
+ third_party/WebKit/Source/WebCore/platform/cocoa \
third_party/WebKit/Source/WebCore/platform/graphics/ca/mac \
third_party/WebKit/Source/WebCore/platform/graphics/ca/win \
+ third_party/WebKit/Source/WebCore/platform/graphics/cocoa \
third_party/WebKit/Source/WebCore/platform/graphics/gpu/mac \
+ third_party/WebKit/Source/WebCore/platform/graphics/gpu/qt \
third_party/WebKit/Source/WebCore/platform/graphics/mac \
+ third_party/WebKit/Source/WebCore/platform/graphics/qt \
third_party/WebKit/Source/WebCore/platform/graphics/surfaces/mac \
+ third_party/WebKit/Source/WebCore/platform/graphics/surfaces/qt \
third_party/WebKit/Source/WebCore/platform/graphics/surfaces/win \
third_party/WebKit/Source/WebCore/platform/graphics/win \
third_party/WebKit/Source/WebCore/platform/ios \
third_party/WebKit/Source/WebCore/platform/mac \
third_party/WebKit/Source/WebCore/platform/network/android \
third_party/WebKit/Source/WebCore/platform/network/mac \
+ third_party/WebKit/Source/WebCore/platform/network/qt \
third_party/WebKit/Source/WebCore/platform/network/win \
+ third_party/WebKit/Source/WebCore/platform/qt \
third_party/WebKit/Source/WebCore/platform/text/android \
third_party/WebKit/Source/WebCore/platform/text/mac \
+ third_party/WebKit/Source/WebCore/platform/text/qt \
third_party/WebKit/Source/WebCore/platform/text/win \
third_party/WebKit/Source/WebCore/platform/win \
third_party/WebKit/Source/WebCore/platform/wx/wxcode/mac \
third_party/WebKit/Source/WebCore/platform/wx/wxcode/win \
third_party/WebKit/Source/WebCore/plugins/mac \
+ third_party/WebKit/Source/WebCore/plugins/qt \
third_party/WebKit/Source/WebCore/plugins/win \
third_party/WebKit/Source/WebKit/chromium/public/android \
third_party/WebKit/Source/WebKit/chromium/public/mac_ \
third_party/WebKit/Source/WebKit/chromium/src/win \
third_party/WebKit/Source/WebKit/gtk/docs \
third_party/WebKit/Source/WebKit/mac \
+ third_party/WebKit/Source/WebKit/qt \
third_party/WebKit/Source/WebKit/qt/docs \
+ third_party/WebKit/Source/WebKit/qt/examples \
third_party/WebKit/Source/WebKit/win \
third_party/WebKit/Source/WebKit2/Platform/CoreIPC/mac \
third_party/WebKit/Source/WebKit2/Platform/CoreIPC/win \
third_party/WebKit/Source/WebKit2/mac \
third_party/WebKit/Source/WebKit2/win \
third_party/WebKit/Tools/DumpRenderTree/mac \
+ third_party/WebKit/Tools/DumpRenderTree/qt \
third_party/WebKit/Tools/DumpRenderTree/win \
third_party/angle/samples/gles2_book \
third_party/boost \
third_party/lcov \
third_party/leveldatabase/src/doc \
third_party/leveldatabase/src/port/win \
+ third_party/libjingle/source/talk/examples \
third_party/libjpeg_turbo/mac \
third_party/libjpeg_turbo/win \
third_party/libva/va/android \
third_party/libxml/mac \
third_party/lighttpd \
third_party/mesa/MesaLib/docs \
- third_party/mesa/MesaLib/docs \
third_party/mesa/MesaLib/src/gallium/docs \
third_party/mozc/chrome/chromeos_ \
third_party/nspr \
third_party/sqlite/src/doc \
third_party/tcmalloc/vendor/doc \
third_party/tcmalloc_ \
+ third_party/trace-viewer/examples \
+ third_party/trace-viewer/third_party/pywebsocket/src/example \
third_party/vc_80 \
third_party/webdriver/pylib/docs \
third_party/webrtc/modules/audio_device/android \
tools/win \
tools/wine_valgrind \
ui/android \
+ ui/base/cocoa \
ui/base/ime/win \
ui/base/win_ \
ui/gfx/android \
ui/gfx/mac \
ui/resources/default_100_percent/cros_ \
ui/resources/default_200_percent/cros_ \
+ ui/views/examples \
ui/views/win \
webkit/chromeos \
webkit/media/android \
'!' -iname '*.gyp*' \
'!' -path 'tools/build/*' \
'!' -path 'tools/clang/scripts/plugin_flags.sh' \
+ '!' -path 'tools/generate_library_loader/*' \
+ '!' -path 'tools/generate_shim_headers/generate_shim_headers.py' \
'!' -path 'tools/generate_stubs/*' \
'!' -path 'tools/grit/*' \
'!' -path 'tools/gritsettings/*' \
'!' -path 'tools/gyp/*' \
'!' -path 'tools/json_comment_eater.py' \
'!' -path 'tools/json_schema_compiler/*' \
+ '!' -path 'tools/json_to_struct/*' \
'!' -path 'tools/protoc_wrapper/*' \
'!' -path 'tools/uuidgen.py' \
'!' -path 'tools/zip2msi.py' \
+ '!' -path 'tools/usb_ids/*' \
-print -delete
}
\! -path 'third_party/v8/*' \
\! -path 'third_party/webrtc/*' \
\! -path 'third_party/widevine/*' \
+ \! -path 'third_party/usb_ids/*' \
-print -delete
rm -vf third_party/expat/files/lib/expat.h
ln -s /usr/include/gtest testing/gtest/include/gtest
# delete unittest files
- find -name '*_unittest.*' \
- -print -delete
+ find . '(' \
+ -name '*_unittest*.*' \
+ -name '*_unittest.*' \
+ -o -name '*_test.*' \
+ ')' '!' -name '*.gyp*' \
+ '!' -path './native_client/src/trusted/service_runtime/env_cleanser_test.h' \
+ '!' -path './chrome/browser/diagnostics/diagnostics_test.*' \
+ '!' -path './chrome/test/perf/perf_test.*' \
+ '!' -path './chrome/test/perf/browser_perf_test.*' \
+ '!' -path './remoting/base/resources_unittest.*' \
+ -print -delete
}
remove_nonessential_dirs > REMOVED-nonessential_dirs.txt
third_party/flac \
third_party/icu \
third_party/jsoncpp \
+ third_party/libXNVCtrl \
third_party/libevent \
third_party/libexif \
third_party/libjpeg \