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 11 matching lines...) Expand all Loading... |
22 import optparse | 22 import optparse |
23 import os | 23 import os |
24 import shelve | 24 import shelve |
25 import shutil | 25 import shutil |
26 import subprocess | 26 import subprocess |
27 import sys | 27 import sys |
28 import textwrap | 28 import textwrap |
29 | 29 |
30 | 30 |
31 DIRECTORIES = [ | 31 DIRECTORIES = [ |
| 32 'base', |
32 'build', | 33 'build', |
33 'buildtools', | 34 'buildtools', |
34 'testing', | 35 'testing', |
35 'third_party/afl', | 36 'third_party/afl', |
36 'third_party/binutils', | 37 'third_party/binutils', |
37 'third_party/boringssl', | 38 'third_party/boringssl', |
38 'third_party/catapult', | 39 'third_party/catapult', |
39 'third_party/closure_compiler', | 40 'third_party/closure_compiler', |
40 'third_party/colorama', | 41 'third_party/colorama', |
41 'third_party/expat', | 42 'third_party/expat', |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 'tools/swarming_client', | 76 'tools/swarming_client', |
76 'tools/valgrind', | 77 'tools/valgrind', |
77 'tools/vim', | 78 'tools/vim', |
78 'tools/win', | 79 'tools/win', |
79 ] | 80 ] |
80 | 81 |
81 from sync_chromium import get_target_os_list | 82 from sync_chromium import get_target_os_list |
82 target_os = get_target_os_list() | 83 target_os = get_target_os_list() |
83 if 'android' in target_os: | 84 if 'android' in target_os: |
84 DIRECTORIES += [ | 85 DIRECTORIES += [ |
85 'base', | |
86 'third_party/accessibility_test_framework', | 86 'third_party/accessibility_test_framework', |
87 'third_party/android_platform', | 87 'third_party/android_platform', |
88 'third_party/android_support_test_runner', | 88 'third_party/android_support_test_runner', |
89 'third_party/android_tools', | 89 'third_party/android_tools', |
90 'third_party/apache_velocity', | 90 'third_party/apache_velocity', |
91 'third_party/appurify-python', | 91 'third_party/appurify-python', |
92 'third_party/ashmem', | 92 'third_party/ashmem', |
93 'third_party/bouncycastle', | 93 'third_party/bouncycastle', |
94 'third_party/byte_buddy', | 94 'third_party/byte_buddy', |
95 'third_party/ced', | 95 'third_party/ced', |
(...skipping 10 matching lines...) Expand all Loading... |
106 'third_party/libxml', | 106 'third_party/libxml', |
107 'third_party/mockito', | 107 'third_party/mockito', |
108 'third_party/modp_b64', | 108 'third_party/modp_b64', |
109 'third_party/objenesis', | 109 'third_party/objenesis', |
110 'third_party/ow2_asm', | 110 'third_party/ow2_asm', |
111 'third_party/requests', | 111 'third_party/requests', |
112 'third_party/robolectric', | 112 'third_party/robolectric', |
113 'third_party/sqlite4java', | 113 'third_party/sqlite4java', |
114 'third_party/tcmalloc', | 114 'third_party/tcmalloc', |
115 'tools/android', | 115 'tools/android', |
116 'tools/telemetry', | |
117 ] | |
118 else: | |
119 DIRECTORIES += [ | |
120 'base/third_party/libevent', | |
121 ] | 116 ] |
122 | 117 |
123 if 'ios' in target_os: | |
124 DIRECTORIES.append('third_party/class-dump') | |
125 | |
126 FILES = { | 118 FILES = { |
127 'tools/isolate_driver.py': None, | |
128 'third_party/BUILD.gn': None, | 119 'third_party/BUILD.gn': None, |
129 } | 120 } |
130 | 121 |
131 ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) | 122 ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) |
132 CHROMIUM_CHECKOUT = os.path.join('chromium', 'src') | 123 CHROMIUM_CHECKOUT = os.path.join('chromium', 'src') |
133 LINKS_DB = 'links' | 124 LINKS_DB = 'links' |
134 | 125 |
135 # Version management to make future upgrades/downgrades easier to support. | 126 # Version management to make future upgrades/downgrades easier to support. |
136 SCHEMA_VERSION = 1 | 127 SCHEMA_VERSION = 1 |
137 | 128 |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 except LinkError as e: | 510 except LinkError as e: |
520 print >> sys.stderr, e.message | 511 print >> sys.stderr, e.message |
521 return 3 | 512 return 3 |
522 finally: | 513 finally: |
523 links_database.close() | 514 links_database.close() |
524 return 0 | 515 return 0 |
525 | 516 |
526 | 517 |
527 if __name__ == '__main__': | 518 if __name__ == '__main__': |
528 sys.exit(main()) | 519 sys.exit(main()) |
OLD | NEW |