OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
3 # | 3 # |
4 # Use of this source code is governed by a BSD-style license | 4 # Use of this source code is governed by a BSD-style license |
5 # that can be found in the LICENSE file in the root of the source | 5 # that can be found in the LICENSE file in the root of the source |
6 # tree. An additional intellectual property rights grant can be found | 6 # tree. An additional intellectual property rights grant can be found |
7 # in the file PATENTS. All contributing project authors may | 7 # in the file PATENTS. All contributing project authors may |
8 # be found in the AUTHORS file in the root of the source tree. | 8 # be found in the AUTHORS file in the root of the source tree. |
9 | 9 |
10 """Setup links to a Chromium checkout for WebRTC. | 10 """Setup links to a Chromium checkout for WebRTC. |
(...skipping 16 matching lines...) Expand all Loading... |
27 import shelve | 27 import shelve |
28 import shutil | 28 import shutil |
29 import subprocess | 29 import subprocess |
30 import sys | 30 import sys |
31 import textwrap | 31 import textwrap |
32 | 32 |
33 | 33 |
34 DIRECTORIES = [ | 34 DIRECTORIES = [ |
35 'build', | 35 'build', |
36 'buildtools', | 36 'buildtools', |
37 'google_apis', # Needed by build/common.gypi. | |
38 'net', | |
39 'testing', | 37 'testing', |
40 'third_party/binutils', | 38 'third_party/binutils', |
41 'third_party/boringssl', | 39 'third_party/boringssl', |
42 'third_party/colorama', | 40 'third_party/colorama', |
43 'third_party/drmemory', | 41 'third_party/drmemory', |
44 'third_party/expat', | 42 'third_party/expat', |
45 'third_party/icu', | 43 'third_party/icu', |
46 'third_party/instrumented_libraries', | 44 'third_party/instrumented_libraries', |
47 'third_party/jsoncpp', | 45 'third_party/jsoncpp', |
48 'third_party/libjpeg', | 46 'third_party/libjpeg', |
(...skipping 28 matching lines...) Expand all Loading... |
77 'tools/win', | 75 'tools/win', |
78 'tools/xdisplaycheck', | 76 'tools/xdisplaycheck', |
79 ] | 77 ] |
80 | 78 |
81 from sync_chromium import get_target_os_list | 79 from sync_chromium import get_target_os_list |
82 target_os = get_target_os_list() | 80 target_os = get_target_os_list() |
83 if 'android' in target_os: | 81 if 'android' in target_os: |
84 DIRECTORIES += [ | 82 DIRECTORIES += [ |
85 'base', | 83 'base', |
86 'third_party/android_platform', | 84 'third_party/android_platform', |
87 'third_party/android_testrunner', | |
88 'third_party/android_tools', | 85 'third_party/android_tools', |
89 'third_party/appurify-python', | 86 'third_party/appurify-python', |
90 'third_party/ashmem', | 87 'third_party/ashmem', |
91 'third_party/ijar', | 88 'third_party/ijar', |
92 'third_party/jsr-305', | 89 'third_party/jsr-305', |
93 'third_party/junit', | 90 'third_party/junit', |
94 'third_party/libevent', | 91 'third_party/libevent', |
95 'third_party/libxml', | 92 'third_party/libxml', |
96 'third_party/mockito', | 93 'third_party/mockito', |
97 'third_party/modp_b64', | 94 'third_party/modp_b64', |
98 'third_party/requests', | 95 'third_party/requests', |
99 'third_party/robolectric', | 96 'third_party/robolectric', |
100 'tools/android', | 97 'tools/android', |
101 'tools/grit', | 98 'tools/grit', |
102 'tools/relocation_packer' | |
103 ] | 99 ] |
104 if 'ios' in target_os: | 100 if 'ios' in target_os: |
105 DIRECTORIES.append('third_party/class-dump') | 101 DIRECTORIES.append('third_party/class-dump') |
106 | 102 |
107 FILES = { | 103 FILES = { |
108 'chrome/VERSION': None, # TODO(kjellander): Get rid of this; webrtc:5160. | 104 'chrome/VERSION': None, # TODO(kjellander): Get rid of this; webrtc:5160. |
109 'tools/find_depot_tools.py': None, | 105 'tools/find_depot_tools.py': None, |
110 'tools/isolate_driver.py': None, | 106 'tools/isolate_driver.py': None, |
111 'third_party/BUILD.gn': None, | 107 'third_party/BUILD.gn': None, |
112 } | 108 } |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 except LinkError as e: | 506 except LinkError as e: |
511 print >> sys.stderr, e.message | 507 print >> sys.stderr, e.message |
512 return 3 | 508 return 3 |
513 finally: | 509 finally: |
514 links_database.close() | 510 links_database.close() |
515 return 0 | 511 return 0 |
516 | 512 |
517 | 513 |
518 if __name__ == '__main__': | 514 if __name__ == '__main__': |
519 sys.exit(main()) | 515 sys.exit(main()) |
OLD | NEW |