| 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 from slave import recipe_api | 5 from slave import recipe_api |
| 6 from slave import recipe_util | 6 from slave import recipe_util |
| 7 | 7 |
| 8 | 8 |
| 9 class TestLauncherFilterFileInputPlaceholder(recipe_util.Placeholder): | 9 class TestLauncherFilterFileInputPlaceholder(recipe_util.Placeholder): |
| 10 def __init__(self, api, tests): | 10 def __init__(self, api, tests): |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 args = [ | 60 args = [ |
| 61 '--target', self.c.build_config_fs, | 61 '--target', self.c.build_config_fs, |
| 62 '--src-dir', self.m.path.checkout, | 62 '--src-dir', self.m.path.checkout, |
| 63 ] | 63 ] |
| 64 if self.c.compile_py.build_tool: | 64 if self.c.compile_py.build_tool: |
| 65 args += ['--build-tool', self.c.compile_py.build_tool] | 65 args += ['--build-tool', self.c.compile_py.build_tool] |
| 66 if self.c.compile_py.compiler: | 66 if self.c.compile_py.compiler: |
| 67 args += ['--compiler', self.c.compile_py.compiler] | 67 args += ['--compiler', self.c.compile_py.compiler] |
| 68 if self.c.compile_py.mode: | 68 if self.c.compile_py.mode: |
| 69 args += ['--mode', self.c.compile_py.mode] | 69 args += ['--mode', self.c.compile_py.mode] |
| 70 if self.c.compile_py.goma_dir: |
| 71 args += ['--goma-dir', self.c.compile_py.goma_dir] |
| 70 if (self.m.properties.get('clobber') is not None or | 72 if (self.m.properties.get('clobber') is not None or |
| 71 self.c.compile_py.clobber or | 73 self.c.compile_py.clobber or |
| 72 force_clobber): | 74 force_clobber): |
| 73 args.append('--clobber') | 75 args.append('--clobber') |
| 74 args.append('--') | 76 args.append('--') |
| 75 args.extend(targets) | 77 args.extend(targets) |
| 76 return self.m.python(name or 'compile', | 78 return self.m.python(name or 'compile', |
| 77 self.m.path.build('scripts', 'slave', 'compile.py'), | 79 self.m.path.build('scripts', 'slave', 'compile.py'), |
| 78 args, abort_on_failure=abort_on_failure, **kwargs) | 80 args, abort_on_failure=abort_on_failure, **kwargs) |
| 79 | 81 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 '--verify', | 225 '--verify', |
| 224 '--json', self.m.json.output()], | 226 '--json', self.m.json.output()], |
| 225 **kwargs) | 227 **kwargs) |
| 226 | 228 |
| 227 def deps2submodules(self, **kwargs): | 229 def deps2submodules(self, **kwargs): |
| 228 return self.m.python( | 230 return self.m.python( |
| 229 'deps2submodules', | 231 'deps2submodules', |
| 230 self.m.path.checkout('tools', 'deps2git', 'deps2submodules.py'), | 232 self.m.path.checkout('tools', 'deps2git', 'deps2submodules.py'), |
| 231 args=['--gitless', self.m.path.checkout('.DEPS.git')], | 233 args=['--gitless', self.m.path.checkout('.DEPS.git')], |
| 232 **kwargs) | 234 **kwargs) |
| OLD | NEW |