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

Side by Side Diff: build/gyp_chromium

Issue 426783002: Adds --analyzer2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge to master Created 6 years, 4 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 | testing/buildbot/chromium_trybot.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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # This script is wrapper for Chromium that adds some support for how GYP 7 # This script is wrapper for Chromium that adds some support for how GYP
8 # is invoked by Chromium beyond what can be done in the gclient hooks. 8 # is invoked by Chromium beyond what can be done in the gclient hooks.
9 9
10 import glob 10 import glob
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 # Optionally add supplemental .gypi files if present. 182 # Optionally add supplemental .gypi files if present.
183 for supplement in supplemental_files: 183 for supplement in supplemental_files:
184 AddInclude(supplement) 184 AddInclude(supplement)
185 185
186 return result 186 return result
187 187
188 188
189 if __name__ == '__main__': 189 if __name__ == '__main__':
190 args = sys.argv[1:] 190 args = sys.argv[1:]
191 191
192 # TODO(sky): remove analyzer2 once updated recipes.
192 use_analyzer = len(args) and args[0] == '--analyzer' 193 use_analyzer = len(args) and args[0] == '--analyzer'
193 if use_analyzer: 194 if use_analyzer:
194 args.pop(0) 195 args.pop(0)
195 os.environ['GYP_GENERATORS'] = 'analyzer' 196 os.environ['GYP_GENERATORS'] = 'analyzer'
196 args.append('-Gfile_path=' + args.pop(0)) 197 args.append('-Gfile_path=' + args.pop(0))
198 elif len(args) and args[0] == '--analyzer2':
199 use_analyzer = True
200 args.pop(0)
201 os.environ['GYP_GENERATORS'] = 'analyzer'
202 args.append('-Gconfig_path=' + args.pop(0))
197 203
198 if int(os.environ.get('GYP_CHROMIUM_NO_ACTION', 0)): 204 if int(os.environ.get('GYP_CHROMIUM_NO_ACTION', 0)):
199 # Check for landmines (reasons to clobber the build) in any case. 205 # Check for landmines (reasons to clobber the build) in any case.
200 print 'Running build/landmines.py...' 206 print 'Running build/landmines.py...'
201 subprocess.check_call( 207 subprocess.check_call(
202 [sys.executable, os.path.join(script_dir, 'landmines.py')]) 208 [sys.executable, os.path.join(script_dir, 'landmines.py')])
203 print 'Skipping gyp_chromium due to GYP_CHROMIUM_NO_ACTION env var.' 209 print 'Skipping gyp_chromium due to GYP_CHROMIUM_NO_ACTION env var.'
204 sys.exit(0) 210 sys.exit(0)
205 211
206 # Use the Psyco JIT if available. 212 # Use the Psyco JIT if available.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 subprocess.check_call( 334 subprocess.check_call(
329 [sys.executable, os.path.join(script_dir, 'landmines.py')]) 335 [sys.executable, os.path.join(script_dir, 'landmines.py')])
330 336
331 if vs2013_runtime_dll_dirs: 337 if vs2013_runtime_dll_dirs:
332 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs 338 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs
333 vs_toolchain.CopyVsRuntimeDlls( 339 vs_toolchain.CopyVsRuntimeDlls(
334 os.path.join(chrome_src, GetOutputDirectory()), 340 os.path.join(chrome_src, GetOutputDirectory()),
335 (x86_runtime, x64_runtime)) 341 (x86_runtime, x64_runtime))
336 342
337 sys.exit(gyp_rc) 343 sys.exit(gyp_rc)
OLDNEW
« no previous file with comments | « no previous file | testing/buildbot/chromium_trybot.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698