]>
Commit | Line | Data |
---|---|---|
fe547a32 | 1 | #!/bin/sh |
8f5f6775 | 2 | set -xe |
fe547a32 | 3 | |
0593259b ER |
4 | export LC_ALL=C |
5 | ||
fe547a32 | 6 | # import options |
cd09b941 ER |
7 | # remove everything unless it's remove has been disabled with "0" |
8 | # "v8=0" means "do not remove v8" | |
fe547a32 ER |
9 | eval "$@" |
10 | ||
05d9087c | 11 | # Strip tarball from some big directories not needed on the linux platform |
f888c710 | 12 | # https://code.google.com/p/chromium/wiki/LinuxPackaging |
99f39995 | 13 | # initial list from src/tools/export_tarball/export_tarball.py |
063abe65 | 14 | # also removed non-linux files: find -name win -o -name mac -o name android -o name windows |
9304218b | 15 | # find -type d -name 'android' -o -name 'chromeos' -o -name 'cros' |
07b01cb7 | 16 | # find -type d -name *doc* |
dda6f58c | 17 | # find -type d -name *example* |
894dee72 ER |
18 | # find -type d -name java |
19 | # find -type d -name tools | |
063abe65 | 20 | # find -type d -name samples |
05d9087c ER |
21 | # suffix with _ those that we can't remove (just yet) because of the gclient |
22 | # hooks (see build/all.gyp) or of some unneeded deps/includes | |
f888c710 | 23 | remove_nonessential_dirs() { |
0bb93ab2 ER |
24 | find -type f '(' \ |
25 | -name 'Android.mk' -o \ | |
26 | -name '*.vcproj' -o \ | |
27 | -name '*.sln' -o \ | |
28 | -name '*.mm' -o \ | |
29 | -name '*.m' \ | |
30 | ')' | xargs rm -vf | |
31 | ||
f888c710 ER |
32 | local dir |
33 | for dir in \ | |
18ffc809 | 34 | android_webview \ |
9304218b ER |
35 | ash/resources/default_100_percent/cros_ \ |
36 | ash/resources/default_200_percent/cros_ \ | |
dda6f58c | 37 | ash/shell/cocoa \ |
9304218b | 38 | ash/system/chromeos \ |
55dddbd9 | 39 | base/android \ |
9304218b | 40 | base/chromeos \ |
e31bf7c6 | 41 | base/ios \ |
3333a973 | 42 | breakpad/src/client/mac \ |
9304218b | 43 | breakpad/src/common/android \ |
3333a973 ER |
44 | breakpad/src/common/mac \ |
45 | breakpad/src/tools/mac \ | |
46 | build/mac \ | |
47 | build/win \ | |
55dddbd9 ER |
48 | chrome/android \ |
49 | chrome/app/android \ | |
9304218b ER |
50 | chrome/app/resources/terms/chromeos \ |
51 | chrome/app/theme/default_100_percent/cros_ \ | |
3333a973 ER |
52 | chrome/app/theme/default_100_percent/mac \ |
53 | chrome/app/theme/default_100_percent/win \ | |
9304218b | 54 | chrome/app/theme/default_200_percent/cros_ \ |
3333a973 ER |
55 | chrome/app/theme/default_200_percent/mac \ |
56 | chrome/app/theme/default_200_percent/win \ | |
57 | chrome/app/theme/touch_100_percent/win \ | |
58 | chrome/app/theme/touch_140_percent/win \ | |
59 | chrome/app/theme/touch_180_percent/win \ | |
55dddbd9 | 60 | chrome/browser/android \ |
9304218b | 61 | chrome/browser/chromeos/cros \ |
e31bf7c6 | 62 | chrome/browser/extensions/docs \ |
55dddbd9 | 63 | chrome/browser/history/android \ |
3333a973 | 64 | chrome/browser/mac \ |
18ffc809 | 65 | chrome/browser/resources/about_welcome_android \ |
9304218b | 66 | chrome/browser/resources/chromeos_ \ |
18ffc809 | 67 | chrome/browser/resources/ntp_android \ |
9304218b ER |
68 | chrome/browser/resources/options/chromeos_ \ |
69 | chrome/browser/resources/shared/css/chromeos \ | |
70 | chrome/browser/resources/shared/js/chromeos_ \ | |
9304218b | 71 | chrome/browser/ui/android \ |
dda6f58c | 72 | chrome/browser/ui/cocoa \ |
9304218b ER |
73 | chrome/browser/ui/webui/chromeos \ |
74 | chrome/browser/ui/webui/ntp/android \ | |
75 | chrome/browser/ui/webui/options/chromeos \ | |
54623fc8 | 76 | chrome/common/extensions/docs \ |
3333a973 ER |
77 | chrome/common/mac \ |
78 | chrome/installer/mac \ | |
79 | chrome/installer/mac/third_party/xz/config/mac \ | |
894dee72 | 80 | chrome/installer/tools \ |
dda6f58c | 81 | chrome/third_party/jstemplate/tutorial_examples \ |
f2f193c6 | 82 | third_party/jstemplate/tutorial_examples \ |
dda6f58c | 83 | chrome/third_party/mock4js/examples \ |
05d9087c | 84 | chrome/third_party/wtl/ \ |
9304218b | 85 | chrome/tools/build/chromeos \ |
3333a973 ER |
86 | chrome/tools/build/mac \ |
87 | chrome/tools/build/win \ | |
54623fc8 | 88 | chrome_frame \ |
3333a973 ER |
89 | cloud_print/service/win \ |
90 | cloud_print/virtual_driver/win \ | |
55dddbd9 ER |
91 | content/app/android \ |
92 | content/browser/android \ | |
93 | content/common/android \ | |
894dee72 ER |
94 | content/components/navigation_interception/java \ |
95 | content/components/web_contents_delegate_android/java \ | |
55dddbd9 ER |
96 | content/public/android \ |
97 | content/public/browser/android \ | |
98 | content/renderer/android \ | |
99 | content/shell/android \ | |
3333a973 | 100 | content/shell/mac \ |
54623fc8 | 101 | data \ |
05d9087c ER |
102 | gears \ |
103 | google_update \ | |
e31bf7c6 | 104 | gpu/command_buffer/docs \ |
05d9087c | 105 | gpu/demos \ |
9304218b | 106 | media/audio/android \ |
e31bf7c6 | 107 | media/audio/ios \ |
3333a973 ER |
108 | media/audio/mac \ |
109 | media/audio/win \ | |
9304218b | 110 | media/base/android \ |
894dee72 | 111 | media/tools \ |
3333a973 ER |
112 | media/video/capture/mac \ |
113 | media/video/capture/win \ | |
9304218b | 114 | media/webm/chromeos \ |
063abe65 | 115 | mesa/MesaLib/src/mesa/drivers/windows \ |
3333a973 | 116 | native_client/build/mac \ |
e31bf7c6 | 117 | native_client/documentation \ |
3333a973 ER |
118 | native_client/src/shared/imc/win \ |
119 | native_client/src/shared/platform/win \ | |
894dee72 | 120 | native_client/src/tools \ |
3333a973 ER |
121 | native_client/src/trusted/debug_stub/win \ |
122 | native_client/src/trusted/desc/win \ | |
123 | native_client/src/trusted/nonnacl_util/win \ | |
124 | native_client/src/trusted/platform_qualify/win \ | |
894dee72 | 125 | native_client/tools \ |
18ffc809 | 126 | native_client/tools/trusted_cross_toolchains \ |
54623fc8 | 127 | native_client_sdk \ |
3333a973 | 128 | native_client_sdk/src/libraries/win \ |
9304218b | 129 | net/android \ |
894dee72 ER |
130 | net/tools \ |
131 | net/tools/testserver \ | |
063abe65 | 132 | npapi/npspy/windows \ |
05d9087c | 133 | o3d \ |
54623fc8 ER |
134 | o3d/documentation \ |
135 | o3d/samples \ | |
e31bf7c6 ER |
136 | ppapi/c/documentation \ |
137 | ppapi/cpp/documentation \ | |
894dee72 | 138 | ppapi/native_client/src/tools \ |
3333a973 | 139 | ppapi/native_client/src/trusted/plugin/win \ |
894dee72 | 140 | ppapi/native_client/tools \ |
3333a973 | 141 | remoting/host/installer/mac \ |
e15125f5 | 142 | remoting/host/installer/win \ |
3333a973 | 143 | remoting/host/mac \ |
e15125f5 | 144 | remoting/host/setup/win \ |
3333a973 | 145 | remoting/host/win \ |
dda6f58c | 146 | rlz/examples \ |
3333a973 ER |
147 | rlz/mac \ |
148 | rlz/win \ | |
894dee72 | 149 | sandbox/win/tools \ |
e31bf7c6 | 150 | sdch/ios \ |
3333a973 ER |
151 | sdch/mac \ |
152 | skia/config/win \ | |
894dee72 | 153 | sync/tools \ |
063abe65 ER |
154 | tcmalloc/chromium/src/windows \ |
155 | tcmalloc/vendor/src/windows \ | |
e31bf7c6 | 156 | third_party/WebKit/Source/JavaScriptCore/docs \ |
894dee72 | 157 | third_party/WebKit/Source/JavaScriptCore/tools \ |
55dddbd9 | 158 | third_party/WebKit/Source/Platform/chromium/public/android \ |
3333a973 ER |
159 | third_party/WebKit/Source/Platform/chromium/public/mac \ |
160 | third_party/WebKit/Source/Platform/chromium/public/win \ | |
063abe65 ER |
161 | third_party/WebKit/Source/ThirdParty/gtest/samples \ |
162 | third_party/WebKit/Source/ThirdParty/gyp/samples \ | |
163 | third_party/WebKit/Source/ThirdParty/gyp/samples/samples \ | |
894dee72 | 164 | third_party/WebKit/Source/ThirdParty/gyp/tools \ |
3333a973 | 165 | third_party/WebKit/Source/WTF/wtf/mac \ |
4a263112 | 166 | third_party/WebKit/Source/WTF/wtf/qt \ |
3333a973 ER |
167 | third_party/WebKit/Source/WTF/wtf/threads/win \ |
168 | third_party/WebKit/Source/WTF/wtf/win \ | |
169 | third_party/WebKit/Source/WebCore/WebCore.gyp/mac \ | |
170 | third_party/WebKit/Source/WebCore/accessibility/mac \ | |
4a263112 | 171 | third_party/WebKit/Source/WebCore/accessibility/qt \ |
3333a973 | 172 | third_party/WebKit/Source/WebCore/accessibility/win \ |
4a263112 | 173 | third_party/WebKit/Source/WebCore/bridge/qt \ |
55dddbd9 | 174 | third_party/WebKit/Source/WebCore/editing/android \ |
3333a973 | 175 | third_party/WebKit/Source/WebCore/editing/mac \ |
4a263112 | 176 | third_party/WebKit/Source/WebCore/editing/qt \ |
55dddbd9 | 177 | third_party/WebKit/Source/WebCore/history/android \ |
3333a973 | 178 | third_party/WebKit/Source/WebCore/history/mac \ |
4a263112 | 179 | third_party/WebKit/Source/WebCore/history/qt \ |
3333a973 ER |
180 | third_party/WebKit/Source/WebCore/loader/mac \ |
181 | third_party/WebKit/Source/WebCore/loader/win \ | |
55dddbd9 | 182 | third_party/WebKit/Source/WebCore/page/android \ |
3333a973 | 183 | third_party/WebKit/Source/WebCore/page/mac \ |
4a263112 | 184 | third_party/WebKit/Source/WebCore/page/qt \ |
3333a973 ER |
185 | third_party/WebKit/Source/WebCore/page/scrolling/mac \ |
186 | third_party/WebKit/Source/WebCore/page/win \ | |
55dddbd9 | 187 | third_party/WebKit/Source/WebCore/platform/android \ |
3333a973 | 188 | third_party/WebKit/Source/WebCore/platform/audio/mac \ |
4a263112 | 189 | third_party/WebKit/Source/WebCore/platform/audio/qt \ |
3333a973 | 190 | third_party/WebKit/Source/WebCore/platform/cf/win \ |
dda6f58c | 191 | third_party/WebKit/Source/WebCore/platform/cocoa \ |
3333a973 ER |
192 | third_party/WebKit/Source/WebCore/platform/graphics/ca/mac \ |
193 | third_party/WebKit/Source/WebCore/platform/graphics/ca/win \ | |
dda6f58c | 194 | third_party/WebKit/Source/WebCore/platform/graphics/cocoa \ |
3333a973 | 195 | third_party/WebKit/Source/WebCore/platform/graphics/gpu/mac \ |
4a263112 | 196 | third_party/WebKit/Source/WebCore/platform/graphics/gpu/qt \ |
3333a973 | 197 | third_party/WebKit/Source/WebCore/platform/graphics/mac \ |
4a263112 | 198 | third_party/WebKit/Source/WebCore/platform/graphics/qt \ |
3333a973 | 199 | third_party/WebKit/Source/WebCore/platform/graphics/surfaces/mac \ |
4a263112 | 200 | third_party/WebKit/Source/WebCore/platform/graphics/surfaces/qt \ |
e15125f5 | 201 | third_party/WebKit/Source/WebCore/platform/graphics/surfaces/win \ |
3333a973 | 202 | third_party/WebKit/Source/WebCore/platform/graphics/win \ |
e31bf7c6 | 203 | third_party/WebKit/Source/WebCore/platform/ios \ |
3333a973 | 204 | third_party/WebKit/Source/WebCore/platform/mac \ |
55dddbd9 | 205 | third_party/WebKit/Source/WebCore/platform/network/android \ |
3333a973 | 206 | third_party/WebKit/Source/WebCore/platform/network/mac \ |
4a263112 | 207 | third_party/WebKit/Source/WebCore/platform/network/qt \ |
3333a973 | 208 | third_party/WebKit/Source/WebCore/platform/network/win \ |
4a263112 | 209 | third_party/WebKit/Source/WebCore/platform/qt \ |
55dddbd9 | 210 | third_party/WebKit/Source/WebCore/platform/text/android \ |
3333a973 | 211 | third_party/WebKit/Source/WebCore/platform/text/mac \ |
4a263112 | 212 | third_party/WebKit/Source/WebCore/platform/text/qt \ |
3333a973 ER |
213 | third_party/WebKit/Source/WebCore/platform/text/win \ |
214 | third_party/WebKit/Source/WebCore/platform/win \ | |
215 | third_party/WebKit/Source/WebCore/platform/wx/wxcode/mac \ | |
216 | third_party/WebKit/Source/WebCore/platform/wx/wxcode/win \ | |
217 | third_party/WebKit/Source/WebCore/plugins/mac \ | |
4a263112 | 218 | third_party/WebKit/Source/WebCore/plugins/qt \ |
3333a973 | 219 | third_party/WebKit/Source/WebCore/plugins/win \ |
55dddbd9 | 220 | third_party/WebKit/Source/WebKit/chromium/public/android \ |
55dddbd9 | 221 | third_party/WebKit/Source/WebKit/chromium/public/platform/android \ |
3333a973 ER |
222 | third_party/WebKit/Source/WebKit/chromium/public/platform/mac \ |
223 | third_party/WebKit/Source/WebKit/chromium/public/platform/win \ | |
224 | third_party/WebKit/Source/WebKit/chromium/public/win \ | |
55dddbd9 | 225 | third_party/WebKit/Source/WebKit/chromium/src/android \ |
3333a973 ER |
226 | third_party/WebKit/Source/WebKit/chromium/src/mac \ |
227 | third_party/WebKit/Source/WebKit/chromium/src/win \ | |
e31bf7c6 | 228 | third_party/WebKit/Source/WebKit/gtk/docs \ |
3333a973 | 229 | third_party/WebKit/Source/WebKit/mac \ |
4a263112 | 230 | third_party/WebKit/Source/WebKit/qt \ |
e31bf7c6 | 231 | third_party/WebKit/Source/WebKit/qt/docs \ |
dda6f58c | 232 | third_party/WebKit/Source/WebKit/qt/examples \ |
3333a973 | 233 | third_party/WebKit/Source/WebKit/win \ |
063abe65 | 234 | third_party/WebKit/Source/WebKit/wx/bindings/python/samples \ |
3333a973 ER |
235 | third_party/WebKit/Source/WebKit2/Platform/CoreIPC/mac \ |
236 | third_party/WebKit/Source/WebKit2/Platform/CoreIPC/win \ | |
237 | third_party/WebKit/Source/WebKit2/Platform/mac \ | |
238 | third_party/WebKit/Source/WebKit2/Platform/win \ | |
239 | third_party/WebKit/Source/WebKit2/PluginProcess/mac \ | |
240 | third_party/WebKit/Source/WebKit2/Shared/API/c/mac \ | |
241 | third_party/WebKit/Source/WebKit2/Shared/API/c/win \ | |
242 | third_party/WebKit/Source/WebKit2/Shared/Plugins/Netscape/mac \ | |
243 | third_party/WebKit/Source/WebKit2/Shared/Plugins/Netscape/win \ | |
244 | third_party/WebKit/Source/WebKit2/Shared/Plugins/mac \ | |
245 | third_party/WebKit/Source/WebKit2/Shared/cg/win \ | |
246 | third_party/WebKit/Source/WebKit2/Shared/mac \ | |
247 | third_party/WebKit/Source/WebKit2/Shared/win \ | |
248 | third_party/WebKit/Source/WebKit2/UIProcess/API/C/mac \ | |
249 | third_party/WebKit/Source/WebKit2/UIProcess/API/C/win \ | |
250 | third_party/WebKit/Source/WebKit2/UIProcess/API/mac \ | |
251 | third_party/WebKit/Source/WebKit2/UIProcess/Launcher/mac \ | |
252 | third_party/WebKit/Source/WebKit2/UIProcess/Launcher/win \ | |
253 | third_party/WebKit/Source/WebKit2/UIProcess/Plugins/mac \ | |
254 | third_party/WebKit/Source/WebKit2/UIProcess/Plugins/win \ | |
255 | third_party/WebKit/Source/WebKit2/UIProcess/mac \ | |
256 | third_party/WebKit/Source/WebKit2/UIProcess/win \ | |
257 | third_party/WebKit/Source/WebKit2/WebProcess/Authentication/mac \ | |
258 | third_party/WebKit/Source/WebKit2/WebProcess/Cookies/mac \ | |
259 | third_party/WebKit/Source/WebKit2/WebProcess/Downloads/cf/win \ | |
260 | third_party/WebKit/Source/WebKit2/WebProcess/Downloads/mac \ | |
261 | third_party/WebKit/Source/WebKit2/WebProcess/FullScreen/mac \ | |
262 | third_party/WebKit/Source/WebKit2/WebProcess/FullScreen/win \ | |
263 | third_party/WebKit/Source/WebKit2/WebProcess/InjectedBundle/API/c/win \ | |
264 | third_party/WebKit/Source/WebKit2/WebProcess/InjectedBundle/mac \ | |
265 | third_party/WebKit/Source/WebKit2/WebProcess/InjectedBundle/win \ | |
266 | third_party/WebKit/Source/WebKit2/WebProcess/Plugins/Netscape/mac \ | |
267 | third_party/WebKit/Source/WebKit2/WebProcess/Plugins/Netscape/win \ | |
268 | third_party/WebKit/Source/WebKit2/WebProcess/WebCoreSupport/mac \ | |
269 | third_party/WebKit/Source/WebKit2/WebProcess/WebCoreSupport/win \ | |
270 | third_party/WebKit/Source/WebKit2/WebProcess/WebPage/ca/mac \ | |
271 | third_party/WebKit/Source/WebKit2/WebProcess/WebPage/ca/win \ | |
272 | third_party/WebKit/Source/WebKit2/WebProcess/WebPage/mac \ | |
273 | third_party/WebKit/Source/WebKit2/WebProcess/WebPage/win \ | |
274 | third_party/WebKit/Source/WebKit2/WebProcess/mac \ | |
275 | third_party/WebKit/Source/WebKit2/WebProcess/win \ | |
276 | third_party/WebKit/Source/WebKit2/mac \ | |
277 | third_party/WebKit/Source/WebKit2/win \ | |
3333a973 | 278 | third_party/WebKit/Tools/DumpRenderTree/mac \ |
4a263112 | 279 | third_party/WebKit/Tools/DumpRenderTree/qt \ |
3333a973 | 280 | third_party/WebKit/Tools/DumpRenderTree/win \ |
063abe65 ER |
281 | third_party/angle/extensions \ |
282 | third_party/angle/samples \ | |
54623fc8 | 283 | third_party/angle/samples/gles2_book \ |
05d9087c ER |
284 | third_party/boost \ |
285 | third_party/bsdiff \ | |
286 | third_party/bspatch \ | |
894dee72 ER |
287 | third_party/cacheinvalidation/src/example-app-build \ |
288 | third_party/cacheinvalidation/src/java \ | |
55dddbd9 | 289 | third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/external/client/android \ |
55dddbd9 | 290 | third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/ticl/android \ |
05d9087c | 291 | third_party/ffmpeg/binaries \ |
3333a973 ER |
292 | third_party/ffmpeg/chromium/binaries/Chromium/win \ |
293 | third_party/ffmpeg/chromium/config/Chrome/mac \ | |
e15125f5 | 294 | third_party/ffmpeg/chromium/config/Chrome/win \ |
3333a973 | 295 | third_party/ffmpeg/chromium/config/Chromium/mac \ |
e15125f5 | 296 | third_party/ffmpeg/chromium/config/Chromium/win \ |
3333a973 | 297 | third_party/ffmpeg/chromium/include/win \ |
e31bf7c6 | 298 | third_party/ffmpeg/doc \ |
894dee72 | 299 | third_party/ffmpeg/tools \ |
05d9087c | 300 | third_party/fuzzymatch \ |
8352ba82 | 301 | third_party/gles2_book \ |
05d9087c ER |
302 | third_party/gles_book_examples \ |
303 | third_party/gold \ | |
05d9087c | 304 | third_party/hunspell/dictionaries \ |
54623fc8 | 305 | third_party/hunspell_dictionaries \ |
e31bf7c6 | 306 | third_party/hyphen/doc \ |
55dddbd9 | 307 | third_party/icu/android \ |
05d9087c ER |
308 | third_party/icu/mac \ |
309 | third_party/lcov \ | |
e31bf7c6 | 310 | third_party/leveldatabase/src/doc \ |
3333a973 | 311 | third_party/leveldatabase/src/port/win \ |
dda6f58c | 312 | third_party/libjingle/source/talk/examples \ |
3333a973 ER |
313 | third_party/libjpeg_turbo/mac \ |
314 | third_party/libjpeg_turbo/win \ | |
55dddbd9 | 315 | third_party/libva/va/android \ |
3333a973 ER |
316 | third_party/libvpx/source/config/mac \ |
317 | third_party/libvpx/source/config/win \ | |
318 | third_party/libxml/mac \ | |
54623fc8 | 319 | third_party/lighttpd \ |
e31bf7c6 | 320 | third_party/mesa/MesaLib/docs \ |
e31bf7c6 | 321 | third_party/mesa/MesaLib/src/gallium/docs \ |
894dee72 | 322 | third_party/npapi/npspy/extern/java \ |
05d9087c ER |
323 | third_party/nspr \ |
324 | third_party/nss \ | |
325 | third_party/ocmock \ | |
55dddbd9 | 326 | third_party/openssl/config/android \ |
894dee72 | 327 | third_party/ots/tools \ |
05d9087c ER |
328 | third_party/pthread \ |
329 | third_party/pyftpdlib \ | |
e31bf7c6 | 330 | third_party/re2/doc \ |
05d9087c | 331 | third_party/scons \ |
894dee72 | 332 | third_party/sfntly/cpp/src/sfntly/tools \ |
05d9087c | 333 | third_party/simplejson \ |
55dddbd9 | 334 | third_party/skia/include/utils/android \ |
e31bf7c6 | 335 | third_party/skia/include/utils/ios \ |
3333a973 ER |
336 | third_party/skia/include/utils/mac \ |
337 | third_party/skia/include/utils/win \ | |
55dddbd9 ER |
338 | third_party/skia/include/views/android \ |
339 | third_party/skia/src/gpu/gl/android \ | |
3333a973 ER |
340 | third_party/skia/src/gpu/gl/mac \ |
341 | third_party/skia/src/gpu/gl/win \ | |
e31bf7c6 | 342 | third_party/skia/src/utils/ios \ |
3333a973 ER |
343 | third_party/skia/src/utils/mac \ |
344 | third_party/skia/src/utils/win \ | |
e31bf7c6 | 345 | third_party/skia/src/views/ios \ |
3333a973 ER |
346 | third_party/skia/src/views/mac \ |
347 | third_party/skia/src/views/win \ | |
348 | third_party/snappy/mac \ | |
e31bf7c6 ER |
349 | third_party/sqlite/src/doc \ |
350 | third_party/tcmalloc/vendor/doc \ | |
dda6f58c ER |
351 | third_party/trace-viewer/examples \ |
352 | third_party/trace-viewer/third_party/pywebsocket/src/example \ | |
54623fc8 | 353 | third_party/vc_80 \ |
e31bf7c6 | 354 | third_party/webdriver/pylib/docs \ |
55dddbd9 | 355 | third_party/webrtc/modules/audio_device/android \ |
e31bf7c6 | 356 | third_party/webrtc/modules/audio_device/ios \ |
3333a973 ER |
357 | third_party/webrtc/modules/audio_device/main/source/mac \ |
358 | third_party/webrtc/modules/audio_device/main/source/win \ | |
e15125f5 | 359 | third_party/webrtc/modules/audio_device/win \ |
894dee72 | 360 | third_party/webrtc/modules/video_capture/android/java \ |
55dddbd9 | 361 | third_party/webrtc/modules/video_capture/main/source/android \ |
894dee72 | 362 | third_party/webrtc/modules/video_render/android/java \ |
55dddbd9 | 363 | third_party/webrtc/modules/video_render/main/source/android \ |
3333a973 | 364 | third_party/webrtc/modules/video_render/main/source/mac \ |
55dddbd9 | 365 | third_party/webrtc/system_wrappers/source/android \ |
55dddbd9 | 366 | third_party/yasm/source/config/android \ |
3333a973 ER |
367 | third_party/yasm/source/config/mac \ |
368 | third_party/yasm/source/config/win \ | |
9304218b | 369 | tools/android \ |
063abe65 ER |
370 | tools/gyp/samples \ |
371 | tools/gyp/samples/samples \ | |
894dee72 | 372 | tools/gyp/tools \ |
3333a973 | 373 | tools/mac \ |
54623fc8 | 374 | tools/site_compare \ |
05d9087c ER |
375 | tools/stats_viewer \ |
376 | tools/symsrc \ | |
05d9087c | 377 | tools/valgrind \ |
3333a973 | 378 | tools/win \ |
05d9087c | 379 | tools/wine_valgrind \ |
9304218b | 380 | ui/android \ |
dda6f58c | 381 | ui/base/cocoa \ |
e15125f5 | 382 | ui/base/ime/win \ |
9304218b | 383 | ui/gfx/android \ |
3333a973 | 384 | ui/gfx/mac \ |
9304218b ER |
385 | ui/resources/default_100_percent/cros_ \ |
386 | ui/resources/default_200_percent/cros_ \ | |
dda6f58c | 387 | ui/views/examples \ |
3333a973 | 388 | ui/views/win \ |
063abe65 | 389 | v8/samples \ |
9304218b | 390 | webkit/chromeos \ |
55dddbd9 | 391 | webkit/media/android \ |
063abe65 ER |
392 | webrtc/modules/video_capture/windows \ |
393 | webrtc/modules/video_render/windows \ | |
8352ba82 | 394 | win8 \ |
f888c710 ER |
395 | ; do |
396 | rm -vfr "$dir" | |
397 | done | |
0bb93ab2 ER |
398 | |
399 | find $(ls -d \ | |
400 | base/mac \ | |
401 | base/win \ | |
402 | build/android \ | |
403 | chrome/browser/chromeos \ | |
404 | chrome/browser/component/web_contents_delegate_android \ | |
405 | chrome/tools \ | |
406 | chromeos \ | |
407 | content/browser/renderer_host/java \ | |
408 | content/common/mac \ | |
409 | content/renderer/java \ | |
410 | gpu/tools \ | |
411 | native_client/src/include/win \ | |
412 | native_client/src/trusted/service_runtime/win \ | |
413 | remoting/tools \ | |
414 | sandbox/win \ | |
415 | third_party/WebKit/Source/WebKit/chromium/public/mac \ | |
416 | third_party/WebKit/Tools \ | |
417 | third_party/cld/encodings/compact_lang_det/win \ | |
418 | third_party/cros_system_api \ | |
419 | third_party/mozc/chrome/chromeos \ | |
420 | third_party/sfntly/cpp/src/sample \ | |
421 | third_party/tcmalloc \ | |
422 | third_party/v8-i18n/tools \ | |
423 | third_party/webrtc/modules/video_coding/codecs/tools \ | |
424 | third_party/webrtc/tools \ | |
425 | ui/base/win \ | |
426 | v8/tools \ | |
427 | webkit/tools \ | |
428 | ) '!' -type d '(' \ | |
0bb93ab2 | 429 | '!' -name '*.grd' \ |
f2f193c6 | 430 | '!' -name '*.gyp*' \ |
0bb93ab2 ER |
431 | '!' -path 'base/mac/bundle_locations.h' \ |
432 | '!' -path 'base/mac/crash_logging.h' \ | |
433 | '!' -path 'base/win/windows_version.h' \ | |
434 | '!' -path 'build/android/cpufeatures.gypi' \ | |
435 | '!' -path 'chrome/browser/chromeos/contacts/contact.proto' \ | |
f2f193c6 ER |
436 | '!' -path 'chrome/browser/chromeos/extensions/file_browser_handler_api.h' \ |
437 | '!' -path 'chrome/browser/chromeos/extensions/networking_private_api.h' \ | |
0bb93ab2 ER |
438 | '!' -path 'chrome/browser/chromeos/settings/cros_settings.h' \ |
439 | '!' -path 'chrome/browser/chromeos/settings/cros_settings_names.h' \ | |
440 | '!' -path 'chrome/browser/chromeos/settings/cros_settings_provider.h' \ | |
f2f193c6 | 441 | '!' -path 'chrome/browser/chromeos/settings/device_settings_service.h' \ |
0bb93ab2 ER |
442 | '!' -path 'chrome/tools/build/generate_policy_source.py' \ |
443 | '!' -path 'chrome/tools/build/linux/sed.sh' \ | |
444 | '!' -path 'chrome/tools/build/make_version_cc.py' \ | |
445 | '!' -path 'chrome/tools/build/repack_locales.py' \ | |
446 | '!' -path 'chrome/tools/build/version.py' \ | |
447 | '!' -path 'chromeos/chromeos_export.h' \ | |
f2f193c6 ER |
448 | '!' -path 'chromeos/dbus/dbus_client_implementation_type.h' \ |
449 | '!' -path 'chromeos/dbus/session_manager_client.h' \ | |
0bb93ab2 ER |
450 | '!' -path 'chromeos/network/onc/onc_constants.h' \ |
451 | '!' -path 'content/browser/renderer_host/java/java_bridge_dispatcher_host_manager.h' \ | |
452 | '!' -path 'content/common/mac/attributed_string_coder.h' \ | |
453 | '!' -path 'content/common/mac/font_descriptor.h' \ | |
454 | '!' -path 'content/renderer/java/java_bridge_dispatcher.h' \ | |
455 | '!' -path 'native_client/src/include/win/mman.h' \ | |
456 | '!' -path 'native_client/src/trusted/service_runtime/win/debug_exception_handler.h' \ | |
457 | '!' -path 'native_client/src/trusted/service_runtime/win/exception_patch/ntdll_patch.h' \ | |
458 | '!' -path 'remoting/tools/verify_resources.py' \ | |
459 | '!' -path 'sandbox/win/src/sandbox_types.h' \ | |
460 | '!' -path 'third_party/WebKit/Source/WebKit/chromium/public/mac/WebSubstringUtil.h' \ | |
461 | '!' -path 'third_party/cld/encodings/compact_lang_det/win/cld_*.cc' \ | |
462 | '!' -path 'third_party/cld/encodings/compact_lang_det/win/cld_*.h' \ | |
463 | '!' -path 'third_party/cros_system_api/dbus/*.proto' \ | |
464 | '!' -path 'third_party/cros_system_api/dbus/service_constants.h' \ | |
465 | '!' -path 'third_party/sfntly/cpp/src/sample/chromium/*' \ | |
466 | '!' -path 'third_party/tcmalloc/chromium/*' \ | |
467 | '!' -path 'third_party/v8-i18n/tools/js2c.py' \ | |
468 | '!' -path 'ui/base/win/dpi.h' \ | |
469 | '!' -path 'v8/tools/js2c.py' \ | |
470 | '!' -path 'v8/tools/jsmin.py' \ | |
471 | ')' \ | |
472 | -print -delete | |
f888c710 ER |
473 | } |
474 | ||
8352ba82 ER |
475 | # There are directories we want to strip, but that are unnecessarily required by the build-system |
476 | # So we drop everything but the gyp/gypi files | |
477 | almost_strip_dirs() { | |
478 | local dir | |
479 | for dir in \ | |
f2f193c6 | 480 | breakpad_ \ |
e31bf7c6 | 481 | build/ios \ |
8352ba82 | 482 | courgette \ |
18ffc809 | 483 | third_party/cros_dbus_cplusplus \ |
8352ba82 | 484 | ; do |
0bb93ab2 | 485 | find $dir -depth -mindepth 1 '!' '(' -name '*.gyp' -o -name '*.gypi' ')' -print -delete || : |
8352ba82 | 486 | done |
bcc7de3a ER |
487 | |
488 | find tools -type f \ | |
489 | '!' -iname '*.gyp*' \ | |
490 | '!' -path 'tools/build/*' \ | |
491 | '!' -path 'tools/clang/scripts/plugin_flags.sh' \ | |
bdd77e01 | 492 | '!' -path 'tools/compile_test/compile_test.py' \ |
108c5f7c ER |
493 | '!' -path 'tools/generate_library_loader/*' \ |
494 | '!' -path 'tools/generate_shim_headers/generate_shim_headers.py' \ | |
bcc7de3a ER |
495 | '!' -path 'tools/generate_stubs/*' \ |
496 | '!' -path 'tools/grit/*' \ | |
497 | '!' -path 'tools/gritsettings/*' \ | |
498 | '!' -path 'tools/gyp/*' \ | |
499 | '!' -path 'tools/json_comment_eater.py' \ | |
500 | '!' -path 'tools/json_schema_compiler/*' \ | |
108c5f7c | 501 | '!' -path 'tools/json_to_struct/*' \ |
f2f193c6 | 502 | '!' -path 'tools/licenses.py' \ |
bcc7de3a | 503 | '!' -path 'tools/protoc_wrapper/*' \ |
f2f193c6 | 504 | '!' -path 'tools/usb_ids/*' \ |
bcc7de3a ER |
505 | '!' -path 'tools/uuidgen.py' \ |
506 | '!' -path 'tools/zip2msi.py' \ | |
507 | -print -delete | |
8352ba82 ER |
508 | } |
509 | ||
e21194da ER |
510 | # clean third party |
511 | # list based from archlinux PKGBUILD | |
512 | # https://aur.archlinux.org/packages/ch/chromium-dev/PKGBUILD | |
513 | clean_third_party() { | |
063abe65 ER |
514 | local dir |
515 | for dir in \ | |
516 | third_party/ashmem \ | |
063abe65 ER |
517 | third_party/eyesfree \ |
518 | third_party/guava \ | |
f2f193c6 | 519 | third_party/iaccessible2 \ |
063abe65 ER |
520 | third_party/icon_family \ |
521 | third_party/isimpledom \ | |
522 | third_party/jsoncpp \ | |
523 | third_party/jsr-305 \ | |
524 | third_party/libexif \ | |
525 | third_party/mach_override \ | |
f2f193c6 ER |
526 | third_party/npapi/npspy \ |
527 | third_party/re2/benchlog \ | |
063abe65 | 528 | third_party/snappy \ |
063abe65 ER |
529 | third_party/sqlite/*.patch \ |
530 | third_party/sqlite/src/*.patch \ | |
f2f193c6 | 531 | third_party/sudden_motion_sensor \ |
063abe65 ER |
532 | ; do |
533 | rm -vfr "$dir" | |
534 | done | |
535 | ||
80b34a6e ER |
536 | find third_party -type f \ |
537 | '!' -iname '*.gyp*' \ | |
15f29c79 ER |
538 | \! -path 'third_party/WebKit/*' \ |
539 | \! -path 'third_party/adobe/flash/*' \ | |
2759c83d ER |
540 | \! -path 'third_party/angle/include/EGL/*' \ |
541 | \! -path 'third_party/angle/include/GLSLANG/*' \ | |
542 | \! -path 'third_party/angle/src/common/*' \ | |
543 | \! -path 'third_party/angle/src/compiler/*' \ | |
544 | \! -path 'third_party/angle/src/third_party/compiler/*' \ | |
e21194da ER |
545 | \! -path 'third_party/cacheinvalidation/*' \ |
546 | \! -path 'third_party/cld/*' \ | |
15f29c79 | 547 | \! -path 'third_party/cros_system_api/*' \ |
063abe65 | 548 | \! -path 'third_party/flot/*.js' \ |
e21194da ER |
549 | \! -path 'third_party/hunspell/*' \ |
550 | \! -path 'third_party/hyphen/*' \ | |
551 | \! -path 'third_party/iccjpeg/*' \ | |
80b34a6e | 552 | \! -path 'third_party/jstemplate/*' \ |
e21194da ER |
553 | \! -path 'third_party/khronos/*' \ |
554 | \! -path 'third_party/leveldatabase/*' \ | |
15f29c79 | 555 | \! -path 'third_party/libXNVCtrl/*' \ |
e21194da ER |
556 | \! -path 'third_party/libjingle/*' \ |
557 | \! -path 'third_party/libphonenumber/*' \ | |
e21194da | 558 | \! -path 'third_party/libva/*' \ |
80b34a6e | 559 | \! -path 'third_party/libvpx/*' \ |
e21194da | 560 | \! -path 'third_party/libxml/chromium/*' \ |
e21194da | 561 | \! -path 'third_party/libyuv/*' \ |
063abe65 | 562 | \! -path 'third_party/lss/*.h' \ |
27a6f7d1 ER |
563 | \! -path 'third_party/mesa/MesaLib/include/GL/gl.h' \ |
564 | \! -path 'third_party/mesa/MesaLib/include/GL/glext.h' \ | |
565 | \! -path 'third_party/mesa/MesaLib/include/GL/glx.h' \ | |
566 | \! -path 'third_party/mesa/MesaLib/include/GL/glxext.h' \ | |
567 | \! -path 'third_party/mesa/MesaLib/include/GL/osmesa.h' \ | |
e21194da | 568 | \! -path 'third_party/modp_b64/*' \ |
e21194da ER |
569 | \! -path 'third_party/mt19937ar/*' \ |
570 | \! -path 'third_party/npapi/*' \ | |
e21194da | 571 | \! -path 'third_party/ots/*' \ |
e21194da | 572 | \! -path 'third_party/protobuf/*' \ |
e21194da ER |
573 | \! -path 'third_party/qcms/*' \ |
574 | \! -path 'third_party/re2/*' \ | |
e21194da ER |
575 | \! -path 'third_party/sfntly/*' \ |
576 | \! -path 'third_party/skia/*' \ | |
577 | \! -path 'third_party/smhasher/*' \ | |
e21194da ER |
578 | \! -path 'third_party/sqlite/*' \ |
579 | \! -path 'third_party/tcmalloc/*' \ | |
e21194da ER |
580 | \! -path 'third_party/trace-viewer/*' \ |
581 | \! -path 'third_party/undoview/*' \ | |
e21194da ER |
582 | \! -path 'third_party/v8-i18n/*' \ |
583 | \! -path 'third_party/v8/*' \ | |
e21194da ER |
584 | \! -path 'third_party/webrtc/*' \ |
585 | \! -path 'third_party/widevine/*' \ | |
80b34a6e | 586 | \! -path 'third_party/x86inc/*' \ |
e21194da ER |
587 | -print -delete |
588 | ||
e21194da ER |
589 | rm -vf third_party/expat/files/lib/expat.h |
590 | } | |
591 | ||
99f39995 ER |
592 | # parts based on ubuntu debian/rules |
593 | # http://bazaar.launchpad.net/~chromium-team/chromium-browser/chromium-browser.head/view/head:/debian/rules | |
99f39995 | 594 | remove_bin_only() { |
55dddbd9 | 595 | find -type f \( \ |
99f39995 | 596 | -iname \*.exe -o \ |
894dee72 ER |
597 | -iname \*.nexe -o \ |
598 | -iname \*.fon -o \ | |
599 | -iname \*.ttf -o \ | |
99f39995 ER |
600 | -iname \*.dll -o \ |
601 | -iname \*.pdb -o \ | |
602 | -name \*.o -o \ | |
603 | -name \*.a -o \ | |
604 | -name \*.dylib \ | |
605 | \) -exec rm -fv {} \; | |
606 | } | |
607 | ||
608 | # removes dir, if the bcond is not turned off | |
609 | strip_system_dirs() { | |
610 | local dir lib bcond | |
611 | for dir in "$@"; do | |
612 | lib=${dir##*/} | |
613 | bcond=$(eval echo \$$lib) | |
cd09b941 | 614 | [ "${bcond:-1}" = 0 ] && continue |
99f39995 ER |
615 | |
616 | # skip already removed dirs | |
617 | test -d $dir || continue | |
618 | ||
0e308272 | 619 | find $dir -depth -mindepth 1 \! \( -name '*.gyp' -o -name '*.gypi' -o -path $dir/$lib.h \) -print -delete |
99f39995 ER |
620 | done |
621 | } | |
622 | ||
da3dfa9f | 623 | # remove test data and files |
e31bf7c6 | 624 | # some scanned with find -name tests -o -name test -o -name test_data -o name testdata |
da3dfa9f ER |
625 | # and find -iname *test* |
626 | remove_tests() { | |
627 | local dir | |
628 | ||
629 | # full remove | |
630 | for dir in \ | |
631 | ash/test \ | |
632 | base/test \ | |
633 | breakpad/src/client/windows/tests \ | |
634 | breakpad/src/common/linux/tests \ | |
635 | breakpad/src/common/tests \ | |
e31bf7c6 | 636 | cc/test \ |
da3dfa9f ER |
637 | chrome/browser/chromeos/bluetooth/test \ |
638 | chrome/browser/component_updater/test \ | |
e31bf7c6 | 639 | chrome/browser/extensions/api/test_ \ |
da3dfa9f ER |
640 | chrome/browser/printing/cloud_print/test \ |
641 | chrome/browser/resources/gaia_auth/test \ | |
642 | chrome/browser/resources/tracing/tests \ | |
643 | chrome/browser/sync/test \ | |
e31bf7c6 ER |
644 | chrome/browser/ui/cocoa/test \ |
645 | chrome/browser/ui/gtk/test \ | |
da3dfa9f | 646 | chrome/browser/ui/tests \ |
e31bf7c6 | 647 | chrome/browser/ui/views/test \ |
da3dfa9f ER |
648 | chrome/installer/test \ |
649 | chrome/test/chromeos \ | |
650 | chrome/test/data/firefox2_nss_mac \ | |
651 | chrome/test/data/safe_browsing/old \ | |
652 | chrome/test/logging/win \ | |
653 | chrome/test/pyautolib/chromeos \ | |
654 | chrome/test/webdriver/test \ | |
e31bf7c6 | 655 | chrome/test_ \ |
da3dfa9f ER |
656 | chrome/tools/test \ |
657 | chrome_frame/test \ | |
658 | chrome_frame/tools/test \ | |
659 | content/browser/worker_host/test \ | |
e31bf7c6 | 660 | content/common/gpu/testdata \ |
da3dfa9f ER |
661 | content/public/test \ |
662 | content/test \ | |
663 | courgette/testdata \ | |
e31bf7c6 ER |
664 | device/bluetooth/test \ |
665 | device/test \ | |
da3dfa9f ER |
666 | gpu/command_buffer/tests \ |
667 | media/test \ | |
668 | media/tools/layout_tests/test_data \ | |
e31bf7c6 ER |
669 | native_client/buildbot \ |
670 | native_client/src/shared/platform/testdata \ | |
671 | native_client/src/trusted/gio/testdata \ | |
672 | native_client/src/trusted/interval_multiset/testdata \ | |
da3dfa9f | 673 | native_client/src/trusted/service_runtime/testdata \ |
e31bf7c6 | 674 | native_client/src/trusted/validator/x86/decoder/generator/testdata \ |
da3dfa9f | 675 | native_client/src/trusted/validator/x86/testing \ |
e31bf7c6 ER |
676 | native_client/src/trusted/validator_arm/testdata \ |
677 | native_client/src/trusted/validator_mips/testdata \ | |
678 | native_client/src/trusted/validator_x86/testdata \ | |
da3dfa9f | 679 | native_client/tests \ |
e31bf7c6 | 680 | native_client/tools/testdata \ |
da3dfa9f ER |
681 | native_client/tools/tests \ |
682 | native_client_sdk/src/build_tools/tests \ | |
683 | native_client_sdk/src/libraries/c_salt/test \ | |
684 | net/test \ | |
685 | o3d/tests \ | |
686 | ppapi/native_client/tests \ | |
687 | ppapi/tests \ | |
688 | printing/test \ | |
689 | rlz/test \ | |
690 | sandbox/linux/seccomp-legacy/tests \ | |
691 | sandbox/linux/tests \ | |
692 | sandbox/tests \ | |
693 | sandbox/win/tests \ | |
e31bf7c6 | 694 | sdch/open-vcdiff/testdata \ |
da3dfa9f ER |
695 | seccompsandbox/tests \ |
696 | sync/internal_api/public/test \ | |
697 | sync/internal_api/test \ | |
698 | sync/test \ | |
699 | testing/android \ | |
700 | testing/gmock/scripts/test \ | |
701 | testing/gmock/test \ | |
702 | testing/gtest/scripts/test \ | |
703 | testing/gtest/test \ | |
704 | third_party/WebKit/LayoutTests \ | |
705 | third_party/WebKit/Source/JavaScriptCore/API/tests \ | |
706 | third_party/WebKit/Source/JavaScriptCore/qt/tests \ | |
707 | third_party/WebKit/Source/JavaScriptCore/tests \ | |
708 | third_party/WebKit/Source/ThirdParty/gtest/scripts/test \ | |
709 | third_party/WebKit/Source/ThirdParty/gtest/test \ | |
710 | third_party/WebKit/Source/ThirdParty/gyp/test \ | |
711 | third_party/WebKit/Source/ThirdParty/qunit/test \ | |
712 | third_party/WebKit/Source/WebCore/bindings/scripts/test \ | |
713 | third_party/WebKit/Source/WebCore/testing_ \ | |
714 | third_party/WebKit/Source/WebKit/chromium/tests \ | |
715 | third_party/WebKit/Source/WebKit/efl/tests \ | |
716 | third_party/WebKit/Source/WebKit/gtk/tests \ | |
717 | third_party/WebKit/Source/WebKit/qt/tests \ | |
718 | third_party/WebKit/Source/WebKit2/UIProcess/API/efl/tests \ | |
719 | third_party/WebKit/Source/WebKit2/UIProcess/API/gtk/tests \ | |
720 | third_party/WebKit/Source/WebKit2/UIProcess/API/qt/tests \ | |
721 | third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/mac \ | |
722 | third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/win \ | |
723 | third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/mac \ | |
724 | third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/win \ | |
725 | third_party/WebKit/Tools/Scripts/webkitpy/test \ | |
726 | third_party/WebKit/Tools/TestWebKitAPI/Tests/TestWebKitAPI/mac \ | |
727 | third_party/WebKit/Tools/TestWebKitAPI/Tests/WebKit/win \ | |
728 | third_party/WebKit/Tools/TestWebKitAPI/Tests/WebKit2/mac \ | |
729 | third_party/WebKit/Tools/TestWebKitAPI/Tests/WebKit2/win \ | |
730 | third_party/WebKit/Tools/TestWebKitAPI/Tests/mac \ | |
731 | third_party/WebKit/Tools/TestWebKitAPI/mac \ | |
732 | third_party/WebKit/Tools/TestWebKitAPI/win \ | |
733 | third_party/angle/tests \ | |
734 | third_party/cacheinvalidation/files/src/google/cacheinvalidation/test \ | |
e31bf7c6 | 735 | third_party/cacheinvalidation/src/google/cacheinvalidation/test \ |
da3dfa9f ER |
736 | third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/testing \ |
737 | third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/testing/android \ | |
738 | third_party/ffmpeg/tests \ | |
739 | third_party/harfbuzz/tests \ | |
740 | third_party/hunspell/tests \ | |
741 | third_party/hyphen/tests \ | |
742 | third_party/libexif/sources/test \ | |
743 | third_party/libjingle/source/talk/app/webrtc/test \ | |
e31bf7c6 | 744 | third_party/libjingle/source/talk/media/testdata \ |
da3dfa9f ER |
745 | third_party/libphonenumber/src/resources/test \ |
746 | third_party/libphonenumber/src/test \ | |
747 | third_party/libsrtp/srtp/crypto/test \ | |
748 | third_party/libsrtp/srtp/test \ | |
e31bf7c6 | 749 | third_party/libyuv/unit_test/testdata \ |
da3dfa9f ER |
750 | third_party/mesa/MesaLib/src/gallium/tests \ |
751 | third_party/openssl/openssl/crypto/des/t/test \ | |
752 | third_party/openssl/openssl/test \ | |
753 | third_party/ots/test \ | |
e31bf7c6 | 754 | third_party/protobuf/src/google/protobuf/testdata \ |
da3dfa9f ER |
755 | third_party/protobuf/src/google/protobuf/testing \ |
756 | third_party/re2/re2/testing \ | |
757 | third_party/safe_browsing/testing \ | |
758 | third_party/sfntly/cpp/src/test \ | |
759 | third_party/sqlite/src/test \ | |
760 | third_party/sqlite/test \ | |
761 | third_party/talloc/libreplace/test \ | |
762 | third_party/tcmalloc/chromium/src/tests \ | |
763 | third_party/tcmalloc/vendor/src/tests \ | |
764 | third_party/tlslite/test \ | |
765 | third_party/trace-viewer/test_data \ | |
e31bf7c6 ER |
766 | third_party/trace-viewer/third_party/pywebsocket/src/test \ |
767 | third_party/trace-viewer/third_party/pywebsocket/src/test/testdata \ | |
da3dfa9f ER |
768 | third_party/v8-i18n/tests \ |
769 | third_party/webdriver/pylib/test \ | |
770 | third_party/webdriver/test_data \ | |
771 | third_party/webrtc/modules/audio_device/test/android \ | |
772 | third_party/webrtc/modules/audio_processing/test/android \ | |
e31bf7c6 | 773 | third_party/webrtc/modules/utility/test \ |
da3dfa9f | 774 | third_party/webrtc/modules/video_capture/main/test/android \ |
e31bf7c6 ER |
775 | third_party/webrtc/system_wrappers/test \ |
776 | third_party/webrtc/test \ | |
da3dfa9f ER |
777 | third_party/webrtc/test/testsupport/mac \ |
778 | third_party/webrtc/video_engine/test/android \ | |
779 | third_party/webrtc/video_engine/test/auto_test/android \ | |
780 | third_party/webrtc/voice_engine/test/android \ | |
781 | third_party/xdg-utils/tests \ | |
782 | third_party/yasm/source/patched-yasm/libyasm/tests \ | |
783 | third_party/yasm/source/patched-yasm/modules/arch/lc3b/tests \ | |
784 | third_party/yasm/source/patched-yasm/modules/arch/x86/tests \ | |
785 | third_party/yasm/source/patched-yasm/modules/dbgfmts/dwarf2/tests \ | |
786 | third_party/yasm/source/patched-yasm/modules/dbgfmts/stabs/tests \ | |
787 | third_party/yasm/source/patched-yasm/modules/objfmts/bin/tests \ | |
788 | third_party/yasm/source/patched-yasm/modules/objfmts/coff/tests \ | |
789 | third_party/yasm/source/patched-yasm/modules/objfmts/elf/tests \ | |
790 | third_party/yasm/source/patched-yasm/modules/objfmts/macho/tests \ | |
791 | third_party/yasm/source/patched-yasm/modules/objfmts/rdf/tests \ | |
792 | third_party/yasm/source/patched-yasm/modules/objfmts/win32/tests \ | |
793 | third_party/yasm/source/patched-yasm/modules/objfmts/win64/tests \ | |
794 | third_party/yasm/source/patched-yasm/modules/objfmts/xdf/tests \ | |
795 | third_party/yasm/source/patched-yasm/modules/parsers/gas/tests \ | |
796 | third_party/yasm/source/patched-yasm/modules/parsers/nasm/tests \ | |
797 | third_party/yasm/source/patched-yasm/modules/parsers/tasm/tests \ | |
798 | third_party/yasm/source/patched-yasm/modules/preprocs/nasm/tests \ | |
799 | third_party/yasm/source/patched-yasm/modules/preprocs/raw/tests \ | |
800 | third_party/yasm/source/patched-yasm/tools/python-yasm/tests \ | |
801 | tools/clang/plugins/tests \ | |
e31bf7c6 | 802 | tools/grit/grit/testdata \ |
da3dfa9f | 803 | tools/gyp/test \ |
e31bf7c6 | 804 | tools/gyp/tools/emacs/testdata \ |
da3dfa9f ER |
805 | tools/page_cycler/webpagereplay/tests \ |
806 | tools/perf_expectations/tests \ | |
e31bf7c6 | 807 | tools/swarm_client/tests \ |
da3dfa9f ER |
808 | ui/app_list/test \ |
809 | ui/aura/test \ | |
810 | ui/base/test \ | |
811 | ui/compositor/test \ | |
812 | ui/gfx/test \ | |
813 | ui/test \ | |
814 | ui/views/test \ | |
815 | v8/test \ | |
e31bf7c6 | 816 | webkit/compositor_bindings/test \ |
da3dfa9f ER |
817 | webkit/data/layout_tests \ |
818 | webkit/plugins/npapi/test \ | |
819 | webkit/tools/test/reference_build \ | |
820 | webkit/tools/test_shell/mac \ | |
821 | ; do | |
822 | rm -vfr "$dir" | |
823 | done | |
824 | ||
825 | # partial remove (keep .gyp) | |
826 | for dir in \ | |
e31bf7c6 | 827 | chrome/browser/nacl_host/test \ |
da3dfa9f ER |
828 | chrome/test/data \ |
829 | testing \ | |
e31bf7c6 ER |
830 | third_party/webrtc/modules/audio_coding/codecs/cng/test \ |
831 | third_party/webrtc/modules/audio_coding/codecs/g711/test \ | |
832 | third_party/webrtc/modules/audio_coding/codecs/g722/test \ | |
833 | third_party/webrtc/modules/audio_coding/codecs/ilbc/test \ | |
834 | third_party/webrtc/modules/audio_coding/codecs/isac/fix/test \ | |
835 | third_party/webrtc/modules/audio_coding/codecs/isac/main/test \ | |
836 | third_party/webrtc/modules/audio_coding/main/test \ | |
837 | third_party/webrtc/modules/audio_coding/neteq/test \ | |
838 | third_party/webrtc/modules/audio_conference_mixer/test \ | |
839 | third_party/webrtc/modules/audio_device/test \ | |
840 | third_party/webrtc/modules/audio_processing/test \ | |
841 | third_party/webrtc/modules/rtp_rtcp/test \ | |
842 | third_party/webrtc/modules/udp_transport/test \ | |
843 | third_party/webrtc/modules/video_capture/main/test \ | |
844 | third_party/webrtc/modules/video_coding/codecs/test \ | |
845 | third_party/webrtc/modules/video_coding/codecs/vp8/test \ | |
846 | third_party/webrtc/modules/video_coding/main/test \ | |
847 | third_party/webrtc/modules/video_processing/main/test \ | |
848 | third_party/webrtc/modules/video_render/main/test \ | |
849 | third_party/webrtc/video_engine/test \ | |
850 | third_party/webrtc/voice_engine/test \ | |
851 | tools/json_schema_compiler/test \ | |
da3dfa9f | 852 | ; do |
e31bf7c6 | 853 | find $dir -depth -mindepth 1 '!' '(' -name '*.gyp' -o -name '*.gypi' ')' -print -delete || : |
da3dfa9f ER |
854 | done |
855 | ||
856 | # link headers from system dir. too many files to patch, we don't even build tests | |
857 | install -d testing/gtest/include | |
858 | ln -s /usr/include/gtest testing/gtest/include/gtest | |
859 | ||
860 | # delete unittest files | |
dda6f58c ER |
861 | find . '(' \ |
862 | -name '*_unittest*.*' \ | |
063abe65 ER |
863 | -o -name '*_unittest.*' \ |
864 | -o -name '*_unittest' \ | |
865 | -o -name 'test_*.*' \ | |
dda6f58c ER |
866 | -o -name '*_test.*' \ |
867 | ')' '!' -name '*.gyp*' \ | |
063abe65 ER |
868 | '!' -name '*.isolate' \ |
869 | '!' -name '*.grd' \ | |
dda6f58c | 870 | '!' -path './chrome/browser/diagnostics/diagnostics_test.*' \ |
063abe65 ER |
871 | '!' -path './chrome/browser/extensions/api/declarative/test_rules_registry.*' \ |
872 | '!' -path './chrome/browser/extensions/api/test/test_api.*' \ | |
873 | '!' -path './chrome/browser/resources/net_internals/*' \ | |
874 | '!' -path './chrome/browser/ui/webui/test_chrome_web_ui_controller_factory*' \ | |
875 | '!' -path './chrome/common/net/test_server_locations.*' \ | |
876 | '!' -path './chrome/test/base/test_switches.*' \ | |
dda6f58c | 877 | '!' -path './chrome/test/perf/browser_perf_test.*' \ |
063abe65 ER |
878 | '!' -path './chrome/test/perf/perf_test.*' \ |
879 | '!' -path './native_client/src/trusted/fault_injection/test_injection.*' \ | |
880 | '!' -path './native_client/src/trusted/service_runtime/env_cleanser_test.h' \ | |
881 | '!' -path './net/base/test_completion_callback.*' \ | |
882 | '!' -path './net/base/test_data_stream.*' \ | |
883 | '!' -path './net/base/test_root_certs*' \ | |
3b691646 | 884 | '!' -path './remoting/base/resources_unittest.*' \ |
063abe65 | 885 | '!' -path './third_party/skia/src/gpu/gr_unittests.*' \ |
bdd77e01 | 886 | '!' -path './tools/compile_test/compile_test.py' \ |
063abe65 ER |
887 | '!' -path './ui/compositor/test_web_graphics_context_3d.*' \ |
888 | '!' -path './webkit/fileapi/test_mount_point_provider.*' \ | |
889 | -print -delete || : | |
da3dfa9f ER |
890 | } |
891 | ||
e31bf7c6 ER |
892 | remove_nonessential_dirs > REMOVED-nonessential_dirs.txt |
893 | almost_strip_dirs > REMOVED-stripped.txt | |
894 | remove_bin_only > REMOVED-bin_only.txt | |
895 | remove_tests > REMOVED-tests.txt | |
99f39995 ER |
896 | |
897 | strip_system_dirs \ | |
31187203 | 898 | native_client/src/third_party_mod/jsoncpp \ |
99f39995 | 899 | third_party/bzip2 \ |
80b34a6e | 900 | third_party/ffmpeg \ |
31187203 | 901 | third_party/flac \ |
99f39995 | 902 | third_party/icu \ |
31187203 | 903 | third_party/jsoncpp \ |
42e551c9 | 904 | third_party/libXNVCtrl \ |
99f39995 | 905 | third_party/libevent \ |
07d26a0d | 906 | third_party/libexif \ |
99f39995 | 907 | third_party/libjpeg \ |
07d26a0d | 908 | third_party/libmtp \ |
99f39995 | 909 | third_party/libpng \ |
3ee15dec | 910 | third_party/libsrtp \ |
581aec44 | 911 | third_party/libusb \ |
4b411ffe | 912 | third_party/libvpx \ |
31187203 | 913 | third_party/libwebp \ |
99f39995 | 914 | third_party/libxslt \ |
25d4e23c | 915 | third_party/mesa \ |
07d26a0d | 916 | third_party/opus \ |
75a27c2e | 917 | third_party/protobuf \ |
80b34a6e | 918 | third_party/re2 \ |
ed514974 | 919 | third_party/speex \ |
e15125f5 | 920 | third_party/yasm \ |
2a97b574 | 921 | third_party/zlib \ |
99f39995 | 922 | v8 \ |
e31bf7c6 | 923 | > REMOVED-system_dirs.txt |
00360a4d | 924 | |
e31bf7c6 | 925 | clean_third_party > REMOVED-third_party.txt |
fe547a32 | 926 | |
cd09b941 | 927 | if [ "${v8:-1}" != "0" ]; then |
fe547a32 ER |
928 | # The implementation files include v8 headers with full path, |
929 | # like #include "v8/include/v8.h". Make sure the system headers | |
930 | # will be used. | |
598df428 | 931 | rm -rf v8/include |
fe547a32 ER |
932 | ln -s /usr/include v8/include |
933 | fi | |
934 | ||
cd09b941 | 935 | if [ "${nacl:-1}" != "0" ]; then |
fe547a32 ER |
936 | # NOTE: here is always x86_64 |
937 | rm -rf native_client/toolchain/linux_x86_newlib | |
fe547a32 | 938 | fi |
18ffc809 | 939 | |
23e8b485 ER |
940 | if [ "${emptydirs:-0}" != "0" ]; then |
941 | # cleanup empty dirs | |
942 | find -type d '!' -name '.' -print0 | sort -zr | xargs -0 rmdir --ignore-fail-on-non-empty > REMOVED-dirs.txt | |
943 | fi | |
e31bf7c6 ER |
944 | |
945 | # report what's in them | |
946 | for a in REMOVED-*.txt; do | |
947 | cat $a | |
948 | done |