| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 os | 5 import os |
| 6 import re | 6 import re |
| 7 | 7 |
| 8 from slave import recipe_api | 8 from slave import recipe_api |
| 9 from slave import recipe_util | 9 from slave import recipe_util |
| 10 | 10 |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 # Chromium workspace. | 616 # Chromium workspace. |
| 617 if self.m.platform.is_win: | 617 if self.m.platform.is_win: |
| 618 self.m.python( | 618 self.m.python( |
| 619 name='get_vs_toolchain_if_necessary', | 619 name='get_vs_toolchain_if_necessary', |
| 620 script=self.m.path['depot_tools'].join( | 620 script=self.m.path['depot_tools'].join( |
| 621 'win_toolchain', 'get_toolchain_if_necessary.py'), | 621 'win_toolchain', 'get_toolchain_if_necessary.py'), |
| 622 args=[ | 622 args=[ |
| 623 '27eac9b2869ef6c89391f305a3f01285ea317867', | 623 '27eac9b2869ef6c89391f305a3f01285ea317867', |
| 624 '9d9a93134b3eabd003b85b4e7dea06c0eae150ed', | 624 '9d9a93134b3eabd003b85b4e7dea06c0eae150ed', |
| 625 ]) | 625 ]) |
| 626 | |
| 627 def get_common_args_for_scripts(self): | |
| 628 args = [] | |
| 629 | |
| 630 args.extend(['--build-config-fs', self.c.build_config_fs]) | |
| 631 | |
| 632 paths = {} | |
| 633 for path in ('build',): | |
| 634 paths[path] = self.m.path[path] | |
| 635 args.extend(['--paths', self.m.json.input(paths)]) | |
| 636 | |
| 637 properties = {} | |
| 638 # TODO(phajdan.jr): Remove buildnumber when no longer used. | |
| 639 for name in ('buildername', 'slavename', 'buildnumber'): | |
| 640 properties[name] = self.m.properties[name] | |
| 641 args.extend(['--properties', self.m.json.input(properties)]) | |
| 642 | |
| 643 return args | |
| 644 | |
| 645 def get_compile_targets_for_scripts(self): | |
| 646 return self.m.python( | |
| 647 name='get compile targets for scripts', | |
| 648 script=self.m.path['checkout'].join( | |
| 649 'testing', 'scripts', 'get_compile_targets.py'), | |
| 650 args=[ | |
| 651 '--output', self.m.json.output(), | |
| 652 '--', | |
| 653 ] + self.get_common_args_for_scripts(), | |
| 654 step_test_data=lambda: self.m.json.test_api.output({})) | |
| OLD | NEW |