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

Unified Diff: pylib/gyp/__init__.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
« no previous file with comments | « no previous file | pylib/gyp/common.py » ('j') | pylib/gyp/common.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pylib/gyp/__init__.py
===================================================================
--- pylib/gyp/__init__.py (revision 1468)
+++ pylib/gyp/__init__.py (working copy)
@@ -320,6 +320,9 @@
parser.add_option('--toplevel-dir', dest='toplevel_dir', action='store',
default=None, metavar='DIR', type='path',
help='directory to use as the root of the source tree')
+ parser.add_option('--host-flavor', dest='host_flavor', action='store',
+ env_name='GYP_HOST_FLAVOR', regenerate=False,
+ help='overrides host OS flavor used to crosscompile')
# --no-circular-check disables the check for circular relationships between
# .gyp files. These relationships should not exist, but they've only been
# observed to be harmful with the Xcode generator. Chromium's .gyp files
@@ -351,6 +354,9 @@
options, build_files_arg = parser.parse_args(args)
build_files = build_files_arg
+ if not options.host_flavor and options.use_environment:
+ options.host_flavor = os.environ.get('GYP_HOST_FLAVOR', '')
Torne 2012/08/21 09:47:17 Setting this to the empty string is a little gross
+
if not options.formats:
# If no format was given on the command line, then check the env variable.
generate_formats = []
« no previous file with comments | « no previous file | pylib/gyp/common.py » ('j') | pylib/gyp/common.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698