| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 import database | 6 import database |
| 7 import databasebuilder | 7 import databasebuilder |
| 8 import idlparser | 8 import idlparser |
| 9 import logging.config | 9 import logging.config |
| 10 import os.path | 10 import os.path |
| 11 import sys | 11 import sys |
| 12 | 12 |
| 13 FEATURE_DISABLED = [ | 13 FEATURE_DISABLED = [ |
| 14 'ENABLE_BATTERY_STATUS', | 14 'ENABLE_BATTERY_STATUS', |
| 15 'ENABLE_CSS3_CONDITIONAL_RULES', | 15 'ENABLE_CSS3_CONDITIONAL_RULES', |
| 16 'ENABLE_CSS_DEVICE_ADAPTATION', | 16 'ENABLE_CSS_DEVICE_ADAPTATION', |
| 17 'ENABLE_CUSTOM_SCHEME_HANDLER', | 17 'ENABLE_CUSTOM_SCHEME_HANDLER', |
| 18 'ENABLE_ENCRYPTED_MEDIA_V2', | 18 'ENABLE_ENCRYPTED_MEDIA_V2', |
| 19 'ENABLE_MEDIA_CAPTURE', # Only enabled on Android. | 19 'ENABLE_MEDIA_CAPTURE', # Only enabled on Android. |
| 20 'ENABLE_MICRODATA', | 20 'ENABLE_MICRODATA', |
| 21 'ENABLE_ORIENTATION_EVENTS', # Only enabled on Android. | 21 'ENABLE_ORIENTATION_EVENTS', # Only enabled on Android. |
| 22 'ENABLE_PROXIMITY_EVENTS', | 22 'ENABLE_PROXIMITY_EVENTS', |
| 23 'ENABLE_SPEECH_SYNTHESIS', | 23 'ENABLE_SPEECH_SYNTHESIS', |
| 24 'ENABLE_WEBVTT_REGIONS', | 24 'ENABLE_WEBVTT_REGIONS', |
| 25 'ENABLE_XHR_TIMEOUT', | 25 'ENABLE_XHR_TIMEOUT', |
| 26 ] | 26 ] |
| 27 | 27 |
| 28 FEATURE_DEFINES = [ | 28 FEATURE_DEFINES = [ |
| 29 'ENABLE_BLOB', | |
| 30 'ENABLE_CALENDAR_PICKER', | 29 'ENABLE_CALENDAR_PICKER', |
| 31 'ENABLE_CANVAS_PROXY', | 30 'ENABLE_CANVAS_PROXY', |
| 32 'ENABLE_CSS_FILTERS', | 31 'ENABLE_CSS_FILTERS', |
| 33 'ENABLE_CSS_REGIONS', | 32 'ENABLE_CSS_REGIONS', |
| 34 'ENABLE_CUSTOM_ELEMENTS', | 33 'ENABLE_CUSTOM_ELEMENTS', |
| 35 'ENABLE_DATALIST_ELEMENT', | 34 'ENABLE_DATALIST_ELEMENT', |
| 36 'ENABLE_DETAILS_ELEMENT', | 35 'ENABLE_DETAILS_ELEMENT', |
| 37 'ENABLE_DIALOG_ELEMENT', | 36 'ENABLE_DIALOG_ELEMENT', |
| 38 'ENABLE_DIRECTORY_UPLOAD', | 37 'ENABLE_DIRECTORY_UPLOAD', |
| 39 'ENABLE_ENCRYPTED_MEDIA', | 38 'ENABLE_ENCRYPTED_MEDIA', |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 if ext == '.idl': | 150 if ext == '.idl': |
| 152 idl_files.append(file_name) | 151 idl_files.append(file_name) |
| 153 | 152 |
| 154 os.path.walk(webcore_dir, visitor, webcore_dir) | 153 os.path.walk(webcore_dir, visitor, webcore_dir) |
| 155 | 154 |
| 156 database_dir = os.path.join(current_dir, '..', 'database') | 155 database_dir = os.path.join(current_dir, '..', 'database') |
| 157 return build_database(idl_files, database_dir, parallel=parallel) | 156 return build_database(idl_files, database_dir, parallel=parallel) |
| 158 | 157 |
| 159 if __name__ == '__main__': | 158 if __name__ == '__main__': |
| 160 sys.exit(main()) | 159 sys.exit(main()) |
| OLD | NEW |