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

Unified Diff: bindings/scripts/generate_init_partial_interfaces.py

Issue 2786203002: Roll 50: Copied IDLs, PYTHON scripts from WebKit removed deleted files in WebCore (Closed)
Patch Set: Created 3 years, 9 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 | « bindings/scripts/generate_idl_diff_test.py ('k') | bindings/scripts/idl_compiler.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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']
« no previous file with comments | « bindings/scripts/generate_idl_diff_test.py ('k') | bindings/scripts/idl_compiler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698