Index: pylib/gyp/__init__.py |
diff --git a/pylib/gyp/__init__.py b/pylib/gyp/__init__.py |
index 61ce418723ad252cc8b62fc62f4d0943836efef9..2fd234b325a05d59e1d3bbd152fa7b06d4b3c34d 100755 |
--- a/pylib/gyp/__init__.py |
+++ b/pylib/gyp/__init__.py |
@@ -128,7 +128,7 @@ def Load(build_files, format, default_variables={}, |
# Process the input specific to this generator. |
result = gyp.input.Load(build_files, default_variables, includes[:], |
depth, generator_input_info, check, circular_check, |
- params['parallel']) |
+ params['parallel'], params['prune_targets']) |
return [generator] + result |
def NameValueListToDict(name_value_list): |
@@ -337,6 +337,10 @@ def gyp_main(args): |
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('--prune-targets', dest='prune_targets', default=False, |
+ action='store_true', |
+ help='Prune out targets that are not deep dependencies ' |
+ 'of targets in the specified gyp files') |
options, build_files_arg = parser.parse_args(args) |
build_files = build_files_arg |
@@ -506,7 +510,8 @@ def gyp_main(args): |
'build_files_arg': build_files_arg, |
'gyp_binary': sys.argv[0], |
'home_dot_gyp': home_dot_gyp, |
- 'parallel': options.parallel} |
+ 'parallel': options.parallel, |
+ 'prune_targets': options.prune_targets} |
# Start with the default variables from the command line. |
[generator, flat_list, targets, data] = Load(build_files, format, |