5 # remove everything unless it's remove has been disabled with "0"
6 # "v8=0" means "do not remove v8"
9 # https://code.google.com/p/chromium/wiki/LinuxPackaging
10 # initial list from src/tools/export_tarball/export_tarball.py
11 # some scanned with find -name tests -o -name test -o -name test_data
12 # and find -iname *test*
13 # also removed non-linux files: find -name win -o -name mac -o name android
14 remove_nonessential_dirs() {
19 base/android/javatests/src/org/chromium/base/test \
23 breakpad/src/client/mac \
24 breakpad/src/client/mac/tests \
25 breakpad/src/client/windows/tests \
26 breakpad/src/common/android/testing \
27 breakpad/src/common/linux/tests \
28 breakpad/src/common/mac \
29 breakpad/src/common/tests \
30 breakpad/src/tools/mac \
35 chrome/app/theme/default_100_percent/mac \
36 chrome/app/theme/default_100_percent/win \
37 chrome/app/theme/default_200_percent/mac \
38 chrome/app/theme/default_200_percent/win \
39 chrome/app/theme/touch_100_percent/win \
40 chrome/app/theme/touch_140_percent/win \
41 chrome/app/theme/touch_180_percent/win \
42 chrome/browser/android \
43 chrome/browser/chromeos/bluetooth/test \
44 chrome/browser/component_updater/test \
45 chrome/browser/history/android \
47 chrome/browser/printing/cloud_print/test \
48 chrome/browser/resources/gaia_auth/test \
49 chrome/browser/resources/tracing/tests \
50 chrome/browser/sync/test \
51 chrome/browser/ui/tests \
52 chrome/common/extensions/docs \
54 chrome/installer/mac \
55 chrome/installer/mac/third_party/xz/config/mac \
56 chrome/installer/test \
57 chrome/test/logging/win \
58 chrome/test/webdriver/test \
59 chrome/tools/build/mac \
60 chrome/tools/build/win \
62 chrome/tools/test/reference_build \
65 chrome_frame/tools/test \
66 cloud_print/service/win \
67 cloud_print/virtual_driver/win \
69 content/browser/android \
70 content/browser/worker_host/test \
71 content/common/android \
73 content/public/android \
74 content/public/browser/android \
76 content/renderer/android \
77 content/shell/android \
80 content/test/data/layout_tests/LayoutTests/http/tests \
81 content/test/data/layout_tests/LayoutTests/http/tests/websocket/tests \
82 content/test/data/layout_tests/LayoutTests/platform/chromium-win/http/tests \
85 gpu/command_buffer/tests \
89 media/tools/layout_tests/test_data \
90 media/video/capture/mac \
91 media/video/capture/win \
92 native_client/build/mac \
93 native_client/src/include/win_ \
94 native_client/src/shared/imc/win \
95 native_client/src/shared/platform/win \
96 native_client/src/trusted/debug_stub/win \
97 native_client/src/trusted/desc/win \
98 native_client/src/trusted/nonnacl_util/win \
99 native_client/src/trusted/platform_qualify/win \
100 native_client/src/trusted/service_runtime/testdata \
101 native_client/src/trusted/service_runtime/win_ \
102 native_client/src/trusted/validator/x86/testing \
103 native_client/tests \
104 native_client/tools/tests \
106 native_client_sdk/src/build_tools/tests \
107 native_client_sdk/src/libraries/c_salt/test \
108 native_client_sdk/src/libraries/win \
113 ppapi/native_client/src/trusted/plugin/win \
114 ppapi/native_client/tests \
117 remoting/host/installer/mac \
118 remoting/host/installer/win \
120 remoting/host/setup/win \
125 sandbox/linux/seccomp-legacy/tests \
126 sandbox/linux/tests \
131 seccompsandbox/tests \
133 sync/internal_api/public/test \
134 sync/internal_api/test \
136 testing/gmock/scripts/test \
138 testing/gtest/scripts/test \
140 third_party/WebKit/LayoutTests \
141 third_party/WebKit/Source/JavaScriptCore/API/tests \
142 third_party/WebKit/Source/JavaScriptCore/qt/tests \
143 third_party/WebKit/Source/JavaScriptCore/tests \
144 third_party/WebKit/Source/Platform/chromium/public/android \
145 third_party/WebKit/Source/Platform/chromium/public/mac \
146 third_party/WebKit/Source/Platform/chromium/public/win \
147 third_party/WebKit/Source/ThirdParty/gtest/scripts/test \
148 third_party/WebKit/Source/ThirdParty/gtest/test \
149 third_party/WebKit/Source/ThirdParty/gyp/test \
150 third_party/WebKit/Source/ThirdParty/qunit/test \
151 third_party/WebKit/Source/WTF/wtf/mac \
152 third_party/WebKit/Source/WTF/wtf/threads/win \
153 third_party/WebKit/Source/WTF/wtf/win \
154 third_party/WebKit/Source/WebCore/WebCore.gyp/mac \
155 third_party/WebKit/Source/WebCore/accessibility/mac \
156 third_party/WebKit/Source/WebCore/accessibility/win \
157 third_party/WebKit/Source/WebCore/bindings/scripts/test \
158 third_party/WebKit/Source/WebCore/editing/android \
159 third_party/WebKit/Source/WebCore/editing/mac \
160 third_party/WebKit/Source/WebCore/history/android \
161 third_party/WebKit/Source/WebCore/history/mac \
162 third_party/WebKit/Source/WebCore/loader/mac \
163 third_party/WebKit/Source/WebCore/loader/win \
164 third_party/WebKit/Source/WebCore/page/android \
165 third_party/WebKit/Source/WebCore/page/mac \
166 third_party/WebKit/Source/WebCore/page/scrolling/mac \
167 third_party/WebKit/Source/WebCore/page/win \
168 third_party/WebKit/Source/WebCore/platform/android \
169 third_party/WebKit/Source/WebCore/platform/audio/mac \
170 third_party/WebKit/Source/WebCore/platform/cf/win \
171 third_party/WebKit/Source/WebCore/platform/graphics/ca/mac \
172 third_party/WebKit/Source/WebCore/platform/graphics/ca/win \
173 third_party/WebKit/Source/WebCore/platform/graphics/gpu/mac \
174 third_party/WebKit/Source/WebCore/platform/graphics/mac \
175 third_party/WebKit/Source/WebCore/platform/graphics/surfaces/mac \
176 third_party/WebKit/Source/WebCore/platform/graphics/surfaces/win \
177 third_party/WebKit/Source/WebCore/platform/graphics/win \
178 third_party/WebKit/Source/WebCore/platform/mac \
179 third_party/WebKit/Source/WebCore/platform/network/android \
180 third_party/WebKit/Source/WebCore/platform/network/mac \
181 third_party/WebKit/Source/WebCore/platform/network/win \
182 third_party/WebKit/Source/WebCore/platform/text/android \
183 third_party/WebKit/Source/WebCore/platform/text/mac \
184 third_party/WebKit/Source/WebCore/platform/text/win \
185 third_party/WebKit/Source/WebCore/platform/win \
186 third_party/WebKit/Source/WebCore/platform/wx/wxcode/mac \
187 third_party/WebKit/Source/WebCore/platform/wx/wxcode/win \
188 third_party/WebKit/Source/WebCore/plugins/mac \
189 third_party/WebKit/Source/WebCore/plugins/win \
190 third_party/WebKit/Source/WebCore/testing_ \
191 third_party/WebKit/Source/WebKit/chromium/public/android \
192 third_party/WebKit/Source/WebKit/chromium/public/mac_ \
193 third_party/WebKit/Source/WebKit/chromium/public/platform/android \
194 third_party/WebKit/Source/WebKit/chromium/public/platform/mac \
195 third_party/WebKit/Source/WebKit/chromium/public/platform/win \
196 third_party/WebKit/Source/WebKit/chromium/public/win \
197 third_party/WebKit/Source/WebKit/chromium/src/android \
198 third_party/WebKit/Source/WebKit/chromium/src/mac \
199 third_party/WebKit/Source/WebKit/chromium/src/win \
200 third_party/WebKit/Source/WebKit/chromium/tests \
201 third_party/WebKit/Source/WebKit/efl/tests \
202 third_party/WebKit/Source/WebKit/gtk/tests \
203 third_party/WebKit/Source/WebKit/mac \
204 third_party/WebKit/Source/WebKit/qt/tests \
205 third_party/WebKit/Source/WebKit/win \
206 third_party/WebKit/Source/WebKit2/Platform/CoreIPC/mac \
207 third_party/WebKit/Source/WebKit2/Platform/CoreIPC/win \
208 third_party/WebKit/Source/WebKit2/Platform/mac \
209 third_party/WebKit/Source/WebKit2/Platform/win \
210 third_party/WebKit/Source/WebKit2/PluginProcess/mac \
211 third_party/WebKit/Source/WebKit2/Shared/API/c/mac \
212 third_party/WebKit/Source/WebKit2/Shared/API/c/win \
213 third_party/WebKit/Source/WebKit2/Shared/Plugins/Netscape/mac \
214 third_party/WebKit/Source/WebKit2/Shared/Plugins/Netscape/win \
215 third_party/WebKit/Source/WebKit2/Shared/Plugins/mac \
216 third_party/WebKit/Source/WebKit2/Shared/cg/win \
217 third_party/WebKit/Source/WebKit2/Shared/mac \
218 third_party/WebKit/Source/WebKit2/Shared/win \
219 third_party/WebKit/Source/WebKit2/UIProcess/API/C/mac \
220 third_party/WebKit/Source/WebKit2/UIProcess/API/C/win \
221 third_party/WebKit/Source/WebKit2/UIProcess/API/efl/tests \
222 third_party/WebKit/Source/WebKit2/UIProcess/API/gtk/tests \
223 third_party/WebKit/Source/WebKit2/UIProcess/API/mac \
224 third_party/WebKit/Source/WebKit2/UIProcess/API/qt/tests \
225 third_party/WebKit/Source/WebKit2/UIProcess/Launcher/mac \
226 third_party/WebKit/Source/WebKit2/UIProcess/Launcher/win \
227 third_party/WebKit/Source/WebKit2/UIProcess/Plugins/mac \
228 third_party/WebKit/Source/WebKit2/UIProcess/Plugins/win \
229 third_party/WebKit/Source/WebKit2/UIProcess/mac \
230 third_party/WebKit/Source/WebKit2/UIProcess/win \
231 third_party/WebKit/Source/WebKit2/WebProcess/Authentication/mac \
232 third_party/WebKit/Source/WebKit2/WebProcess/Cookies/mac \
233 third_party/WebKit/Source/WebKit2/WebProcess/Downloads/cf/win \
234 third_party/WebKit/Source/WebKit2/WebProcess/Downloads/mac \
235 third_party/WebKit/Source/WebKit2/WebProcess/FullScreen/mac \
236 third_party/WebKit/Source/WebKit2/WebProcess/FullScreen/win \
237 third_party/WebKit/Source/WebKit2/WebProcess/InjectedBundle/API/c/win \
238 third_party/WebKit/Source/WebKit2/WebProcess/InjectedBundle/mac \
239 third_party/WebKit/Source/WebKit2/WebProcess/InjectedBundle/win \
240 third_party/WebKit/Source/WebKit2/WebProcess/Plugins/Netscape/mac \
241 third_party/WebKit/Source/WebKit2/WebProcess/Plugins/Netscape/win \
242 third_party/WebKit/Source/WebKit2/WebProcess/WebCoreSupport/mac \
243 third_party/WebKit/Source/WebKit2/WebProcess/WebCoreSupport/win \
244 third_party/WebKit/Source/WebKit2/WebProcess/WebPage/ca/mac \
245 third_party/WebKit/Source/WebKit2/WebProcess/WebPage/ca/win \
246 third_party/WebKit/Source/WebKit2/WebProcess/WebPage/mac \
247 third_party/WebKit/Source/WebKit2/WebProcess/WebPage/win \
248 third_party/WebKit/Source/WebKit2/WebProcess/mac \
249 third_party/WebKit/Source/WebKit2/WebProcess/win \
250 third_party/WebKit/Source/WebKit2/mac \
251 third_party/WebKit/Source/WebKit2/win \
252 third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/mac \
253 third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/win \
254 third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/mac \
255 third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/win \
256 third_party/WebKit/Tools/DumpRenderTree/mac \
257 third_party/WebKit/Tools/DumpRenderTree/win \
258 third_party/WebKit/Tools/Scripts/webkitpy/test \
259 third_party/WebKit/Tools/TestWebKitAPI/Tests/TestWebKitAPI/mac \
260 third_party/WebKit/Tools/TestWebKitAPI/Tests/WebKit/win \
261 third_party/WebKit/Tools/TestWebKitAPI/Tests/WebKit2/mac \
262 third_party/WebKit/Tools/TestWebKitAPI/Tests/WebKit2/win \
263 third_party/WebKit/Tools/TestWebKitAPI/Tests/mac \
264 third_party/WebKit/Tools/TestWebKitAPI/mac \
265 third_party/WebKit/Tools/TestWebKitAPI/win \
266 third_party/angle/samples/gles2_book \
267 third_party/angle/tests \
268 third_party/cacheinvalidation/files/src/google/cacheinvalidation/test \
269 third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/external/client/android \
270 third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/testing \
271 third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/testing/android \
272 third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/ticl/android \
273 third_party/cld/encodings/compact_lang_det/win_ \
274 third_party/ffmpeg/chromium/binaries/Chromium/win \
275 third_party/ffmpeg/chromium/config/Chrome/mac \
276 third_party/ffmpeg/chromium/config/Chrome/win \
277 third_party/ffmpeg/chromium/config/Chromium/mac \
278 third_party/ffmpeg/chromium/config/Chromium/win \
279 third_party/ffmpeg/chromium/include/win \
280 third_party/ffmpeg/tests \
281 third_party/harfbuzz/tests \
282 third_party/hunspell/tests \
283 third_party/hunspell_dictionaries \
284 third_party/hyphen/tests \
285 third_party/icu/android \
286 third_party/leveldatabase/src/port/win \
287 third_party/libexif/sources/test \
288 third_party/libjingle/source/talk/app/webrtc/test \
289 third_party/libjpeg_turbo/mac \
290 third_party/libjpeg_turbo/win \
291 third_party/libphonenumber/src/resources/test \
292 third_party/libphonenumber/src/test \
293 third_party/libsrtp/srtp/crypto/test \
294 third_party/libsrtp/srtp/test \
295 third_party/libva/va/android \
296 third_party/libvpx/source/config/mac \
297 third_party/libvpx/source/config/win \
298 third_party/libxml/mac \
299 third_party/lighttpd \
300 third_party/mesa/MesaLib/src/gallium/tests \
301 third_party/mesa/MesaLib/src/gallium/tests/python/tests \
302 third_party/openssl/config/android \
303 third_party/openssl/openssl/crypto/des/t/test \
304 third_party/openssl/openssl/test \
305 third_party/ots/test \
306 third_party/protobuf/src/google/protobuf/testing \
307 third_party/re2/re2/testing \
308 third_party/safe_browsing/testing \
309 third_party/sfntly/cpp/src/test \
310 third_party/skia/include/utils/android \
311 third_party/skia/include/utils/mac \
312 third_party/skia/include/utils/win \
313 third_party/skia/include/views/android \
314 third_party/skia/src/gpu/gl/android \
315 third_party/skia/src/gpu/gl/mac \
316 third_party/skia/src/gpu/gl/win \
317 third_party/skia/src/utils/mac \
318 third_party/skia/src/utils/win \
319 third_party/skia/src/views/mac \
320 third_party/skia/src/views/win \
321 third_party/snappy/mac \
322 third_party/sqlite/src/test \
323 third_party/sqlite/test \
324 third_party/talloc/libreplace/test \
325 third_party/tcmalloc/chromium/src/tests \
326 third_party/tcmalloc/vendor/src/tests \
327 third_party/tlslite/test \
328 third_party/trace-viewer/test_data \
329 third_party/v8-i18n/tests \
331 third_party/webdriver/pylib/test \
332 third_party/webdriver/test_data \
333 third_party/webrtc/modules/audio_device/android \
334 third_party/webrtc/modules/audio_device/main/source/mac \
335 third_party/webrtc/modules/audio_device/main/source/win \
336 third_party/webrtc/modules/audio_device/test/android \
337 third_party/webrtc/modules/audio_device/win \
338 third_party/webrtc/modules/audio_processing/test/android \
339 third_party/webrtc/modules/video_capture/main/source/android \
340 third_party/webrtc/modules/video_capture/main/test/android \
341 third_party/webrtc/modules/video_render/main/source/android \
342 third_party/webrtc/modules/video_render/main/source/mac \
343 third_party/webrtc/system_wrappers/source/android \
344 third_party/webrtc/test/testsupport/mac \
345 third_party/webrtc/video_engine/test/android \
346 third_party/webrtc/video_engine/test/auto_test/android \
347 third_party/webrtc/voice_engine/test/android \
348 third_party/xdg-utils/tests \
349 third_party/yasm/source/config/android \
350 third_party/yasm/source/config/mac \
351 third_party/yasm/source/config/win \
352 third_party/yasm/source/patched-yasm/libyasm/tests \
353 third_party/yasm/source/patched-yasm/modules/arch/lc3b/tests \
354 third_party/yasm/source/patched-yasm/modules/arch/x86/tests \
355 third_party/yasm/source/patched-yasm/modules/dbgfmts/dwarf2/tests \
356 third_party/yasm/source/patched-yasm/modules/dbgfmts/stabs/tests \
357 third_party/yasm/source/patched-yasm/modules/objfmts/bin/tests \
358 third_party/yasm/source/patched-yasm/modules/objfmts/coff/tests \
359 third_party/yasm/source/patched-yasm/modules/objfmts/elf/tests \
360 third_party/yasm/source/patched-yasm/modules/objfmts/macho/tests \
361 third_party/yasm/source/patched-yasm/modules/objfmts/rdf/tests \
362 third_party/yasm/source/patched-yasm/modules/objfmts/win32/tests \
363 third_party/yasm/source/patched-yasm/modules/objfmts/win64/tests \
364 third_party/yasm/source/patched-yasm/modules/objfmts/xdf/tests \
365 third_party/yasm/source/patched-yasm/modules/parsers/gas/tests \
366 third_party/yasm/source/patched-yasm/modules/parsers/nasm/tests \
367 third_party/yasm/source/patched-yasm/modules/parsers/tasm/tests \
368 third_party/yasm/source/patched-yasm/modules/preprocs/nasm/tests \
369 third_party/yasm/source/patched-yasm/modules/preprocs/raw/tests \
370 third_party/yasm/source/patched-yasm/tools/python-yasm/tests \
371 tools/clang/plugins/tests \
374 tools/page_cycler/webpagereplay/tests \
375 tools/perf_expectations/tests \
393 webkit/data/layout_tests \
394 webkit/media/android \
395 webkit/plugins/npapi/test \
396 webkit/tools/test/reference_build \
397 webkit/tools/test_shell/mac \
403 # Strip tarball from some big directories not needed on the linux platform
405 # prefix with _ those that we can't remove (just yet) because of the gclient
406 # hooks (see build/all.gyp) or of some unneeded deps/includes
410 chrome/test/data/safe_browsing/old \
411 chrome/test/data/firefox2_nss_mac \
412 chrome/third_party/wtl/ \
419 third_party/bspatch \
420 third_party/ffmpeg/binaries \
421 third_party/fuzzymatch \
422 third_party/gles_book_examples \
424 third_party/hunspell/dictionaries \
425 third_party/icu/mac \
427 third_party/lighttpd \
431 third_party/pthread \
432 third_party/pyftpdlib \
433 third_party/simplejson \
435 _third_party/tcmalloc \
440 tools/wine_valgrind \
442 webkit/data/layout_tests \
448 # parts based on ubuntu debian/rules
449 # http://bazaar.launchpad.net/~chromium-team/chromium-browser/chromium-browser.head/view/head:/debian/rules
459 \) -exec rm -fv {} \;
462 # removes dir, if the bcond is not turned off
463 strip_system_dirs() {
467 bcond=$(eval echo \$$lib)
468 [ "${bcond:-1}" = 0 ] && continue
470 # skip already removed dirs
471 test -d $dir || continue
473 find $dir -depth -mindepth 1 \! \( -name '*.gyp' -o -name '*.gypi' -o -path $dir/$lib.h \) -print -delete
477 # There are directories we want to strip, but that are unnecessarily required by the build-system
478 # So we drop everything but the gyp/gypi files
479 almost_strip_dirs() {
482 find $dir -depth -mindepth 1 \! \( -name '*.gyp' -o -name '*.gypi' \) -print -delete || :
486 remove_nonessential_dirs | tee -a REMOVED-nonessential_dirs.txt
487 remove_bin_only | tee -a REMOVED-bin_only.txt
489 strip_dirs | tee -a REMOVED-stripped.txt
494 third_party/gles2_book \
496 | tee -a REMOVED-stripped.txt
498 # move around to keep third_party/libxml/chromium
499 mv third_party/libxml/chromium libxml-chromium
502 native_client/src/third_party_mod/jsoncpp \
506 third_party/jsoncpp \
507 third_party/libevent \
508 third_party/libexif \
509 third_party/libjpeg \
512 third_party/libsrtp \
515 third_party/libwebp \
517 third_party/libxslt \
523 | tee -a REMOVED-stripped.txt
525 install -d third_party/libxml
526 mv libxml-chromium third_party/libxml/chromium
529 # list based from archlinux PKGBUILD
530 # https://aur.archlinux.org/packages/ch/chromium-dev/PKGBUILD
531 find third_party -type f \! -iname '*.gyp*' \
532 \! -path 'third_party/angle/*' \
533 \! -path 'third_party/cacheinvalidation/*' \
534 \! -path 'third_party/cld/*' \
535 \! -path 'third_party/cros_system_api/*' \
536 \! -path 'third_party/ffmpeg/*' \
537 \! -path 'third_party/flac/flac.h' \
538 \! -path 'third_party/flot/*' \
539 \! -path 'third_party/gpsd/*' \
540 \! -path 'third_party/harfbuzz/*' \
541 \! -path 'third_party/harfbuzz-ng/*' \
542 \! -path 'third_party/hunspell/*' \
543 \! -path 'third_party/hyphen/*' \
544 \! -path 'third_party/iccjpeg/*' \
545 \! -path 'third_party/jsoncpp/*' \
546 \! -path 'third_party/khronos/*' \
547 \! -path 'third_party/leveldatabase/*' \
548 \! -path 'third_party/libjingle/*' \
549 \! -path 'third_party/libphonenumber/*' \
550 \! -path 'third_party/libpng/*' \
551 \! -path 'third_party/libsrtp/*' \
552 \! -path 'third_party/libusb/libusb.h' \
553 \! -path 'third_party/libva/*' \
554 \! -path 'third_party/libvpx/libvpx.h' \
555 \! -path 'third_party/libxml/chromium/*' \
556 \! -path 'third_party/libXNVCtrl/*' \
557 \! -path 'third_party/libyuv/*' \
558 \! -path 'third_party/llvm-build/*' \
559 \! -path 'third_party/lss/*' \
560 \! -path 'third_party/mesa/*' \
561 \! -path 'third_party/modp_b64/*' \
562 \! -path 'third_party/mongoose/*' \
563 \! -path 'third_party/mt19937ar/*' \
564 \! -path 'third_party/npapi/*' \
565 \! -path 'third_party/openmax/*' \
566 \! -path 'third_party/opus/*' \
567 \! -path 'third_party/ots/*' \
568 \! -path 'third_party/ply/*' \
569 \! -path 'third_party/protobuf/*' \
570 \! -path 'third_party/pywebsocket/*' \
571 \! -path 'third_party/qcms/*' \
572 \! -path 'third_party/re2/*' \
573 \! -path 'third_party/scons-2.0.1/*' \
574 \! -path 'third_party/sfntly/*' \
575 \! -path 'third_party/skia/*' \
576 \! -path 'third_party/smhasher/*' \
577 \! -path 'third_party/speex/speex.h' \
578 \! -path 'third_party/sqlite/*' \
579 \! -path 'third_party/tcmalloc/*' \
580 \! -path 'third_party/tlslite/*' \
581 \! -path 'third_party/trace-viewer/*' \
582 \! -path 'third_party/undoview/*' \
583 \! -path 'third_party/usb_ids/*' \
584 \! -path 'third_party/v8-i18n/*' \
585 \! -path 'third_party/v8/*' \
586 \! -path 'third_party/webdriver/*' \
587 \! -path 'third_party/webgl_conformance/*' \
588 \! -path 'third_party/WebKit/*' \
589 \! -path 'third_party/webrtc/*' \
590 \! -path 'third_party/widevine/*' \
591 \! -path 'third_party/adobe/flash/*' \
592 \! -path 'third_party/zlib/*' \
593 \! -path 'third_party/libvpx/*' \
594 -print -delete | tee -a REMOVED-clean.txt
596 rm -vf third_party/expat/files/lib/expat.h | tee -a REMOVED-clean.txt
598 if [ "${v8:-1}" != "0" ]; then
599 # The implementation files include v8 headers with full path,
600 # like #include "v8/include/v8.h". Make sure the system headers
603 ln -s /usr/include v8/include
606 if [ "${nacl:-1}" != "0" ]; then
607 # NOTE: here is always x86_64
608 rm -rf native_client/toolchain/linux_x86_newlib