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

Side by Side Diff: build/landmine_utils.py

Issue 2199663002: Recognize for now NetBSD as a Linux-like variant in landmine_utils.py (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 | « 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 # 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 15 matching lines...) Expand all
26 return memoizer 26 return memoizer
27 27
28 28
29 @memoize() 29 @memoize()
30 def IsWindows(): 30 def IsWindows():
31 return sys.platform in ['win32', 'cygwin'] 31 return sys.platform in ['win32', 'cygwin']
32 32
33 33
34 @memoize() 34 @memoize()
35 def IsLinux(): 35 def IsLinux():
36 return sys.platform.startswith(('linux', 'freebsd', 'openbsd')) 36 return sys.platform.startswith(('linux', 'freebsd', 'netbsd', 'openbsd'))
37 37
38 38
39 @memoize() 39 @memoize()
40 def IsMac(): 40 def IsMac():
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."""
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 elif platform() == 'ios': 111 elif platform() == 'ios':
112 return 'xcode' 112 return 'xcode'
113 elif IsWindows(): 113 elif IsWindows():
114 return 'ninja' 114 return 'ninja'
115 elif IsLinux(): 115 elif IsLinux():
116 return 'ninja' 116 return 'ninja'
117 elif IsMac(): 117 elif IsMac():
118 return 'ninja' 118 return 'ninja'
119 else: 119 else:
120 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 | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698