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

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

Issue 69173006: Add runhooks step to AOSP bot to pick up essential build dependencies (like gn). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: GYP_CHROMIUM_NO_ACTION Created 7 years, 1 month 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
« no previous file with comments | « no previous file | scripts/slave/recipes/android_webview_aosp.expected/basic.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 """Common steps for recipes that sync/build Android sources.""" 5 """Common steps for recipes that sync/build Android sources."""
6 6
7 from slave import recipe_api 7 from slave import recipe_api
8 8
9 class AOSPApi(recipe_api.RecipeApi): 9 class AOSPApi(recipe_api.RecipeApi):
10 def __init__(self, **kwargs): 10 def __init__(self, **kwargs):
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 spec = self.m.gclient.make_config('chromium_bare') 45 spec = self.m.gclient.make_config('chromium_bare')
46 deps_blacklist = self.m.step_history.last_step().json.output['blacklist'] 46 deps_blacklist = self.m.step_history.last_step().json.output['blacklist']
47 spec.solutions[0].custom_deps = deps_blacklist 47 spec.solutions[0].custom_deps = deps_blacklist
48 spec.solutions[0].revision = svn_revision 48 spec.solutions[0].revision = svn_revision
49 spec.target_os = ['android'] 49 spec.target_os = ['android']
50 self.m.gclient.spec_alias = 'trimmed' 50 self.m.gclient.spec_alias = 'trimmed'
51 yield self.m.gclient.checkout(spec) 51 yield self.m.gclient.checkout(spec)
52 del self.m.gclient.spec_alias 52 del self.m.gclient.spec_alias
53 53
54 yield self.m.gclient.runhooks(env={'GYP_CHROMIUM_NO_ACTION': 1})
55
54 def lastchange_steps(self): 56 def lastchange_steps(self):
55 lastchange_command = self.m.path.checkout('build', 'util', 'lastchange.py') 57 lastchange_command = self.m.path.checkout('build', 'util', 'lastchange.py')
56 yield ( 58 yield (
57 self.m.step('Chromium LASTCHANGE', [ 59 self.m.step('Chromium LASTCHANGE', [
58 lastchange_command, 60 lastchange_command,
59 '-o', self.m.path.checkout('build', 'util', 'LASTCHANGE'), 61 '-o', self.m.path.checkout('build', 'util', 'LASTCHANGE'),
60 '-s', self.m.path.checkout]), 62 '-s', self.m.path.checkout]),
61 self.m.step('Blink LASTCHANGE', [ 63 self.m.step('Blink LASTCHANGE', [
62 lastchange_command, 64 lastchange_command,
63 '-o', self.m.path.checkout('build', 'util', 'LASTCHANGE.blink'), 65 '-o', self.m.path.checkout('build', 'util', 'LASTCHANGE.blink'),
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 envsetup + 156 envsetup +
155 compile_script + 157 compile_script +
156 targets + 158 targets +
157 ['--build-dir', self.m.path.slave_build] + 159 ['--build-dir', self.m.path.slave_build] +
158 ['--src-dir', src_dir] + 160 ['--src-dir', src_dir] +
159 ['--build-tool', build_tool] + 161 ['--build-tool', build_tool] +
160 ['--verbose'] + 162 ['--verbose'] +
161 compiler_option, 163 compiler_option,
162 cwd=self.m.path.slave_build) 164 cwd=self.m.path.slave_build)
163 165
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/android_webview_aosp.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698