Index: bindings/scripts/generate_init_partial_interfaces.py |
diff --git a/bindings/scripts/generate_init_partial_interfaces.py b/bindings/scripts/generate_init_partial_interfaces.py |
index 25a97f8c0cb5c2201f4860906b0d64f891c0b165..a604e57f8731786dc0c2c2f80521f8fea0cc5622 100755 |
--- a/bindings/scripts/generate_init_partial_interfaces.py |
+++ b/bindings/scripts/generate_init_partial_interfaces.py |
@@ -23,8 +23,6 @@ _COPYRIGHT = """// Copyright 2014 The Chromium Authors. All rights reserved. |
""" |
_INIT_PARTIAL_INTERFACE = """%s |
-#include "config.h" |
- |
%s |
namespace blink { |
@@ -42,6 +40,7 @@ def parse_options(): |
usage = 'Usage: %prog [options]' |
parser = OptionParser(usage=usage) |
parser.add_option('--idl-files-list', help="a text file containing the IDL file paths, so the command line doesn't exceed OS length limits.") |
+ parser.add_option('--gyp-format-list', default=False, action='store_true', help="if specified, idl-files-list is newline separated. When unspecified, it's formatted as a Posix command line.") |
parser.add_option('--write-file-only-if-changed', type='int', help='if true, do not write an output file if it would be identical to the existing one, which avoids unnecessary rebuilds in ninja') |
parser.add_option('--output') |
@@ -59,7 +58,7 @@ def parse_options(): |
def main(): |
options = parse_options() |
- idl_file_names = read_idl_files_list_from_file(options.idl_files_list) |
+ idl_file_names = read_idl_files_list_from_file(options.idl_files_list, is_gyp_format=options.gyp_format_list) |
meta_data_list = extract_meta_data(idl_file_names) |
interface_names = ['V8%sPartial' % meta_data['name'] |