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

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 1475)
+++ pylib/gyp/common.py (working copy)
@@ -10,6 +10,7 @@
import re
import tempfile
import sys
+import pprint
Torne 2012/08/22 11:23:21 Left over from debugging?
# A minimal memoizing decorator. It'll blow up if the args aren't immutable,
@@ -370,6 +371,17 @@
return params.get('flavor', flavor)
+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
to |out_path|."""
« pylib/gyp/__init__.py ('K') | « pylib/gyp/__init__.py ('k') | pylib/gyp/generator/make.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698