| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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!' |
| OLD | NEW |