| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 # | 5 # |
| 6 """Logic to generate lists of DEPS used by various parts of | 6 """Logic to generate lists of DEPS used by various parts of |
| 7 the android_webview continuous integration (buildbot) infrastructure. | 7 the android_webview continuous integration (buildbot) infrastructure. |
| 8 | 8 |
| 9 Note: The root Chromium project (which is not explicitly listed here) | 9 Note: The root Chromium project (which is not explicitly listed here) |
| 10 has a couple of third_party libraries checked in directly into it. This means | 10 has a couple of third_party libraries checked in directly into it. This means |
| 11 that the list of third parties present in this file is not a comprehensive | 11 that the list of third parties present in this file is not a comprehensive |
| 12 list of third party android_webview dependencies. | 12 list of third party android_webview dependencies. |
| 13 """ | 13 """ |
| 14 | 14 |
| 15 import argparse | 15 import argparse |
| 16 import json | 16 import json |
| 17 import logging | 17 import logging |
| 18 import os | 18 import os |
| 19 import sys | 19 import sys |
| 20 | 20 |
| 21 | 21 |
| 22 class DepsWhitelist(object): | 22 class DepsWhitelist(object): |
| 23 def __init__(self): | 23 def __init__(self): |
| 24 # If a new DEPS entry is needed for the AOSP bot to compile please add it | 24 # If a new DEPS entry is needed for the AOSP bot to compile please add it |
| 25 # here first. | 25 # here first. |
| 26 # This is a staging area for deps that are accepted by the android_webview | 26 # This is a staging area for deps that are accepted by the android_webview |
| 27 # team and are in the process of having the required branches being created | 27 # team and are in the process of having the required branches being created |
| 28 # in the Android tree. | 28 # in the Android tree. |
| 29 self._compile_but_not_snapshot_dependencies = [ | 29 self._compile_but_not_snapshot_dependencies = [ |
| 30 'third_party/brotli/src', | |
| 31 ] | 30 ] |
| 32 | 31 |
| 33 # Dependencies that need to be merged into the Android tree. | 32 # Dependencies that need to be merged into the Android tree. |
| 34 self._snapshot_into_android_dependencies = [ | 33 self._snapshot_into_android_dependencies = [ |
| 35 'sdch/open-vcdiff', | 34 'sdch/open-vcdiff', |
| 36 'testing/gtest', | 35 'testing/gtest', |
| 37 'third_party/WebKit', | 36 'third_party/WebKit', |
| 38 'third_party/angle', | 37 'third_party/angle', |
| 38 'third_party/brotli/src', |
| 39 ('third_party/eyesfree/src/android/java/src/com/googlecode/eyesfree/' | 39 ('third_party/eyesfree/src/android/java/src/com/googlecode/eyesfree/' |
| 40 'braille'), | 40 'braille'), |
| 41 'third_party/freetype', | 41 'third_party/freetype', |
| 42 'third_party/icu', | 42 'third_party/icu', |
| 43 'third_party/leveldatabase/src', | 43 'third_party/leveldatabase/src', |
| 44 'third_party/libjingle/source/talk', | 44 'third_party/libjingle/source/talk', |
| 45 'third_party/libphonenumber/src/phonenumbers', | 45 'third_party/libphonenumber/src/phonenumbers', |
| 46 'third_party/libphonenumber/src/resources', | 46 'third_party/libphonenumber/src/resources', |
| 47 'third_party/libsrtp', |
| 48 'third_party/libvpx', |
| 49 'third_party/libyuv', |
| 47 'third_party/mesa/src', | 50 'third_party/mesa/src', |
| 48 'third_party/openssl', | 51 'third_party/openssl', |
| 49 'third_party/opus/src', | 52 'third_party/opus/src', |
| 50 'third_party/ots', | 53 'third_party/ots', |
| 51 'third_party/sfntly/cpp/src', | 54 'third_party/sfntly/cpp/src', |
| 52 'third_party/skia/gyp', | 55 'third_party/skia/gyp', |
| 53 'third_party/skia/include', | 56 'third_party/skia/include', |
| 54 'third_party/skia/src', | 57 'third_party/skia/src', |
| 55 'third_party/smhasher/src', | 58 'third_party/smhasher/src', |
| 56 'third_party/v8-i18n', | 59 'third_party/webrtc', |
| 57 'third_party/yasm/source/patched-yasm', | 60 'third_party/yasm/source/patched-yasm', |
| 58 'tools/grit', | 61 'tools/grit', |
| 59 'tools/gyp', | 62 'tools/gyp', |
| 60 'v8', | 63 'v8', |
| 61 ] | 64 ] |
| 62 | 65 |
| 63 # Dependencies required to build android_webview. | 66 # Dependencies required to build android_webview. |
| 64 self._compile_dependencies = (self._snapshot_into_android_dependencies + | 67 self._compile_dependencies = (self._snapshot_into_android_dependencies + |
| 65 self._compile_but_not_snapshot_dependencies) | 68 self._compile_but_not_snapshot_dependencies) |
| 66 | 69 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 with open(opts.output_json, 'w') as output_json_file: | 197 with open(opts.output_json, 'w') as output_json_file: |
| 195 json.dump(output_dict, output_json_file) | 198 json.dump(output_dict, output_json_file) |
| 196 else: | 199 else: |
| 197 print blacklist | 200 print blacklist |
| 198 | 201 |
| 199 return 0 | 202 return 0 |
| 200 | 203 |
| 201 | 204 |
| 202 if __name__ == '__main__': | 205 if __name__ == '__main__': |
| 203 sys.exit(main()) | 206 sys.exit(main()) |
| OLD | NEW |