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

Side by Side Diff: third_party/WebKit/Source/bindings/scripts/compute_interfaces_info_overall.py

Issue 2435973003: [Bindings][Refactoring] Make binding scripts use utilities to handle pickle files (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/scripts/generate_global_constructors.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright (C) 2013 Google Inc. All rights reserved. 3 # Copyright (C) 2013 Google Inc. All rights reserved.
4 # 4 #
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are 6 # modification, are permitted provided that the following conditions are
7 # met: 7 # met:
8 # 8 #
9 # * Redistributions of source code must retain the above copyright 9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer. 10 # notice, this list of conditions and the following disclaimer.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 paths for use in C++ #include directives because of dependencies in 74 paths for use in C++ #include directives because of dependencies in
75 other component 75 other component
76 76
77 Note that all of these are stable information, unlikely to change without 77 Note that all of these are stable information, unlikely to change without
78 moving or deleting files (hence requiring a full rebuild anyway) or significant 78 moving or deleting files (hence requiring a full rebuild anyway) or significant
79 code changes (for inherited extended attributes). 79 code changes (for inherited extended attributes).
80 80
81 Design doc: http://www.chromium.org/developers/design-documents/idl-build 81 Design doc: http://www.chromium.org/developers/design-documents/idl-build
82 """ 82 """
83 83
84 from collections import defaultdict 84 # pylint: disable=relative-import
85 import cPickle as pickle 85
86 import optparse 86 import optparse
87 import sys 87 import sys
88 88
89 from utilities import idl_filename_to_component, read_pickle_files, write_pickle _file, merge_dict_recursively, shorten_union_name 89 from collections import defaultdict
90 from utilities import idl_filename_to_component
91 from utilities import merge_dict_recursively
92 from utilities import read_pickle_files
93 from utilities import shorten_union_name
94 from utilities import write_pickle_file
90 95
91 INHERITED_EXTENDED_ATTRIBUTES = set([ 96 INHERITED_EXTENDED_ATTRIBUTES = set([
92 'ActiveScriptWrappable', 97 'ActiveScriptWrappable',
93 'DependentLifetime', 98 'DependentLifetime',
94 ]) 99 ])
95 100
96 # Main variable (filled in and exported) 101 # Main variable (filled in and exported)
97 interfaces_info = {} 102 interfaces_info = {}
98 103
99 # Auxiliary variables (not visible to future build steps) 104 # Auxiliary variables (not visible to future build steps)
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 # args = Input1, Input2, ..., Output 319 # args = Input1, Input2, ..., Output
315 interfaces_info_filename = args.pop() 320 interfaces_info_filename = args.pop()
316 info_individuals = read_pickle_files(args) 321 info_individuals = read_pickle_files(args)
317 322
318 compute_interfaces_info_overall(info_individuals) 323 compute_interfaces_info_overall(info_individuals)
319 write_pickle_file(interfaces_info_filename, interfaces_info) 324 write_pickle_file(interfaces_info_filename, interfaces_info)
320 325
321 326
322 if __name__ == '__main__': 327 if __name__ == '__main__':
323 sys.exit(main()) 328 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/scripts/generate_global_constructors.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698