]> git.pld-linux.org Git - packages/chromium-browser.git/blobdiff - clean-source.sh
improve system libXNVCtrl patch; actually apply it
[packages/chromium-browser.git] / clean-source.sh
index 6e58d5179d07435357b26c295b2386796afcd2fc..64ba65fd288e54123232d59db72c8379d35ca507 100755 (executable)
@@ -14,7 +14,7 @@ eval "$@"
 # 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() {
@@ -23,6 +23,7 @@ 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 \
@@ -33,7 +34,7 @@ remove_nonessential_dirs() {
        breakpad/src/common/android \
        breakpad/src/common/mac \
        breakpad/src/tools/mac \
-       build/android \
+       build/android_ \
        build/mac \
        build/win \
        chrome/android \
@@ -62,6 +63,7 @@ remove_nonessential_dirs() {
        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 \
@@ -69,12 +71,14 @@ remove_nonessential_dirs() {
        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 \
@@ -124,6 +128,7 @@ remove_nonessential_dirs() {
        remoting/host/mac \
        remoting/host/setup/win \
        remoting/host/win \
+       rlz/examples \
        rlz/mac \
        rlz/win \
        sandbox/win_ \
@@ -135,43 +140,59 @@ remove_nonessential_dirs() {
        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_ \
@@ -184,7 +205,9 @@ remove_nonessential_dirs() {
        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 \
@@ -230,6 +253,7 @@ remove_nonessential_dirs() {
        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 \
@@ -259,6 +283,7 @@ remove_nonessential_dirs() {
        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 \
@@ -267,7 +292,6 @@ remove_nonessential_dirs() {
        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 \
@@ -297,6 +321,8 @@ remove_nonessential_dirs() {
        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 \
@@ -320,12 +346,14 @@ remove_nonessential_dirs() {
        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 \
@@ -352,15 +380,19 @@ almost_strip_dirs() {
                '!' -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
 }
 
@@ -415,6 +447,7 @@ clean_third_party() {
                \! -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
@@ -686,8 +719,17 @@ remove_tests() {
        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
@@ -701,6 +743,7 @@ strip_system_dirs \
        third_party/flac \
        third_party/icu \
        third_party/jsoncpp \
+       third_party/libXNVCtrl \
        third_party/libevent \
        third_party/libexif \
        third_party/libjpeg \
This page took 0.064812 seconds and 4 git commands to generate.