Chromium Code Reviews| Index: pylib/gyp/common.py |
| =================================================================== |
| --- pylib/gyp/common.py (revision 1452) |
| +++ pylib/gyp/common.py (working copy) |
| @@ -360,6 +360,15 @@ |
| flavor = flavors.get(sys.platform, 'linux') |
| return params.get('flavor', flavor) |
| +def GetHostFlavor(params): |
| + """Returns |params.options.host_flavor | if it's set, the system's default |
|
Torne
2012/08/14 11:04:01
No whitespace between the variable name and |
|
| + flavor else.""" |
| + options = params.get('options') |
| + if options.host_flavor: |
| + host_flavor = options.host_flavor |
| + else: |
| + host_flavor = GetFlavor({}) |
| + return host_flavor; |
| def CopyTool(flavor, out_path): |
| """Finds (mac|sun|win)_tool.gyp in the gyp directory and copies it |