Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Side by Side Diff: scripts/slave/recipe_modules/chromium/api.py

Issue 134193014: Make recipes use the new way of enabling goma. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/chromium/config.py » ('j') | scripts/slave/recipe_modules/chromium/config.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698