| 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 else: | 278 else: |
| 279 dependencies_other_component_full_paths.append(full_path) | 279 dependencies_other_component_full_paths.append(full_path) |
| 280 | 280 |
| 281 for include_path in partial_interfaces_include_paths: | 281 for include_path in partial_interfaces_include_paths: |
| 282 partial_interface_component = idl_filename_to_component(include_path
) | 282 partial_interface_component = idl_filename_to_component(include_path
) |
| 283 if component == partial_interface_component: | 283 if component == partial_interface_component: |
| 284 dependencies_include_paths.append(include_path) | 284 dependencies_include_paths.append(include_path) |
| 285 else: | 285 else: |
| 286 dependencies_other_component_include_paths.append(include_path) | 286 dependencies_other_component_include_paths.append(include_path) |
| 287 | 287 |
| 288 for union_type in interface_info.get('union_types', []): | |
| 289 name = shorten_union_name(union_type) | |
| 290 dependencies_include_paths.append( | |
| 291 'bindings/%s/v8/%s.h' % (component, name)) | |
| 292 | |
| 293 interface_info.update({ | 288 interface_info.update({ |
| 294 'dependencies_full_paths': dependencies_full_paths, | 289 'dependencies_full_paths': dependencies_full_paths, |
| 295 'dependencies_include_paths': dependencies_include_paths, | 290 'dependencies_include_paths': dependencies_include_paths, |
| 296 'dependencies_other_component_full_paths': | 291 'dependencies_other_component_full_paths': |
| 297 dependencies_other_component_full_paths, | 292 dependencies_other_component_full_paths, |
| 298 'dependencies_other_component_include_paths': | 293 'dependencies_other_component_include_paths': |
| 299 dependencies_other_component_include_paths, | 294 dependencies_other_component_include_paths, |
| 300 }) | 295 }) |
| 301 | 296 |
| 302 # Clean up temporary private information | 297 # Clean up temporary private information |
| (...skipping 14 matching lines...) Expand all Loading... |
| 317 # args = Input1, Input2, ..., Output | 312 # args = Input1, Input2, ..., Output |
| 318 interfaces_info_filename = args.pop() | 313 interfaces_info_filename = args.pop() |
| 319 info_individuals = read_pickle_files(args) | 314 info_individuals = read_pickle_files(args) |
| 320 | 315 |
| 321 compute_interfaces_info_overall(info_individuals) | 316 compute_interfaces_info_overall(info_individuals) |
| 322 write_pickle_file(interfaces_info_filename, interfaces_info) | 317 write_pickle_file(interfaces_info_filename, interfaces_info) |
| 323 | 318 |
| 324 | 319 |
| 325 if __name__ == '__main__': | 320 if __name__ == '__main__': |
| 326 sys.exit(main()) | 321 sys.exit(main()) |
| OLD | NEW |