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

Side by Side Diff: build/gyp_chromium

Issue 463193002: Random analyzer cleanup (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 | testing/buildbot/chromium_arm.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' or
194 args[0] == '--analyzer2')
195 if use_analyzer: 193 if use_analyzer:
196 args.pop(0) 194 args.pop(0)
197 os.environ['GYP_GENERATORS'] = 'analyzer' 195 os.environ['GYP_GENERATORS'] = 'analyzer'
198 args.append('-Gconfig_path=' + args.pop(0)) 196 args.append('-Gconfig_path=' + args.pop(0))
199 args.append('-Ganalyzer_output_path=' + args.pop(0)) 197 args.append('-Ganalyzer_output_path=' + args.pop(0))
200 198
201 if int(os.environ.get('GYP_CHROMIUM_NO_ACTION', 0)): 199 if int(os.environ.get('GYP_CHROMIUM_NO_ACTION', 0)):
202 # Check for landmines (reasons to clobber the build) in any case. 200 # Check for landmines (reasons to clobber the build) in any case.
203 print 'Running build/landmines.py...' 201 print 'Running build/landmines.py...'
204 subprocess.check_call( 202 subprocess.check_call(
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 subprocess.check_call( 329 subprocess.check_call(
332 [sys.executable, os.path.join(script_dir, 'landmines.py')]) 330 [sys.executable, os.path.join(script_dir, 'landmines.py')])
333 331
334 if vs2013_runtime_dll_dirs: 332 if vs2013_runtime_dll_dirs:
335 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs 333 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs
336 vs_toolchain.CopyVsRuntimeDlls( 334 vs_toolchain.CopyVsRuntimeDlls(
337 os.path.join(chrome_src, GetOutputDirectory()), 335 os.path.join(chrome_src, GetOutputDirectory()),
338 (x86_runtime, x64_runtime)) 336 (x86_runtime, x64_runtime))
339 337
340 sys.exit(gyp_rc) 338 sys.exit(gyp_rc)
OLDNEW
« no previous file with comments | « no previous file | testing/buildbot/chromium_arm.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698