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. | 37 'mojo', # TODO(kjellander): Remove, see webrtc:5629. |
38 'native_client', | 38 'native_client', |
39 'net', | 39 'net', |
40 'testing', | 40 'testing', |
41 'third_party/binutils', | 41 'third_party/binutils', |
42 'third_party/drmemory', | 42 'third_party/drmemory', |
43 'third_party/instrumented_libraries', | 43 'third_party/instrumented_libraries', |
44 'third_party/libjpeg', | 44 'third_party/libjpeg', |
45 'third_party/libjpeg_turbo', | 45 'third_party/libjpeg_turbo', |
46 'third_party/llvm-build', | 46 'third_party/llvm-build', |
47 'third_party/lss', | 47 'third_party/lss', |
48 'third_party/yasm', | 48 'third_party/yasm', |
| 49 'third_party/WebKit', # TODO(kjellander): Remove, see webrtc:5629. |
49 'tools/clang', | 50 'tools/clang', |
50 'tools/gn', | 51 'tools/gn', |
51 'tools/gyp', | 52 'tools/gyp', |
52 'tools/memory', | 53 'tools/memory', |
53 'tools/python', | 54 'tools/python', |
54 'tools/swarming_client', | 55 'tools/swarming_client', |
55 'tools/valgrind', | 56 'tools/valgrind', |
56 'tools/vim', | 57 'tools/vim', |
57 'tools/win', | 58 'tools/win', |
58 ] | 59 ] |
59 | 60 |
60 from sync_chromium import get_target_os_list | 61 from sync_chromium import get_target_os_list |
61 target_os = get_target_os_list() | 62 target_os = get_target_os_list() |
62 if 'android' in target_os: | 63 if 'android' in target_os: |
63 DIRECTORIES += [ | 64 DIRECTORIES += [ |
64 'base', | 65 'base', |
65 'third_party/android_platform', | 66 'third_party/android_platform', |
66 'third_party/android_testrunner', | |
67 'third_party/android_tools', | 67 'third_party/android_tools', |
68 'third_party/appurify-python', | 68 'third_party/appurify-python', |
69 'third_party/ashmem', | 69 'third_party/ashmem', |
70 'third_party/catapult', | 70 'third_party/catapult', |
| 71 'third_party/icu', |
71 'third_party/ijar', | 72 'third_party/ijar', |
72 'third_party/jsr-305', | 73 'third_party/jsr-305', |
73 'third_party/junit', | 74 'third_party/junit', |
74 'third_party/libevent', | |
75 'third_party/libxml', | 75 'third_party/libxml', |
76 'third_party/mockito', | 76 'third_party/mockito', |
77 'third_party/modp_b64', | 77 'third_party/modp_b64', |
78 'third_party/protobuf', | 78 'third_party/protobuf', |
79 'third_party/requests', | 79 'third_party/requests', |
80 'third_party/robolectric', | 80 'third_party/robolectric', |
81 'tools/android', | 81 'tools/android', |
82 'tools/grit', | 82 'tools/grit', |
83 'tools/relocation_packer', | |
84 'tools/telemetry', | |
85 ] | 83 ] |
86 if 'ios' in target_os: | 84 if 'ios' in target_os: |
87 DIRECTORIES.append('third_party/class-dump') | 85 DIRECTORIES.append('third_party/class-dump') |
88 | 86 |
89 FILES = { | 87 FILES = { |
90 'tools/find_depot_tools.py': None, | |
91 'tools/isolate_driver.py': None, | 88 'tools/isolate_driver.py': None, |
92 'third_party/BUILD.gn': None, | 89 'third_party/BUILD.gn': None, |
93 } | 90 } |
94 | 91 |
95 ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) | 92 ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) |
96 CHROMIUM_CHECKOUT = os.path.join('chromium', 'src') | 93 CHROMIUM_CHECKOUT = os.path.join('chromium', 'src') |
97 LINKS_DB = 'links' | 94 LINKS_DB = 'links' |
98 | 95 |
99 # Version management to make future upgrades/downgrades easier to support. | 96 # Version management to make future upgrades/downgrades easier to support. |
100 SCHEMA_VERSION = 1 | 97 SCHEMA_VERSION = 1 |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 except LinkError as e: | 488 except LinkError as e: |
492 print >> sys.stderr, e.message | 489 print >> sys.stderr, e.message |
493 return 3 | 490 return 3 |
494 finally: | 491 finally: |
495 links_database.close() | 492 links_database.close() |
496 return 0 | 493 return 0 |
497 | 494 |
498 | 495 |
499 if __name__ == '__main__': | 496 if __name__ == '__main__': |
500 sys.exit(main()) | 497 sys.exit(main()) |
OLD | NEW |