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

Unified Diff: pylib/gyp/common.py

Issue 10795044: Support Mac android cross compile. Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698