| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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()) |
| OLD | NEW |