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

Side by Side Diff: build/landmine_utils.py

Issue 2193023003: Remove more unused landmines code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « build/get_landmines.py ('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 # 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 50
51 @memoize() 51 @memoize()
52 def gyp_generator_flags():
scottmg 2016/07/29 21:35:27 build/landmines.py? https://cs.chromium.org/search
53 """Parses and returns GYP_GENERATOR_FLAGS env var as a dictionary."""
54 return dict(arg.split('=', 1)
55 for arg in shlex.split(os.environ.get('GYP_GENERATOR_FLAGS', '')))
56
57
58 @memoize()
59 def gyp_msvs_version(): 52 def gyp_msvs_version():
60 return os.environ.get('GYP_MSVS_VERSION', '') 53 return os.environ.get('GYP_MSVS_VERSION', '')
61 54
62 55
63 @memoize() 56 @memoize()
64 def distributor(): 57 def distributor():
65 """ 58 """
66 Returns a string which is the distributed build engine in use (if any). 59 Returns a string which is the distributed build engine in use (if any).
67 Possible values: 'goma', None 60 Possible values: 'goma', None
68 """ 61 """
(...skipping 11 matching lines...) Expand all
80 if 'android' in gyp_defines()['OS']: 73 if 'android' in gyp_defines()['OS']:
81 return 'android' 74 return 'android'
82 else: 75 else:
83 return gyp_defines()['OS'] 76 return gyp_defines()['OS']
84 elif IsWindows(): 77 elif IsWindows():
85 return 'win' 78 return 'win'
86 elif IsLinux(): 79 elif IsLinux():
87 return 'linux' 80 return 'linux'
88 else: 81 else:
89 return 'mac' 82 return 'mac'
OLDNEW
« no previous file with comments | « build/get_landmines.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698