| 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 30 matching lines...) Expand all Loading... |
| 41 """ | 41 """ |
| 42 | 42 |
| 43 from optparse import OptionParser | 43 from optparse import OptionParser |
| 44 import os | 44 import os |
| 45 import posixpath | 45 import posixpath |
| 46 import sys | 46 import sys |
| 47 | 47 |
| 48 from utilities import get_file_contents, read_file_to_list, write_file, get_inte
rface_extended_attributes_from_idl | 48 from utilities import get_file_contents, read_file_to_list, write_file, get_inte
rface_extended_attributes_from_idl |
| 49 | 49 |
| 50 EXPORTED_EXTENDED_ATTRIBUTES = ( | 50 EXPORTED_EXTENDED_ATTRIBUTES = ( |
| 51 'Conditional', | |
| 52 'ImplementedAs', | 51 'ImplementedAs', |
| 53 'RuntimeEnabled', | 52 'RuntimeEnabled', |
| 54 ) | 53 ) |
| 55 module_path = os.path.dirname(os.path.realpath(__file__)) | 54 module_path = os.path.dirname(os.path.realpath(__file__)) |
| 56 source_dir = os.path.normpath(os.path.join(module_path, os.pardir, os.pardir)) | 55 source_dir = os.path.normpath(os.path.join(module_path, os.pardir, os.pardir)) |
| 57 | 56 |
| 58 | 57 |
| 59 def parse_options(): | 58 def parse_options(): |
| 60 parser = OptionParser() | 59 parser = OptionParser() |
| 61 parser.add_option('--event-idl-files-list', help='file listing event IDL fil
es') | 60 parser.add_option('--event-idl-files-list', help='file listing event IDL fil
es') |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 options = parse_options() | 115 options = parse_options() |
| 117 event_idl_files = read_file_to_list(options.event_idl_files_list) | 116 event_idl_files = read_file_to_list(options.event_idl_files_list) |
| 118 write_event_interfaces_file(event_idl_files, | 117 write_event_interfaces_file(event_idl_files, |
| 119 options.event_interfaces_file, | 118 options.event_interfaces_file, |
| 120 options.write_file_only_if_changed, | 119 options.write_file_only_if_changed, |
| 121 options.suffix) | 120 options.suffix) |
| 122 | 121 |
| 123 | 122 |
| 124 if __name__ == '__main__': | 123 if __name__ == '__main__': |
| 125 sys.exit(main()) | 124 sys.exit(main()) |
| OLD | NEW |