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

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 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

Powered by Google App Engine
This is Rietveld 408576698