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

Side by Side Diff: build/android/buildbot/bb_host_steps.py

Issue 32323005: android: run zip/extract/compile steps in the parent of src/, like on other platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: different Created 7 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os 6 import os
7 import sys 7 import sys
8 8
9 import bb_utils 9 import bb_utils
10 import bb_annotations 10 import bb_annotations
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 def Compile(options): 51 def Compile(options):
52 RunHooks(options.target) 52 RunHooks(options.target)
53 cmd = [os.path.join(SLAVE_SCRIPTS_DIR, 'compile.py'), 53 cmd = [os.path.join(SLAVE_SCRIPTS_DIR, 'compile.py'),
54 '--build-tool=ninja', 54 '--build-tool=ninja',
55 '--compiler=goma', 55 '--compiler=goma',
56 '--target=%s' % options.target, 56 '--target=%s' % options.target,
57 '--goma-dir=%s' % bb_utils.GOMA_DIR] 57 '--goma-dir=%s' % bb_utils.GOMA_DIR]
58 build_targets = options.build_targets.split(',') 58 build_targets = options.build_targets.split(',')
59 bb_annotations.PrintNamedStep('compile') 59 bb_annotations.PrintNamedStep('compile')
60 for build_target in build_targets: 60 for build_target in build_targets:
61 RunCmd(cmd + ['--build-args=%s' % build_target], halt_on_failure=True) 61 RunCmd(cmd + ['--build-args=%s' % build_target], halt_on_failure=True)
Nico 2013/10/22 02:41:00 Oh hmm, I guess I should do the same here?
62 if options.experimental: 62 if options.experimental:
63 for compile_target in EXPERIMENTAL_TARGETS: 63 for compile_target in EXPERIMENTAL_TARGETS:
64 bb_annotations.PrintNamedStep('Experimental Compile %s' % compile_target) 64 bb_annotations.PrintNamedStep('Experimental Compile %s' % compile_target)
65 RunCmd(cmd + ['--build-args=%s' % compile_target], flunk_on_failure=False) 65 RunCmd(cmd + ['--build-args=%s' % compile_target],
66 flunk_on_failure=False,
67 cwd=constants.DIR_SOURCE_ROOT)
66 68
67 69
68 def ZipBuild(options): 70 def ZipBuild(options):
69 bb_annotations.PrintNamedStep('zip_build') 71 bb_annotations.PrintNamedStep('zip_build')
70 RunCmd([ 72 RunCmd([
71 os.path.join(SLAVE_SCRIPTS_DIR, 'zip_build.py'), 73 os.path.join(SLAVE_SCRIPTS_DIR, 'zip_build.py'),
72 '--src-dir', constants.DIR_SOURCE_ROOT, 74 '--src-dir', constants.DIR_SOURCE_ROOT,
73 '--build-dir', SrcPath('out'), 75 '--build-dir', SrcPath('out'),
74 '--exclude-files', 'lib.target,gen,android_webview,jingle_unittests'] 76 '--exclude-files', 'lib.target,gen,android_webview,jingle_unittests']
75 + bb_utils.EncodeProperties(options)) 77 + bb_utils.EncodeProperties(options), cwd=constants.DIR_SOURCE_ROOT)
76 78
77 79
78 def ExtractBuild(options): 80 def ExtractBuild(options):
79 bb_annotations.PrintNamedStep('extract_build') 81 bb_annotations.PrintNamedStep('extract_build')
80 RunCmd( 82 RunCmd(
81 [os.path.join(SLAVE_SCRIPTS_DIR, 'extract_build.py'), 83 [os.path.join(SLAVE_SCRIPTS_DIR, 'extract_build.py'),
82 '--build-dir', SrcPath('build'), '--build-output-dir', 84 '--build-dir', SrcPath('build'), '--build-output-dir',
83 SrcPath('out')] + bb_utils.EncodeProperties(options), 85 SrcPath('out')] + bb_utils.EncodeProperties(options),
84 warning_code=1) 86 warning_code=1, cwd=constants.DIR_SOURCE_ROOT)
85 87
86 88
87 def FindBugs(options): 89 def FindBugs(options):
88 bb_annotations.PrintNamedStep('findbugs') 90 bb_annotations.PrintNamedStep('findbugs')
89 build_type = [] 91 build_type = []
90 if options.target == 'Release': 92 if options.target == 'Release':
91 build_type = ['--release-build'] 93 build_type = ['--release-build']
92 RunCmd([SrcPath('build', 'android', 'findbugs_diff.py')] + build_type) 94 RunCmd([SrcPath('build', 'android', 'findbugs_diff.py')] + build_type)
93 RunCmd([SrcPath( 95 RunCmd([SrcPath(
94 'tools', 'android', 'findbugs_plugin', 'test', 96 'tools', 'android', 'findbugs_plugin', 'test',
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 return sys.exit('Unused args %s' % args) 140 return sys.exit('Unused args %s' % args)
139 141
140 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) 142 setattr(options, 'target', options.factory_properties.get('target', 'Debug'))
141 143
142 if options.steps: 144 if options.steps:
143 bb_utils.RunSteps(options.steps.split(','), GetHostStepCmds(), options) 145 bb_utils.RunSteps(options.steps.split(','), GetHostStepCmds(), options)
144 146
145 147
146 if __name__ == '__main__': 148 if __name__ == '__main__':
147 sys.exit(main(sys.argv)) 149 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698