OLD | NEW |
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 import cPickle as pickle | 85 import cPickle as pickle |
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 | 89 from utilities import idl_filename_to_component, read_pickle_files, write_pickle
_file |
90 | 90 |
91 INHERITED_EXTENDED_ATTRIBUTES = set([ | 91 INHERITED_EXTENDED_ATTRIBUTES = set([ |
92 'ActiveDOMObject', | 92 'ActiveDOMObject', |
93 'DependentLifetime', | 93 'DependentLifetime', |
94 'GarbageCollected', | 94 'GarbageCollected', |
95 'NotScriptWrappable', | |
96 'WillBeGarbageCollected', | 95 'WillBeGarbageCollected', |
97 ]) | 96 ]) |
98 | 97 |
99 # Main variable (filled in and exported) | 98 # Main variable (filled in and exported) |
100 interfaces_info = {} | 99 interfaces_info = {} |
101 | 100 |
102 # Auxiliary variables (not visible to future build steps) | 101 # Auxiliary variables (not visible to future build steps) |
103 partial_interface_files = defaultdict(lambda: { | 102 partial_interface_files = defaultdict(lambda: { |
104 'full_paths': [], | 103 'full_paths': [], |
105 'include_paths': [], | 104 'include_paths': [], |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 info_individuals = read_pickle_files(args) | 329 info_individuals = read_pickle_files(args) |
331 | 330 |
332 compute_interfaces_info_overall(info_individuals) | 331 compute_interfaces_info_overall(info_individuals) |
333 write_pickle_file(interfaces_info_filename, | 332 write_pickle_file(interfaces_info_filename, |
334 interfaces_info, | 333 interfaces_info, |
335 options.write_file_only_if_changed) | 334 options.write_file_only_if_changed) |
336 | 335 |
337 | 336 |
338 if __name__ == '__main__': | 337 if __name__ == '__main__': |
339 sys.exit(main()) | 338 sys.exit(main()) |
OLD | NEW |