OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import fnmatch | 5 import fnmatch |
6 import glob | 6 import glob |
7 import os | 7 import os |
8 import shutil | 8 import shutil |
9 import sys | 9 import sys |
10 | 10 |
11 from pylib import cmd_helper | 11 from pylib import cmd_helper |
12 from pylib import constants | 12 from pylib import constants |
13 | 13 |
14 | 14 |
15 _ISOLATE_SCRIPT = os.path.join( | 15 _ISOLATE_SCRIPT = os.path.join( |
16 constants.DIR_SOURCE_ROOT, 'tools', 'swarming_client', 'isolate.py') | 16 constants.DIR_SOURCE_ROOT, 'tools', 'swarming_client', 'isolate.py') |
17 | 17 |
18 | 18 |
19 def DefaultPathVariables(): | 19 def DefaultPathVariables(): |
20 return { | 20 return { |
21 'DEPTH': constants.DIR_SOURCE_ROOT, | 21 'DEPTH': constants.DIR_SOURCE_ROOT, |
22 'PRODUCT_DIR': constants.GetOutDirectory(), | 22 'PRODUCT_DIR': constants.GetOutDirectory(), |
23 } | 23 } |
24 | 24 |
25 | 25 |
26 def DefaultConfigVariables(): | 26 def DefaultConfigVariables(): |
| 27 # Note: This list must match the --config-vars in build/isolate.gypi |
27 return { | 28 return { |
28 'CONFIGURATION_NAME': constants.GetBuildType(), | 29 'CONFIGURATION_NAME': constants.GetBuildType(), |
29 'OS': 'android', | 30 'OS': 'android', |
30 'asan': '0', | 31 'asan': '0', |
| 32 'branding': 'Chromium', |
31 'chromeos': '0', | 33 'chromeos': '0', |
32 'component': 'static_library', | 34 'component': 'static_library', |
| 35 'enable_pepper_cdms': '0', |
| 36 'enable_plugins': '0', |
33 'fastbuild': '0', | 37 'fastbuild': '0', |
34 'icu_use_data_file_flag': '1', | 38 'icu_use_data_file_flag': '1', |
35 'lsan': '0', | 39 'lsan': '0', |
36 'msan': '0', | 40 'msan': '0', |
37 # TODO(maruel): This may not always be true. | 41 # TODO(maruel): This may not always be true. |
38 'target_arch': 'arm', | 42 'target_arch': 'arm', |
39 'tsan': '0', | 43 'tsan': '0', |
40 'use_custom_libcxx': '0', | 44 'use_custom_libcxx': '0', |
41 'use_instrumented_libraries': '0', | 45 'use_instrumented_libraries': '0', |
| 46 'use_prebuilt_instrumented_libraries': '0', |
42 'use_openssl': '0', | 47 'use_openssl': '0', |
43 'use_ozone': '0', | 48 'use_ozone': '0', |
44 'use_x11': '0', | 49 'use_x11': '0', |
45 'v8_use_external_startup_data': '1', | 50 'v8_use_external_startup_data': '1', |
46 } | 51 } |
47 | 52 |
48 | 53 |
49 class Isolator(object): | 54 class Isolator(object): |
50 """Manages calls to isolate.py for the android test runner scripts.""" | 55 """Manages calls to isolate.py for the android test runner scripts.""" |
51 | 56 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 shutil.move(os.path.join(root, filename), paks_dir) | 163 shutil.move(os.path.join(root, filename), paks_dir) |
159 | 164 |
160 # Move everything in PRODUCT_DIR to top level. | 165 # Move everything in PRODUCT_DIR to top level. |
161 deps_product_dir = os.path.join(deps_out_dir, constants.GetBuildType()) | 166 deps_product_dir = os.path.join(deps_out_dir, constants.GetBuildType()) |
162 if os.path.isdir(deps_product_dir): | 167 if os.path.isdir(deps_product_dir): |
163 for p in os.listdir(deps_product_dir): | 168 for p in os.listdir(deps_product_dir): |
164 shutil.move(os.path.join(deps_product_dir, p), self._isolate_deps_dir) | 169 shutil.move(os.path.join(deps_product_dir, p), self._isolate_deps_dir) |
165 os.rmdir(deps_product_dir) | 170 os.rmdir(deps_product_dir) |
166 os.rmdir(deps_out_dir) | 171 os.rmdir(deps_out_dir) |
167 | 172 |
OLD | NEW |