| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Configures devil for use in chromium.""" | 5 """Configures devil for use in chromium.""" |
| 6 | 6 |
| 7 import os | 7 import os |
| 8 | 8 |
| 9 from devil import devil_env | 9 from devil import devil_env |
| 10 | 10 |
| 11 | 11 |
| 12 _DEVIL_CONFIG = os.path.abspath( | 12 _DEVIL_CONFIG = os.path.abspath( |
| 13 os.path.join(os.path.dirname(__file__), 'devil_chromium.json')) | 13 os.path.join(os.path.dirname(__file__), 'devil_chromium.json')) |
| 14 | 14 |
| 15 _DEVIL_BUILD_PRODUCT_DEPS = { | 15 _DEVIL_BUILD_PRODUCT_DEPS = { |
| 16 'forwarder_device': { | 16 'forwarder_device': { |
| 17 'armeabi-v7a': 'forwarder_dist', | 17 'armeabi-v7a': 'forwarder_dist', |
| 18 'arm64-v8a': 'forwarder_dist', | 18 'arm64-v8a': 'forwarder_dist', |
| 19 'x86': 'forwarder_dist', | 19 'x86': 'forwarder_dist', |
| 20 'mips': 'forwarder_dist', |
| 21 'mips64': 'forwarder_dist', |
| 20 }, | 22 }, |
| 21 'forwarder_host': { | 23 'forwarder_host': { |
| 22 'any': 'host_forwarder', | 24 'any': 'host_forwarder', |
| 23 }, | 25 }, |
| 24 'md5sum_device': { | 26 'md5sum_device': { |
| 25 'armeabi-v7a': 'md5sum_dist', | 27 'armeabi-v7a': 'md5sum_dist', |
| 26 'arm64-v8a': 'md5sum_dist', | 28 'arm64-v8a': 'md5sum_dist', |
| 27 'x86': 'md5sum_dist', | 29 'x86': 'md5sum_dist', |
| 30 'mips': 'md5sum_dist', |
| 31 'mips64': 'md5sum_dist', |
| 28 }, | 32 }, |
| 29 'md5sum_host': { | 33 'md5sum_host': { |
| 30 'any': 'md5sum_bin_host', | 34 'any': 'md5sum_bin_host', |
| 31 }, | 35 }, |
| 32 } | 36 } |
| 33 | 37 |
| 34 | 38 |
| 35 def Initialize(output_directory=None, custom_deps=None): | 39 def Initialize(output_directory=None, custom_deps=None): |
| 36 """Initializes devil with chromium's binaries and third-party libraries. | 40 """Initializes devil with chromium's binaries and third-party libraries. |
| 37 | 41 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } | 85 } |
| 82 for dep_name, arch_dict in devil_dynamic_deps.iteritems() | 86 for dep_name, arch_dict in devil_dynamic_deps.iteritems() |
| 83 } | 87 } |
| 84 } | 88 } |
| 85 if custom_deps: | 89 if custom_deps: |
| 86 devil_dynamic_config['dependencies'].update(custom_deps) | 90 devil_dynamic_config['dependencies'].update(custom_deps) |
| 87 | 91 |
| 88 devil_env.config.Initialize( | 92 devil_env.config.Initialize( |
| 89 configs=[devil_dynamic_config], config_files=[_DEVIL_CONFIG]) | 93 configs=[devil_dynamic_config], config_files=[_DEVIL_CONFIG]) |
| 90 | 94 |
| OLD | NEW |