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

Side by Side Diff: build/landmines.py

Issue 14322014: Support ninja flavor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased AUTHORS Created 7 years, 7 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
« no previous file with comments | « AUTHORS ('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 (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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 def builder(): 103 def builder():
104 """ 104 """
105 Returns a string representing the build engine (not compiler) to use. 105 Returns a string representing the build engine (not compiler) to use.
106 Possible values: 'make', 'ninja', 'xcode', 'msvs', 'scons' 106 Possible values: 'make', 'ninja', 'xcode', 'msvs', 'scons'
107 """ 107 """
108 if 'GYP_GENERATORS' in os.environ: 108 if 'GYP_GENERATORS' in os.environ:
109 # for simplicity, only support the first explicit generator 109 # for simplicity, only support the first explicit generator
110 generator = os.environ['GYP_GENERATORS'].split(',')[0] 110 generator = os.environ['GYP_GENERATORS'].split(',')[0]
111 if generator.endswith('-android'): 111 if generator.endswith('-android'):
112 return generator.split('-')[0] 112 return generator.split('-')[0]
113 elif generator.endswith('-ninja'):
114 return 'ninja'
113 else: 115 else:
114 return generator 116 return generator
115 else: 117 else:
116 if platform() == 'android': 118 if platform() == 'android':
117 # Good enough for now? Do any android bots use make? 119 # Good enough for now? Do any android bots use make?
118 return 'ninja' 120 return 'ninja'
119 elif platform() == 'ios': 121 elif platform() == 'ios':
120 return 'xcode' 122 return 'xcode'
121 elif IsWindows(): 123 elif IsWindows():
122 return 'msvs' 124 return 'msvs'
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 gyp_helper.apply_chromium_gyp_env() 226 gyp_helper.apply_chromium_gyp_env()
225 227
226 for target in ('Debug', 'Release', 'Debug_x64', 'Release_x64'): 228 for target in ('Debug', 'Release', 'Debug_x64', 'Release_x64'):
227 set_up_landmines(target) 229 set_up_landmines(target)
228 230
229 return 0 231 return 0
230 232
231 233
232 if __name__ == '__main__': 234 if __name__ == '__main__':
233 sys.exit(main()) 235 sys.exit(main())
OLDNEW
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698