]> git.pld-linux.org Git - packages/chromium-browser.git/blob - clean-source.sh
more wrong platform files removal. cleanups
[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         chrome/common/extensions/docs \
18         breakpad/src/common/android/testing \
19         chrome/tools/test/reference_build \
20         courgette/testdata \
21         data \
22         native_client/src/trusted/service_runtime/testdata \
23         native_client/src/trusted/validator/x86/testing \
24         native_client_sdk \
25         o3d/documentation \
26         o3d/samples \
27         o3d/tests \
28         third_party/WebKit/LayoutTests \
29         third_party/WebKit/Source/JavaScriptCore/tests \
30         third_party/WebKit/Source/WebCore/testing_ \
31         third_party/angle/samples/gles2_book \
32         third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/testing \
33         third_party/hunspell/tests \
34         third_party/hunspell_dictionaries \
35         third_party/lighttpd \
36         third_party/protobuf/src/google/protobuf/testing \
37         third_party/re2/re2/testing \
38         third_party/safe_browsing/testing \
39         third_party/sqlite/test \
40         third_party/vc_80 \
41         third_party/xdg-utils/tests \
42         third_party/yasm/source/patched-yasm/modules/arch/x86/tests \
43         third_party/yasm/source/patched-yasm/modules/dbgfmts/dwarf2/tests \
44         third_party/yasm/source/patched-yasm/modules/objfmts/bin/tests \
45         third_party/yasm/source/patched-yasm/modules/objfmts/coff/tests \
46         third_party/yasm/source/patched-yasm/modules/objfmts/elf/tests \
47         third_party/yasm/source/patched-yasm/modules/objfmts/macho/tests \
48         third_party/yasm/source/patched-yasm/modules/objfmts/rdf/tests \
49         third_party/yasm/source/patched-yasm/modules/objfmts/win32/tests \
50         third_party/yasm/source/patched-yasm/modules/objfmts/win64/tests \
51         third_party/yasm/source/patched-yasm/modules/objfmts/xdf/tests \
52         \
53         breakpad/src/client/mac/tests \
54         breakpad/src/client/windows/tests \
55         breakpad/src/common/linux/tests \
56         breakpad/src/common/tests \
57         chrome/browser/resources/tracing/tests \
58         chrome/browser/ui/tests \
59         content/test/data/layout_tests/LayoutTests/http/tests \
60         content/test/data/layout_tests/LayoutTests/http/tests/websocket/tests \
61         content/test/data/layout_tests/LayoutTests/platform/chromium-win/http/tests \
62         gpu/command_buffer/tests \
63         native_client/tests \
64         native_client/tools/tests \
65         native_client_sdk/src/build_tools/tests \
66         ppapi/native_client/tests \
67         ppapi/tests \
68         sandbox/tests \
69         seccompsandbox/tests \
70         third_party/WebKit/Source/JavaScriptCore/API/tests \
71         third_party/WebKit/Source/JavaScriptCore/qt/tests \
72         third_party/WebKit/Source/WebKit/chromium/tests \
73         third_party/WebKit/Source/WebKit/gtk/tests \
74         third_party/WebKit/Source/WebKit/qt/tests \
75         third_party/WebKit/Source/WebKit2/UIProcess/API/gtk/tests \
76         third_party/WebKit/Source/WebKit2/UIProcess/API/qt/tests \
77         third_party/angle/tests \
78         third_party/ffmpeg/tests \
79         third_party/harfbuzz/tests \
80         third_party/hyphen/tests \
81         third_party/mesa/MesaLib/src/gallium/tests \
82         third_party/mesa/MesaLib/src/gallium/tests/python/tests \
83         third_party/tcmalloc/chromium/src/tests \
84         third_party/tcmalloc/vendor/src/tests \
85         third_party/yasm/source/patched-yasm/libyasm/tests \
86         third_party/yasm/source/patched-yasm/modules/arch/lc3b/tests \
87         third_party/yasm/source/patched-yasm/modules/dbgfmts/stabs/tests \
88         third_party/yasm/source/patched-yasm/modules/parsers/gas/tests \
89         third_party/yasm/source/patched-yasm/modules/parsers/nasm/tests \
90         third_party/yasm/source/patched-yasm/modules/parsers/tasm/tests \
91         third_party/yasm/source/patched-yasm/modules/preprocs/nasm/tests \
92         third_party/yasm/source/patched-yasm/modules/preprocs/raw/tests \
93         third_party/yasm/source/patched-yasm/tools/python-yasm/tests \
94         tools/clang/plugins/tests \
95         tools/page_cycler/webpagereplay/tests \
96         tools/perf_expectations/tests \
97         \
98         v8/test \
99         webkit/data/layout_tests \
100         webkit/tools/test/reference_build \
101         \
102         tools/site_compare \
103         tools/stats_viewer \
104         tools/symsrc \
105         tools/valgrind \
106         tools/gyp/test \
107         \
108         ash/test \
109         base/android/javatests/src/org/chromium/base/test \
110         base/test \
111         chrome/browser/chromeos/bluetooth/test \
112         chrome/browser/component_updater/test \
113         chrome/browser/printing/cloud_print/test \
114         chrome/browser/resources/gaia_auth/test \
115         chrome/browser/sync/test \
116         chrome/installer/test \
117         chrome/test/webdriver/test \
118         chrome/tools/test \
119         chrome_frame/test \
120         chrome_frame/tools/test \
121         chrome_frame \
122         content/browser/worker_host/test \
123         content/public/test \
124         content/test \
125         media/test \
126         media/tools/layout_tests/test_data \
127         native_client_sdk/src/libraries/c_salt/test \
128         net/test \
129         printing/test \
130         rlz/test \
131         sandbox/linux/seccomp-legacy/tests \
132         sandbox/linux/tests \
133         sandbox/win/tests \
134         sync/internal_api/public/test \
135         sync/internal_api/test \
136         sync/test \
137         testing/gmock/scripts/test \
138         testing/gmock/test \
139         testing/gtest/scripts/test \
140         testing/gtest/test \
141         third_party/WebKit/Source/ThirdParty/gtest/scripts/test \
142         third_party/WebKit/Source/ThirdParty/gtest/test \
143         third_party/WebKit/Source/ThirdParty/gyp/test \
144         third_party/WebKit/Source/ThirdParty/qunit/test \
145         third_party/WebKit/Source/WebCore/bindings/scripts/test \
146         third_party/WebKit/Source/WebKit/efl/tests \
147         third_party/WebKit/Source/WebKit2/UIProcess/API/efl/tests \
148         third_party/WebKit/Tools/Scripts/webkitpy/test \
149         third_party/cacheinvalidation/files/src/google/cacheinvalidation/test \
150         third_party/libexif/sources/test \
151         third_party/libjingle/source/talk/app/webrtc/test \
152         third_party/libphonenumber/src/resources/test \
153         third_party/libphonenumber/src/test \
154         third_party/libsrtp/srtp/crypto/test \
155         third_party/libsrtp/srtp/test \
156         third_party/openssl/openssl/crypto/des/t/test \
157         third_party/openssl/openssl/test \
158         third_party/ots/test \
159         third_party/sfntly/cpp/src/test \
160         third_party/sqlite/src/test \
161         third_party/talloc/libreplace/test \
162         third_party/tlslite/test \
163         third_party/trace-viewer/test_data \
164         third_party/v8-i18n/tests \
165         third_party/webdriver/pylib/test \
166         third_party/webdriver/test_data \
167         ui/app_list/test \
168         ui/aura/test \
169         ui/base/test \
170         ui/compositor/test \
171         ui/gfx/test \
172         ui/test \
173         ui/views/test \
174         webkit/plugins/npapi/test \
175         \
176         base/android \
177         base/mac_ \
178         base/win_ \
179         breakpad/src/client/mac \
180         breakpad/src/common/mac \
181         breakpad/src/tools/mac \
182         build/mac \
183         build/win \
184         chrome/android \
185         chrome/app/android \
186         chrome/app/theme/default_100_percent/mac \
187         chrome/app/theme/default_100_percent/win \
188         chrome/app/theme/default_200_percent/mac \
189         chrome/app/theme/default_200_percent/win \
190         chrome/app/theme/touch_100_percent/win \
191         chrome/app/theme/touch_140_percent/win \
192         chrome/app/theme/touch_180_percent/win \
193         chrome/browser/android \
194         chrome/browser/history/android \
195         chrome/browser/mac \
196         chrome/common/mac \
197         chrome/installer/mac \
198         chrome/installer/mac/third_party/xz/config/mac \
199         chrome/test/logging/win \
200         chrome/tools/build/mac \
201         chrome/tools/build/win \
202         cloud_print/service/win \
203         cloud_print/virtual_driver/win \
204         content/app/android \
205         content/browser/android \
206         content/common/android \
207         content/common/mac_ \
208         content/public/android \
209         content/public/browser/android \
210         content/renderer/android \
211         content/shell/android \
212         content/shell/mac \
213         media/audio/mac \
214         media/audio/win \
215         media/video/capture/mac \
216         media/video/capture/win \
217         native_client/build/mac \
218         native_client/src/include/win_ \
219         native_client/src/shared/imc/win \
220         native_client/src/shared/platform/win \
221         native_client/src/trusted/debug_stub/win \
222         native_client/src/trusted/desc/win \
223         native_client/src/trusted/nonnacl_util/win \
224         native_client/src/trusted/platform_qualify/win \
225         native_client/src/trusted/service_runtime/win_ \
226         native_client_sdk/src/libraries/win \
227         ppapi/native_client/src/trusted/plugin/win \
228         remoting/host/installer/mac \
229         remoting/host/installer/win \
230         remoting/host/mac \
231         remoting/host/setup/win \
232         remoting/host/win \
233         rlz/mac \
234         rlz/win \
235         sandbox/win_ \
236         sdch/mac \
237         skia/config/win \
238         third_party/WebKit/Source/Platform/chromium/public/android \
239         third_party/WebKit/Source/Platform/chromium/public/mac \
240         third_party/WebKit/Source/Platform/chromium/public/win \
241         third_party/WebKit/Source/WTF/wtf/mac \
242         third_party/WebKit/Source/WTF/wtf/threads/win \
243         third_party/WebKit/Source/WTF/wtf/win \
244         third_party/WebKit/Source/WebCore/WebCore.gyp/mac \
245         third_party/WebKit/Source/WebCore/accessibility/mac \
246         third_party/WebKit/Source/WebCore/accessibility/win \
247         third_party/WebKit/Source/WebCore/editing/android \
248         third_party/WebKit/Source/WebCore/editing/mac \
249         third_party/WebKit/Source/WebCore/history/android \
250         third_party/WebKit/Source/WebCore/history/mac \
251         third_party/WebKit/Source/WebCore/loader/mac \
252         third_party/WebKit/Source/WebCore/loader/win \
253         third_party/WebKit/Source/WebCore/page/android \
254         third_party/WebKit/Source/WebCore/page/mac \
255         third_party/WebKit/Source/WebCore/page/scrolling/mac \
256         third_party/WebKit/Source/WebCore/page/win \
257         third_party/WebKit/Source/WebCore/platform/android \
258         third_party/WebKit/Source/WebCore/platform/audio/mac \
259         third_party/WebKit/Source/WebCore/platform/cf/win \
260         third_party/WebKit/Source/WebCore/platform/graphics/ca/mac \
261         third_party/WebKit/Source/WebCore/platform/graphics/ca/win \
262         third_party/WebKit/Source/WebCore/platform/graphics/gpu/mac \
263         third_party/WebKit/Source/WebCore/platform/graphics/mac \
264         third_party/WebKit/Source/WebCore/platform/graphics/surfaces/mac \
265         third_party/WebKit/Source/WebCore/platform/graphics/surfaces/win \
266         third_party/WebKit/Source/WebCore/platform/graphics/win \
267         third_party/WebKit/Source/WebCore/platform/mac \
268         third_party/WebKit/Source/WebCore/platform/network/android \
269         third_party/WebKit/Source/WebCore/platform/network/mac \
270         third_party/WebKit/Source/WebCore/platform/network/win \
271         third_party/WebKit/Source/WebCore/platform/text/android \
272         third_party/WebKit/Source/WebCore/platform/text/mac \
273         third_party/WebKit/Source/WebCore/platform/text/win \
274         third_party/WebKit/Source/WebCore/platform/win \
275         third_party/WebKit/Source/WebCore/platform/wx/wxcode/mac \
276         third_party/WebKit/Source/WebCore/platform/wx/wxcode/win \
277         third_party/WebKit/Source/WebCore/plugins/mac \
278         third_party/WebKit/Source/WebCore/plugins/win \
279         third_party/WebKit/Source/WebKit/chromium/public/android \
280         third_party/WebKit/Source/WebKit/chromium/public/mac_ \
281         third_party/WebKit/Source/WebKit/chromium/public/platform/android \
282         third_party/WebKit/Source/WebKit/chromium/public/platform/mac \
283         third_party/WebKit/Source/WebKit/chromium/public/platform/win \
284         third_party/WebKit/Source/WebKit/chromium/public/win \
285         third_party/WebKit/Source/WebKit/chromium/src/android \
286         third_party/WebKit/Source/WebKit/chromium/src/mac \
287         third_party/WebKit/Source/WebKit/chromium/src/win \
288         third_party/WebKit/Source/WebKit/mac \
289         third_party/WebKit/Source/WebKit/win \
290         third_party/WebKit/Source/WebKit2/Platform/CoreIPC/mac \
291         third_party/WebKit/Source/WebKit2/Platform/CoreIPC/win \
292         third_party/WebKit/Source/WebKit2/Platform/mac \
293         third_party/WebKit/Source/WebKit2/Platform/win \
294         third_party/WebKit/Source/WebKit2/PluginProcess/mac \
295         third_party/WebKit/Source/WebKit2/Shared/API/c/mac \
296         third_party/WebKit/Source/WebKit2/Shared/API/c/win \
297         third_party/WebKit/Source/WebKit2/Shared/Plugins/Netscape/mac \
298         third_party/WebKit/Source/WebKit2/Shared/Plugins/Netscape/win \
299         third_party/WebKit/Source/WebKit2/Shared/Plugins/mac \
300         third_party/WebKit/Source/WebKit2/Shared/cg/win \
301         third_party/WebKit/Source/WebKit2/Shared/mac \
302         third_party/WebKit/Source/WebKit2/Shared/win \
303         third_party/WebKit/Source/WebKit2/UIProcess/API/C/mac \
304         third_party/WebKit/Source/WebKit2/UIProcess/API/C/win \
305         third_party/WebKit/Source/WebKit2/UIProcess/API/mac \
306         third_party/WebKit/Source/WebKit2/UIProcess/Launcher/mac \
307         third_party/WebKit/Source/WebKit2/UIProcess/Launcher/win \
308         third_party/WebKit/Source/WebKit2/UIProcess/Plugins/mac \
309         third_party/WebKit/Source/WebKit2/UIProcess/Plugins/win \
310         third_party/WebKit/Source/WebKit2/UIProcess/mac \
311         third_party/WebKit/Source/WebKit2/UIProcess/win \
312         third_party/WebKit/Source/WebKit2/WebProcess/Authentication/mac \
313         third_party/WebKit/Source/WebKit2/WebProcess/Cookies/mac \
314         third_party/WebKit/Source/WebKit2/WebProcess/Downloads/cf/win \
315         third_party/WebKit/Source/WebKit2/WebProcess/Downloads/mac \
316         third_party/WebKit/Source/WebKit2/WebProcess/FullScreen/mac \
317         third_party/WebKit/Source/WebKit2/WebProcess/FullScreen/win \
318         third_party/WebKit/Source/WebKit2/WebProcess/InjectedBundle/API/c/win \
319         third_party/WebKit/Source/WebKit2/WebProcess/InjectedBundle/mac \
320         third_party/WebKit/Source/WebKit2/WebProcess/InjectedBundle/win \
321         third_party/WebKit/Source/WebKit2/WebProcess/Plugins/Netscape/mac \
322         third_party/WebKit/Source/WebKit2/WebProcess/Plugins/Netscape/win \
323         third_party/WebKit/Source/WebKit2/WebProcess/WebCoreSupport/mac \
324         third_party/WebKit/Source/WebKit2/WebProcess/WebCoreSupport/win \
325         third_party/WebKit/Source/WebKit2/WebProcess/WebPage/ca/mac \
326         third_party/WebKit/Source/WebKit2/WebProcess/WebPage/ca/win \
327         third_party/WebKit/Source/WebKit2/WebProcess/WebPage/mac \
328         third_party/WebKit/Source/WebKit2/WebProcess/WebPage/win \
329         third_party/WebKit/Source/WebKit2/WebProcess/mac \
330         third_party/WebKit/Source/WebKit2/WebProcess/win \
331         third_party/WebKit/Source/WebKit2/mac \
332         third_party/WebKit/Source/WebKit2/win \
333         third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/mac \
334         third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/win \
335         third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/mac \
336         third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/win \
337         third_party/WebKit/Tools/DumpRenderTree/mac \
338         third_party/WebKit/Tools/DumpRenderTree/win \
339         third_party/WebKit/Tools/TestWebKitAPI/Tests/TestWebKitAPI/mac \
340         third_party/WebKit/Tools/TestWebKitAPI/Tests/WebKit/win \
341         third_party/WebKit/Tools/TestWebKitAPI/Tests/WebKit2/mac \
342         third_party/WebKit/Tools/TestWebKitAPI/Tests/WebKit2/win \
343         third_party/WebKit/Tools/TestWebKitAPI/Tests/mac \
344         third_party/WebKit/Tools/TestWebKitAPI/mac \
345         third_party/WebKit/Tools/TestWebKitAPI/win \
346         third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/external/client/android \
347         third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/testing/android \
348         third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/ticl/android \
349         third_party/cld/encodings/compact_lang_det/win_ \
350         third_party/ffmpeg/chromium/binaries/Chromium/win \
351         third_party/ffmpeg/chromium/config/Chrome/mac \
352         third_party/ffmpeg/chromium/config/Chrome/win \
353         third_party/ffmpeg/chromium/config/Chromium/mac \
354         third_party/ffmpeg/chromium/config/Chromium/win \
355         third_party/ffmpeg/chromium/include/win \
356         third_party/icu/android \
357         third_party/leveldatabase/src/port/win \
358         third_party/libjpeg_turbo/mac \
359         third_party/libjpeg_turbo/win \
360         third_party/libva/va/android \
361         third_party/libvpx/source/config/mac \
362         third_party/libvpx/source/config/win \
363         third_party/libxml/mac \
364         third_party/openssl/config/android \
365         third_party/skia/include/utils/android \
366         third_party/skia/include/utils/mac \
367         third_party/skia/include/utils/win \
368         third_party/skia/include/views/android \
369         third_party/skia/src/gpu/gl/android \
370         third_party/skia/src/gpu/gl/mac \
371         third_party/skia/src/gpu/gl/win \
372         third_party/skia/src/utils/mac \
373         third_party/skia/src/utils/win \
374         third_party/skia/src/views/mac \
375         third_party/skia/src/views/win \
376         third_party/snappy/mac \
377         third_party/webrtc/modules/audio_device/android \
378         third_party/webrtc/modules/audio_device/main/source/mac \
379         third_party/webrtc/modules/audio_device/main/source/win \
380         third_party/webrtc/modules/audio_device/test/android \
381         third_party/webrtc/modules/audio_device/win \
382         third_party/webrtc/modules/audio_processing/test/android \
383         third_party/webrtc/modules/video_capture/main/source/android \
384         third_party/webrtc/modules/video_capture/main/test/android \
385         third_party/webrtc/modules/video_render/main/source/android \
386         third_party/webrtc/modules/video_render/main/source/mac \
387         third_party/webrtc/system_wrappers/source/android \
388         third_party/webrtc/test/testsupport/mac \
389         third_party/webrtc/video_engine/test/android \
390         third_party/webrtc/video_engine/test/auto_test/android \
391         third_party/webrtc/voice_engine/test/android \
392         third_party/yasm/source/config/android \
393         third_party/yasm/source/config/mac \
394         third_party/yasm/source/config/win \
395         tools/mac \
396         tools/win \
397         ui/base/ime/win \
398         ui/base/win_ \
399         ui/gfx/mac \
400         ui/views/win \
401         webkit/media/android \
402         webkit/tools/test_shell/mac \
403         ; do
404                 rm -vfr "$dir"
405         done
406 }
407
408 # Strip tarball from some big directories not needed on the linux platform
409 strip_dirs() {
410         # prefix with _ those that we can't remove (just yet) because of the gclient
411         # hooks (see build/all.gyp) or of some unneeded deps/includes
412
413         local dir
414         for dir in \
415                 chrome/test/data/safe_browsing/old \
416                 chrome/test/data/firefox2_nss_mac \
417                 chrome/third_party/wtl/ \
418                 gears \
419                 google_update \
420                 gpu/demos \
421                 o3d \
422                 third_party/boost \
423                 third_party/bsdiff \
424                 third_party/bspatch \
425                 third_party/ffmpeg/binaries \
426                 third_party/fuzzymatch \
427                 third_party/gles_book_examples \
428                 third_party/gold \
429                 third_party/hunspell/dictionaries \
430                 third_party/icu/mac \
431                 third_party/lcov \
432                 third_party/lighttpd \
433                 third_party/nspr \
434                 third_party/nss \
435                 third_party/ocmock \
436                 third_party/pthread \
437                 third_party/pyftpdlib \
438                 third_party/simplejson \
439                 third_party/scons \
440                 _third_party/tcmalloc \
441                 tools/symsrc \
442                 tools/site_compare \
443                 tools/stats_viewer \
444                 tools/valgrind \
445                 tools/wine_valgrind \
446                 v8/test/cctest \
447                 webkit/data/layout_tests \
448         ; do
449                 rm -vfr "$dir"
450         done
451 }
452
453 # parts based on ubuntu debian/rules
454 # http://bazaar.launchpad.net/~chromium-team/chromium-browser/chromium-browser.head/view/head:/debian/rules
455
456 remove_bin_only() {
457         find -type f \( \
458                 -iname \*.exe -o \
459                 -iname \*.dll -o \
460                 -iname \*.pdb -o \
461                 -name \*.o -o \
462                 -name \*.a -o \
463                 -name \*.dylib \
464         \) -exec rm -fv {} \;
465 }
466
467 # removes dir, if the bcond is not turned off
468 strip_system_dirs() {
469         local dir lib bcond
470         for dir in "$@"; do
471                 lib=${dir##*/}
472                 bcond=$(eval echo \$$lib)
473                 [ "${bcond:-1}" = 0 ] && continue
474
475                 # skip already removed dirs
476                 test -d $dir || continue
477
478                 find $dir -depth -mindepth 1 \! \( -name '*.gyp' -o -name '*.gypi' -o -path $dir/$lib.h \) -print -delete
479         done
480 }
481
482 # There are directories we want to strip, but that are unnecessarily required by the build-system
483 # So we drop everything but the gyp/gypi files
484 almost_strip_dirs() {
485         local dir
486         for dir in "$@"; do
487                 find $dir -depth -mindepth 1 \! \( -name '*.gyp' -o -name '*.gypi' \) -print -delete || :
488         done
489 }
490
491 remove_nonessential_dirs | tee -a REMOVED-nonessential_dirs.txt
492 remove_bin_only | tee -a REMOVED-bin_only.txt
493
494 strip_dirs | tee -a REMOVED-stripped.txt
495
496 almost_strip_dirs \
497         chrome/test/data \
498         courgette \
499         third_party/gles2_book \
500         win8 \
501 | tee -a REMOVED-stripped.txt
502
503 # move around to keep third_party/libxml/chromium
504 mv third_party/libxml/chromium libxml-chromium
505
506 strip_system_dirs \
507         native_client/src/third_party_mod/jsoncpp \
508         third_party/bzip2 \
509         third_party/flac \
510         third_party/icu \
511         third_party/jsoncpp \
512         third_party/libevent \
513         third_party/libexif \
514         third_party/libjpeg \
515         third_party/libmtp \
516         third_party/libpng \
517         third_party/libsrtp \
518         third_party/libusb \
519         third_party/libvpx \
520         third_party/libwebp \
521         third_party/libxml \
522         third_party/libxslt \
523         third_party/opus \
524         third_party/speex \
525         third_party/yasm \
526         third_party/zlib \
527         v8 \
528 | tee -a REMOVED-stripped.txt
529
530 install -d third_party/libxml
531 mv libxml-chromium third_party/libxml/chromium
532
533 # clean third party
534 # list based from archlinux PKGBUILD
535 # https://aur.archlinux.org/packages/ch/chromium-dev/PKGBUILD
536 find third_party -type f \! -iname '*.gyp*' \
537         \! -path 'third_party/angle/*' \
538         \! -path 'third_party/cacheinvalidation/*' \
539         \! -path 'third_party/cld/*' \
540         \! -path 'third_party/cros_system_api/*'  \
541         \! -path 'third_party/ffmpeg/*' \
542         \! -path 'third_party/flac/flac.h' \
543         \! -path 'third_party/flot/*' \
544         \! -path 'third_party/gpsd/*' \
545         \! -path 'third_party/harfbuzz/*' \
546         \! -path 'third_party/harfbuzz-ng/*' \
547         \! -path 'third_party/hunspell/*' \
548         \! -path 'third_party/hyphen/*' \
549         \! -path 'third_party/iccjpeg/*' \
550         \! -path 'third_party/jsoncpp/*' \
551         \! -path 'third_party/khronos/*' \
552         \! -path 'third_party/leveldatabase/*' \
553         \! -path 'third_party/libjingle/*' \
554         \! -path 'third_party/libphonenumber/*' \
555         \! -path 'third_party/libpng/*' \
556         \! -path 'third_party/libsrtp/*' \
557         \! -path 'third_party/libusb/libusb.h' \
558         \! -path 'third_party/libva/*' \
559         \! -path 'third_party/libvpx/libvpx.h' \
560         \! -path 'third_party/libxml/chromium/*' \
561         \! -path 'third_party/libXNVCtrl/*' \
562         \! -path 'third_party/libyuv/*' \
563         \! -path 'third_party/llvm-build/*' \
564         \! -path 'third_party/lss/*' \
565         \! -path 'third_party/mesa/*' \
566         \! -path 'third_party/modp_b64/*' \
567         \! -path 'third_party/mongoose/*' \
568         \! -path 'third_party/mt19937ar/*' \
569         \! -path 'third_party/npapi/*' \
570         \! -path 'third_party/openmax/*' \
571         \! -path 'third_party/opus/*' \
572         \! -path 'third_party/ots/*' \
573         \! -path 'third_party/ply/*' \
574         \! -path 'third_party/protobuf/*' \
575         \! -path 'third_party/pywebsocket/*' \
576         \! -path 'third_party/qcms/*' \
577         \! -path 'third_party/re2/*' \
578         \! -path 'third_party/scons-2.0.1/*' \
579         \! -path 'third_party/sfntly/*' \
580         \! -path 'third_party/skia/*' \
581         \! -path 'third_party/smhasher/*' \
582         \! -path 'third_party/speex/speex.h' \
583         \! -path 'third_party/sqlite/*' \
584         \! -path 'third_party/tcmalloc/*' \
585         \! -path 'third_party/tlslite/*' \
586         \! -path 'third_party/trace-viewer/*' \
587         \! -path 'third_party/undoview/*' \
588         \! -path 'third_party/usb_ids/*' \
589         \! -path 'third_party/v8-i18n/*' \
590         \! -path 'third_party/v8/*' \
591         \! -path 'third_party/webdriver/*' \
592         \! -path 'third_party/webgl_conformance/*' \
593         \! -path 'third_party/WebKit/*' \
594         \! -path 'third_party/webrtc/*' \
595         \! -path 'third_party/widevine/*' \
596         \! -path 'third_party/adobe/flash/*' \
597         \! -path 'third_party/zlib/*' \
598         \! -path 'third_party/libvpx/*' \
599         -print -delete | tee -a REMOVED-clean.txt
600
601 rm -vf third_party/expat/files/lib/expat.h | tee -a REMOVED-clean.txt
602
603 if [ "${v8:-1}" != "0" ]; then
604         # The implementation files include v8 headers with full path,
605         # like #include "v8/include/v8.h". Make sure the system headers
606         # will be used.
607         rm -rf v8/include
608         ln -s /usr/include v8/include
609 fi
610
611 if [ "${nacl:-1}" != "0" ]; then
612         # NOTE: here is always x86_64
613         rm -rf native_client/toolchain/linux_x86_newlib
614 fi
This page took 0.086234 seconds and 4 git commands to generate.