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

Side by Side Diff: build/landmine_utils.py

Issue 695753002: Add support for GYP_GENERATOR_FLAGS out dir setting for landmines (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Remove unnecessary line as per feedback Created 6 years, 1 month 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 | « no previous file | build/landmines.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 5
6 import functools 6 import functools
7 import logging 7 import logging
8 import os 8 import os
9 import shlex 9 import shlex
10 import sys 10 import sys
(...skipping 30 matching lines...) Expand all
41 return sys.platform == 'darwin' 41 return sys.platform == 'darwin'
42 42
43 43
44 @memoize() 44 @memoize()
45 def gyp_defines(): 45 def gyp_defines():
46 """Parses and returns GYP_DEFINES env var as a dictionary.""" 46 """Parses and returns GYP_DEFINES env var as a dictionary."""
47 return dict(arg.split('=', 1) 47 return dict(arg.split('=', 1)
48 for arg in shlex.split(os.environ.get('GYP_DEFINES', ''))) 48 for arg in shlex.split(os.environ.get('GYP_DEFINES', '')))
49 49
50 @memoize() 50 @memoize()
51 def gyp_generator_flags():
52 """Parses and returns GYP_GENERATOR_FLAGS env var as a dictionary."""
53 return dict(arg.split('=', 1)
54 for arg in shlex.split(os.environ.get('GYP_GENERATOR_FLAGS', '')))
55
56 @memoize()
51 def gyp_msvs_version(): 57 def gyp_msvs_version():
52 return os.environ.get('GYP_MSVS_VERSION', '') 58 return os.environ.get('GYP_MSVS_VERSION', '')
53 59
54 @memoize() 60 @memoize()
55 def distributor(): 61 def distributor():
56 """ 62 """
57 Returns a string which is the distributed build engine in use (if any). 63 Returns a string which is the distributed build engine in use (if any).
58 Possible values: 'goma', 'ib', '' 64 Possible values: 'goma', 'ib', ''
59 """ 65 """
60 if 'goma' in gyp_defines(): 66 if 'goma' in gyp_defines():
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 elif platform() == 'ios': 111 elif platform() == 'ios':
106 return 'xcode' 112 return 'xcode'
107 elif IsWindows(): 113 elif IsWindows():
108 return 'ninja' 114 return 'ninja'
109 elif IsLinux(): 115 elif IsLinux():
110 return 'ninja' 116 return 'ninja'
111 elif IsMac(): 117 elif IsMac():
112 return 'ninja' 118 return 'ninja'
113 else: 119 else:
114 assert False, 'Don\'t know what builder we\'re using!' 120 assert False, 'Don\'t know what builder we\'re using!'
OLDNEW
« no previous file with comments | « no previous file | build/landmines.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698