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