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