Index: pylib/gyp/__init__.py |
=================================================================== |
--- pylib/gyp/__init__.py (revision 1477) |
+++ 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', |
Mark Mentovai
2012/08/22 13:21:14
This is a “host OS.” I have no idea what a “flavor
|
+ 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,11 @@ |
options, build_files_arg = parser.parse_args(args) |
build_files = build_files_arg |
+ if not options.host_flavor and options.use_environment: |
+ h_f = os.environ.get('GYP_HOST_FLAVOR') |
+ if h_f: |
+ options.host_flavor = h_f |
+ |
if not options.formats: |
# If no format was given on the command line, then check the env variable. |
generate_formats = [] |