]> git.pld-linux.org Git - packages/chromium-browser.git/blob - clean-source.sh
sorted
[packages/chromium-browser.git] / clean-source.sh
1 #!/bin/sh
2 set -xe
3
4 # import options
5 # remove everything unless it's remove has been disabled with "0"
6 # "v8=0" means "do not remove v8"
7 eval "$@"
8
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() {
15         local dir
16         for dir in \
17         ash/test \
18         base/android \
19         base/android/javatests/src/org/chromium/base/test \
20         base/mac_ \
21         base/test \
22         base/win_ \
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 \
31         build/mac \
32         build/win \
33         chrome/android \
34         chrome/app/android \
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 \
46         chrome/browser/mac \
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 \
53         chrome/common/mac \
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 \
61         chrome/tools/test \
62         chrome/tools/test/reference_build \
63         chrome_frame \
64         chrome_frame/test \
65         chrome_frame/tools/test \
66         cloud_print/service/win \
67         cloud_print/virtual_driver/win \
68         content/app/android \
69         content/browser/android \
70         content/browser/worker_host/test \
71         content/common/android \
72         content/common/mac_ \
73         content/public/android \
74         content/public/browser/android \
75         content/public/test \
76         content/renderer/android \
77         content/shell/android \
78         content/shell/mac \
79         content/test \
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 \
83         courgette/testdata \
84         data \
85         gpu/command_buffer/tests \
86         media/audio/mac \
87         media/audio/win \
88         media/test \
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 \
105         native_client_sdk \
106         native_client_sdk/src/build_tools/tests \
107         native_client_sdk/src/libraries/c_salt/test \
108         native_client_sdk/src/libraries/win \
109         net/test \
110         o3d/documentation \
111         o3d/samples \
112         o3d/tests \
113         ppapi/native_client/src/trusted/plugin/win \
114         ppapi/native_client/tests \
115         ppapi/tests \
116         printing/test \
117         remoting/host/installer/mac \
118         remoting/host/installer/win \
119         remoting/host/mac \
120         remoting/host/setup/win \
121         remoting/host/win \
122         rlz/mac \
123         rlz/test \
124         rlz/win \
125         sandbox/linux/seccomp-legacy/tests \
126         sandbox/linux/tests \
127         sandbox/tests \
128         sandbox/win/tests \
129         sandbox/win_ \
130         sdch/mac \
131         seccompsandbox/tests \
132         skia/config/win \
133         sync/internal_api/public/test \
134         sync/internal_api/test \
135         sync/test \
136         testing/gmock/scripts/test \
137         testing/gmock/test \
138         testing/gtest/scripts/test \
139         testing/gtest/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 \
330         third_party/vc_80 \
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 \
372         tools/gyp/test \
373         tools/mac \
374         tools/page_cycler/webpagereplay/tests \
375         tools/perf_expectations/tests \
376         tools/site_compare \
377         tools/stats_viewer \
378         tools/symsrc \
379         tools/valgrind \
380         tools/win \
381         ui/app_list/test \
382         ui/aura/test \
383         ui/base/ime/win \
384         ui/base/test \
385         ui/base/win_ \
386         ui/compositor/test \
387         ui/gfx/mac \
388         ui/gfx/test \
389         ui/test \
390         ui/views/test \
391         ui/views/win \
392         v8/test \
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 \
398         ; do
399                 rm -vfr "$dir"
400         done
401 }
402
403 # Strip tarball from some big directories not needed on the linux platform
404 strip_dirs() {
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
407
408         local dir
409         for dir in \
410                 chrome/test/data/safe_browsing/old \
411                 chrome/test/data/firefox2_nss_mac \
412                 chrome/third_party/wtl/ \
413                 gears \
414                 google_update \
415                 gpu/demos \
416                 o3d \
417                 third_party/boost \
418                 third_party/bsdiff \
419                 third_party/bspatch \
420                 third_party/ffmpeg/binaries \
421                 third_party/fuzzymatch \
422                 third_party/gles_book_examples \
423                 third_party/gold \
424                 third_party/hunspell/dictionaries \
425                 third_party/icu/mac \
426                 third_party/lcov \
427                 third_party/lighttpd \
428                 third_party/nspr \
429                 third_party/nss \
430                 third_party/ocmock \
431                 third_party/pthread \
432                 third_party/pyftpdlib \
433                 third_party/simplejson \
434                 third_party/scons \
435                 _third_party/tcmalloc \
436                 tools/symsrc \
437                 tools/site_compare \
438                 tools/stats_viewer \
439                 tools/valgrind \
440                 tools/wine_valgrind \
441                 v8/test/cctest \
442                 webkit/data/layout_tests \
443         ; do
444                 rm -vfr "$dir"
445         done
446 }
447
448 # parts based on ubuntu debian/rules
449 # http://bazaar.launchpad.net/~chromium-team/chromium-browser/chromium-browser.head/view/head:/debian/rules
450
451 remove_bin_only() {
452         find -type f \( \
453                 -iname \*.exe -o \
454                 -iname \*.dll -o \
455                 -iname \*.pdb -o \
456                 -name \*.o -o \
457                 -name \*.a -o \
458                 -name \*.dylib \
459         \) -exec rm -fv {} \;
460 }
461
462 # removes dir, if the bcond is not turned off
463 strip_system_dirs() {
464         local dir lib bcond
465         for dir in "$@"; do
466                 lib=${dir##*/}
467                 bcond=$(eval echo \$$lib)
468                 [ "${bcond:-1}" = 0 ] && continue
469
470                 # skip already removed dirs
471                 test -d $dir || continue
472
473                 find $dir -depth -mindepth 1 \! \( -name '*.gyp' -o -name '*.gypi' -o -path $dir/$lib.h \) -print -delete
474         done
475 }
476
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() {
480         local dir
481         for dir in "$@"; do
482                 find $dir -depth -mindepth 1 \! \( -name '*.gyp' -o -name '*.gypi' \) -print -delete || :
483         done
484 }
485
486 remove_nonessential_dirs | tee -a REMOVED-nonessential_dirs.txt
487 remove_bin_only | tee -a REMOVED-bin_only.txt
488
489 strip_dirs | tee -a REMOVED-stripped.txt
490
491 almost_strip_dirs \
492         chrome/test/data \
493         courgette \
494         third_party/gles2_book \
495         win8 \
496 | tee -a REMOVED-stripped.txt
497
498 # move around to keep third_party/libxml/chromium
499 mv third_party/libxml/chromium libxml-chromium
500
501 strip_system_dirs \
502         native_client/src/third_party_mod/jsoncpp \
503         third_party/bzip2 \
504         third_party/flac \
505         third_party/icu \
506         third_party/jsoncpp \
507         third_party/libevent \
508         third_party/libexif \
509         third_party/libjpeg \
510         third_party/libmtp \
511         third_party/libpng \
512         third_party/libsrtp \
513         third_party/libusb \
514         third_party/libvpx \
515         third_party/libwebp \
516         third_party/libxml \
517         third_party/libxslt \
518         third_party/opus \
519         third_party/speex \
520         third_party/yasm \
521         third_party/zlib \
522         v8 \
523 | tee -a REMOVED-stripped.txt
524
525 install -d third_party/libxml
526 mv libxml-chromium third_party/libxml/chromium
527
528 # clean third party
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
595
596 rm -vf third_party/expat/files/lib/expat.h | tee -a REMOVED-clean.txt
597
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
601         # will be used.
602         rm -rf v8/include
603         ln -s /usr/include v8/include
604 fi
605
606 if [ "${nacl:-1}" != "0" ]; then
607         # NOTE: here is always x86_64
608         rm -rf native_client/toolchain/linux_x86_newlib
609 fi
This page took 0.074067 seconds and 4 git commands to generate.