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

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

Issue 53153011: android bb: Stop passing --build-dir and --build-output-dir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 | « build/android/buildbot/bb_device_steps.py ('k') | 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 RunCmd(cmd + ['--build-args=%s' % compile_target], 69 RunCmd(cmd + ['--build-args=%s' % compile_target],
70 flunk_on_failure=False, 70 flunk_on_failure=False,
71 cwd=DIR_BUILD_ROOT) 71 cwd=DIR_BUILD_ROOT)
72 72
73 73
74 def ZipBuild(options): 74 def ZipBuild(options):
75 bb_annotations.PrintNamedStep('zip_build') 75 bb_annotations.PrintNamedStep('zip_build')
76 RunCmd([ 76 RunCmd([
77 os.path.join(SLAVE_SCRIPTS_DIR, 'zip_build.py'), 77 os.path.join(SLAVE_SCRIPTS_DIR, 'zip_build.py'),
78 '--src-dir', constants.DIR_SOURCE_ROOT, 78 '--src-dir', constants.DIR_SOURCE_ROOT,
79 '--build-dir', SrcPath('out'),
80 '--exclude-files', 'lib.target,gen,android_webview,jingle_unittests'] 79 '--exclude-files', 'lib.target,gen,android_webview,jingle_unittests']
81 + bb_utils.EncodeProperties(options), cwd=DIR_BUILD_ROOT) 80 + bb_utils.EncodeProperties(options), cwd=DIR_BUILD_ROOT)
82 81
83 82
84 def ExtractBuild(options): 83 def ExtractBuild(options):
85 bb_annotations.PrintNamedStep('extract_build') 84 bb_annotations.PrintNamedStep('extract_build')
86 RunCmd( 85 RunCmd([os.path.join(SLAVE_SCRIPTS_DIR, 'extract_build.py')]
87 [os.path.join(SLAVE_SCRIPTS_DIR, 'extract_build.py'), 86 + bb_utils.EncodeProperties(options),
88 '--build-dir', SrcPath('build'), '--build-output-dir', 87 warning_code=1, cwd=DIR_BUILD_ROOT)
89 SrcPath('out')] + bb_utils.EncodeProperties(options),
90 warning_code=1, cwd=DIR_BUILD_ROOT)
91 88
92 89
93 def FindBugs(options): 90 def FindBugs(options):
94 bb_annotations.PrintNamedStep('findbugs') 91 bb_annotations.PrintNamedStep('findbugs')
95 build_type = [] 92 build_type = []
96 if options.target == 'Release': 93 if options.target == 'Release':
97 build_type = ['--release-build'] 94 build_type = ['--release-build']
98 RunCmd([SrcPath('build', 'android', 'findbugs_diff.py')] + build_type) 95 RunCmd([SrcPath('build', 'android', 'findbugs_diff.py')] + build_type)
99 RunCmd([SrcPath( 96 RunCmd([SrcPath(
100 'tools', 'android', 'findbugs_plugin', 'test', 97 'tools', 'android', 'findbugs_plugin', 'test',
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 return sys.exit('Unused args %s' % args) 141 return sys.exit('Unused args %s' % args)
145 142
146 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) 143 setattr(options, 'target', options.factory_properties.get('target', 'Debug'))
147 144
148 if options.steps: 145 if options.steps:
149 bb_utils.RunSteps(options.steps.split(','), GetHostStepCmds(), options) 146 bb_utils.RunSteps(options.steps.split(','), GetHostStepCmds(), options)
150 147
151 148
152 if __name__ == '__main__': 149 if __name__ == '__main__':
153 sys.exit(main(sys.argv)) 150 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « build/android/buildbot/bb_device_steps.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698