| 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 re | 5 import re |
| 6 | 6 |
| 7 from recipe_engine import recipe_api | 7 from recipe_engine import recipe_api |
| 8 from recipe_engine import util as recipe_util | 8 from recipe_engine import util as recipe_util |
| 9 | 9 |
| 10 class TestLauncherFilterFileInputPlaceholder(recipe_util.InputPlaceholder): | 10 class TestLauncherFilterFileInputPlaceholder(recipe_util.InputPlaceholder): |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 | 517 |
| 518 # No cover because internal recipes use this. | 518 # No cover because internal recipes use this. |
| 519 def run_gyp_chromium(self): # pragma: no cover | 519 def run_gyp_chromium(self): # pragma: no cover |
| 520 gyp_chromium_path = self.m.path['checkout'].join('build', 'gyp_chromium.py') | 520 gyp_chromium_path = self.m.path['checkout'].join('build', 'gyp_chromium.py') |
| 521 env = self.get_env() | 521 env = self.get_env() |
| 522 env.update(self.c.gyp_env.as_jsonish()) | 522 env.update(self.c.gyp_env.as_jsonish()) |
| 523 self.m.python(name='gyp_chromium', script=gyp_chromium_path, env=env); | 523 self.m.python(name='gyp_chromium', script=gyp_chromium_path, env=env); |
| 524 | 524 |
| 525 def run_gn(self, use_goma=False, gn_path=None, build_dir=None, **kwargs): | 525 def run_gn(self, use_goma=False, gn_path=None, build_dir=None, **kwargs): |
| 526 if not gn_path: | 526 if not gn_path: |
| 527 gn_path = self.m.path['depot_tools'].join('gn.py') | 527 gn_path = self.m.depot_tools.gn_py_path |
| 528 | 528 |
| 529 gn_args = list(self.c.gn_args) | 529 gn_args = list(self.c.gn_args) |
| 530 | 530 |
| 531 # TODO(dpranke): Figure out if we should use the '_x64' thing to | 531 # TODO(dpranke): Figure out if we should use the '_x64' thing to |
| 532 # consistent w/ GYP, or drop it to be consistent w/ the other platforms. | 532 # consistent w/ GYP, or drop it to be consistent w/ the other platforms. |
| 533 build_dir = build_dir or '//out/%s' % self.c.build_config_fs | 533 build_dir = build_dir or '//out/%s' % self.c.build_config_fs |
| 534 | 534 |
| 535 if self.c.BUILD_CONFIG == 'Debug': | 535 if self.c.BUILD_CONFIG == 'Debug': |
| 536 gn_args.append('is_debug=true') | 536 gn_args.append('is_debug=true') |
| 537 if self.c.BUILD_CONFIG == 'Release': | 537 if self.c.BUILD_CONFIG == 'Release': |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 })) | 789 })) |
| 790 | 790 |
| 791 def get_annotate_by_test_name(self, test_name): | 791 def get_annotate_by_test_name(self, test_name): |
| 792 return 'graphing' | 792 return 'graphing' |
| 793 | 793 |
| 794 def download_lto_plugin(self): | 794 def download_lto_plugin(self): |
| 795 return self.m.python( | 795 return self.m.python( |
| 796 name='download LTO plugin', | 796 name='download LTO plugin', |
| 797 script=self.m.path['checkout'].join( | 797 script=self.m.path['checkout'].join( |
| 798 'build', 'download_gold_plugin.py')) | 798 'build', 'download_gold_plugin.py')) |
| OLD | NEW |