Index: pylib/gyp/common.py |
=================================================================== |
--- pylib/gyp/common.py (revision 1468) |
+++ pylib/gyp/common.py (working copy) |
@@ -360,6 +360,15 @@ |
flavor = flavors.get(sys.platform, 'linux') |
return params.get('flavor', flavor) |
Torne
2012/08/21 09:47:17
Two blank lines between top level definitions (abo
|
+def GetHostFlavor(params): |
+ """Returns |params.options.host_flavor| if it's set, the system's default |
+ 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 |