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 from . import builders | 10 from . import builders |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 args += [ | 597 args += [ |
598 '//out/%s' % self.c.build_config_fs | 598 '//out/%s' % self.c.build_config_fs |
599 ] | 599 ] |
600 | 600 |
601 # This runs with no env being passed along, so we get a clean environment | 601 # This runs with no env being passed along, so we get a clean environment |
602 # without any GYP_DEFINES being present to cause confusion. | 602 # without any GYP_DEFINES being present to cause confusion. |
603 self.m.python(name='generate_build_files', | 603 self.m.python(name='generate_build_files', |
604 script=self.m.path['checkout'].join('tools', 'mb', 'mb.py'), | 604 script=self.m.path['checkout'].join('tools', 'mb', 'mb.py'), |
605 args=args) | 605 args=args) |
606 | 606 |
607 def run_gn_check(self): | |
608 # TODO(dpranke): Figure out if we should use the '_x64' thing to | |
609 # consistent w/ GYP, or drop it to be consistent w/ the other platforms. | |
610 build_dir = '//out/%s' % self.c.build_config_fs | |
611 | |
612 self.m.python( | |
613 name='gn check', | |
614 script=self.m.path['depot_tools'].join('gn.py'), | |
615 args=[ | |
616 '--root=%s' % str(self.m.path['checkout']), | |
617 'check', | |
618 build_dir, | |
619 ]) | |
620 | |
621 def taskkill(self): | 607 def taskkill(self): |
622 self.m.python( | 608 self.m.python( |
623 'taskkill', | 609 'taskkill', |
624 self.m.path['build'].join('scripts', 'slave', 'kill_processes.py')) | 610 self.m.path['build'].join('scripts', 'slave', 'kill_processes.py')) |
625 | 611 |
626 def cleanup_temp(self): | 612 def cleanup_temp(self): |
627 self.m.python( | 613 self.m.python( |
628 'cleanup_temp', | 614 'cleanup_temp', |
629 self.m.path['build'].join('scripts', 'slave', 'cleanup_temp.py')) | 615 self.m.path['build'].join('scripts', 'slave', 'cleanup_temp.py')) |
630 | 616 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 '--output', self.m.json.output(), | 763 '--output', self.m.json.output(), |
778 '--', | 764 '--', |
779 ] + self.get_common_args_for_scripts(), | 765 ] + self.get_common_args_for_scripts(), |
780 step_test_data=lambda: self.m.json.test_api.output({})) | 766 step_test_data=lambda: self.m.json.test_api.output({})) |
781 | 767 |
782 def download_lto_plugin(self): | 768 def download_lto_plugin(self): |
783 return self.m.python( | 769 return self.m.python( |
784 name='download LTO plugin', | 770 name='download LTO plugin', |
785 script=self.m.path['checkout'].join( | 771 script=self.m.path['checkout'].join( |
786 'build', 'download_gold_plugin.py')) | 772 'build', 'download_gold_plugin.py')) |
OLD | NEW |