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

Side by Side Diff: build/landmines.py

Issue 11434066: Add android landmine (force android clean build) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 """ 6 """
7 This file holds a list of reasons why a particular build needs to be clobbered 7 This file holds a list of reasons why a particular build needs to be clobbered
8 (or a list of 'landmines'). 8 (or a list of 'landmines').
9 9
10 This script runs every build as a hook. If it detects that the build should 10 This script runs every build as a hook. If it detects that the build should
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 """ 132 """
133 ALL LANDMINES ARE DEFINED HERE. 133 ALL LANDMINES ARE DEFINED HERE.
134 target is 'Release' or 'Debug' 134 target is 'Release' or 'Debug'
135 """ 135 """
136 landmines = [] 136 landmines = []
137 add = lambda item: landmines.append(item + '\n') 137 add = lambda item: landmines.append(item + '\n')
138 138
139 if (distributor() == 'goma' and platform() == 'win32' and 139 if (distributor() == 'goma' and platform() == 'win32' and
140 builder() == 'ninja'): 140 builder() == 'ninja'):
141 add('Need to clobber winja goma due to backend cwd cache fix.') 141 add('Need to clobber winja goma due to backend cwd cache fix.')
142 if platform() == 'android':
143 add('Clean android out directories to reduce zip size.')
142 144
143 return landmines 145 return landmines
144 146
145 147
146 def get_target_build_dir(build_tool, target, is_iphone=False): 148 def get_target_build_dir(build_tool, target, is_iphone=False):
147 """ 149 """
148 Returns output directory absolute path dependent on build and targets. 150 Returns output directory absolute path dependent on build and targets.
149 Examples: 151 Examples:
150 r'c:\b\build\slave\win\build\src\out\Release' 152 r'c:\b\build\slave\win\build\src\out\Release'
151 '/mnt/data/b/build/slave/linux/build/src/out/Debug' 153 '/mnt/data/b/build/slave/linux/build/src/out/Debug'
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 gyp_helper.apply_chromium_gyp_env() 220 gyp_helper.apply_chromium_gyp_env()
219 221
220 for target in ('Debug', 'Release'): 222 for target in ('Debug', 'Release'):
221 set_up_landmines(target) 223 set_up_landmines(target)
222 224
223 return 0 225 return 0
224 226
225 227
226 if __name__ == '__main__': 228 if __name__ == '__main__':
227 sys.exit(main()) 229 sys.exit(main())
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