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

Side by Side Diff: build/gyp_chromium

Issue 426323002: Updates gyp_chromium to specify analyzer_output_path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | 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 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 use_analyzer = len(args) and args[0] == '--analyzer' 193 use_analyzer = len(args) and args[0] == '--analyzer'
194 if use_analyzer: 194 if use_analyzer:
195 args.pop(0) 195 args.pop(0)
196 os.environ['GYP_GENERATORS'] = 'analyzer' 196 os.environ['GYP_GENERATORS'] = 'analyzer'
197 args.append('-Gfile_path=' + args.pop(0)) 197 args.append('-Gfile_path=' + args.pop(0))
198 elif len(args) and args[0] == '--analyzer2': 198 elif len(args) and args[0] == '--analyzer2':
199 use_analyzer = True 199 use_analyzer = True
200 args.pop(0) 200 args.pop(0)
201 os.environ['GYP_GENERATORS'] = 'analyzer' 201 os.environ['GYP_GENERATORS'] = 'analyzer'
202 args.append('-Gconfig_path=' + args.pop(0)) 202 args.append('-Gconfig_path=' + args.pop(0))
203 args.append('-Ganalyzer_output_path=' + args.pop(0))
203 204
204 if int(os.environ.get('GYP_CHROMIUM_NO_ACTION', 0)): 205 if int(os.environ.get('GYP_CHROMIUM_NO_ACTION', 0)):
205 # Check for landmines (reasons to clobber the build) in any case. 206 # Check for landmines (reasons to clobber the build) in any case.
206 print 'Running build/landmines.py...' 207 print 'Running build/landmines.py...'
207 subprocess.check_call( 208 subprocess.check_call(
208 [sys.executable, os.path.join(script_dir, 'landmines.py')]) 209 [sys.executable, os.path.join(script_dir, 'landmines.py')])
209 print 'Skipping gyp_chromium due to GYP_CHROMIUM_NO_ACTION env var.' 210 print 'Skipping gyp_chromium due to GYP_CHROMIUM_NO_ACTION env var.'
210 sys.exit(0) 211 sys.exit(0)
211 212
212 # Use the Psyco JIT if available. 213 # Use the Psyco JIT if available.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 subprocess.check_call( 335 subprocess.check_call(
335 [sys.executable, os.path.join(script_dir, 'landmines.py')]) 336 [sys.executable, os.path.join(script_dir, 'landmines.py')])
336 337
337 if vs2013_runtime_dll_dirs: 338 if vs2013_runtime_dll_dirs:
338 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs 339 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs
339 vs_toolchain.CopyVsRuntimeDlls( 340 vs_toolchain.CopyVsRuntimeDlls(
340 os.path.join(chrome_src, GetOutputDirectory()), 341 os.path.join(chrome_src, GetOutputDirectory()),
341 (x86_runtime, x64_runtime)) 342 (x86_runtime, x64_runtime))
342 343
343 sys.exit(gyp_rc) 344 sys.exit(gyp_rc)
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