| 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_ENCRYPTED_MEDIA_V2', | 18 'ENABLE_ENCRYPTED_MEDIA_V2', |
| 18 'ENABLE_INSPECTOR', # Internal DevTools API. | 19 'ENABLE_INSPECTOR', # Internal DevTools API. |
| 19 'ENABLE_MEDIA_CAPTURE', # Only enabled on Android. | 20 'ENABLE_MEDIA_CAPTURE', # Only enabled on Android. |
| 20 'ENABLE_MICRODATA', | 21 'ENABLE_MICRODATA', |
| 21 'ENABLE_ORIENTATION_EVENTS', # Only enabled on Android. | 22 'ENABLE_ORIENTATION_EVENTS', # Only enabled on Android. |
| 22 'ENABLE_PROXIMITY_EVENTS', | 23 'ENABLE_PROXIMITY_EVENTS', |
| 23 'ENABLE_SPEECH_SYNTHESIS', | 24 'ENABLE_SPEECH_SYNTHESIS', |
| 24 'ENABLE_XHR_TIMEOUT', | 25 'ENABLE_XHR_TIMEOUT', |
| 25 # To enable. | 26 # To enable. |
| 26 'ENABLE_NAVIGATOR_CONTENT_UTILS', | |
| 27 'ENABLE_RESOURCE_TIMING', | 27 'ENABLE_RESOURCE_TIMING', |
| 28 'ENABLE_USER_TIMING', | 28 'ENABLE_USER_TIMING', |
| 29 'ENABLE_VIDEO_TRACK ', # Sic! With the trailing space. | 29 'ENABLE_VIDEO_TRACK ', # Sic! With the trailing space. |
| 30 ] | 30 ] |
| 31 | 31 |
| 32 FEATURE_DEFINES = [ | 32 FEATURE_DEFINES = [ |
| 33 'ENABLE_BLOB', | 33 'ENABLE_BLOB', |
| 34 'ENABLE_CALENDAR_PICKER', | 34 'ENABLE_CALENDAR_PICKER', |
| 35 'ENABLE_CANVAS_PATH', | 35 'ENABLE_CANVAS_PATH', |
| 36 'ENABLE_CANVAS_PROXY', | 36 'ENABLE_CANVAS_PROXY', |
| (...skipping 12 matching lines...) Expand all Loading... |
| 49 'ENABLE_FILTERS', | 49 'ENABLE_FILTERS', |
| 50 'ENABLE_FONT_LOAD_EVENTS', | 50 'ENABLE_FONT_LOAD_EVENTS', |
| 51 'ENABLE_GAMEPAD', | 51 'ENABLE_GAMEPAD', |
| 52 'ENABLE_GEOLOCATION', | 52 'ENABLE_GEOLOCATION', |
| 53 'ENABLE_INPUT_SPEECH', | 53 'ENABLE_INPUT_SPEECH', |
| 54 'ENABLE_JAVASCRIPT_DEBUGGER', | 54 'ENABLE_JAVASCRIPT_DEBUGGER', |
| 55 'ENABLE_LEGACY_NOTIFICATIONS', | 55 'ENABLE_LEGACY_NOTIFICATIONS', |
| 56 'ENABLE_MEDIA_STATISTICS', | 56 'ENABLE_MEDIA_STATISTICS', |
| 57 'ENABLE_MEDIA_STREAM', | 57 'ENABLE_MEDIA_STREAM', |
| 58 'ENABLE_METER_ELEMENT', | 58 'ENABLE_METER_ELEMENT', |
| 59 'ENABLE_NAVIGATOR_CONTENT_UTILS', |
| 59 'ENABLE_NOTIFICATIONS', | 60 'ENABLE_NOTIFICATIONS', |
| 60 'ENABLE_PAGE_POPUP', | 61 'ENABLE_PAGE_POPUP', |
| 61 'ENABLE_PERFORMANCE_TIMELINE', | 62 'ENABLE_PERFORMANCE_TIMELINE', |
| 62 'ENABLE_POINTER_LOCK', | 63 'ENABLE_POINTER_LOCK', |
| 63 'ENABLE_PROGRESS_ELEMENT', | 64 'ENABLE_PROGRESS_ELEMENT', |
| 64 'ENABLE_QUOTA', | 65 'ENABLE_QUOTA', |
| 65 'ENABLE_REQUEST_ANIMATION_FRAME', | 66 'ENABLE_REQUEST_ANIMATION_FRAME', |
| 66 'ENABLE_REQUEST_AUTOCOMPLETE', | 67 'ENABLE_REQUEST_AUTOCOMPLETE', |
| 67 'ENABLE_SCRIPTED_SPEECH', | 68 'ENABLE_SCRIPTED_SPEECH', |
| 68 'ENABLE_SHADOW_DOM', | 69 'ENABLE_SHADOW_DOM', |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 if ext == '.idl' and name not in ignored_idls: | 181 if ext == '.idl' and name not in ignored_idls: |
| 181 idl_files.append(file_name) | 182 idl_files.append(file_name) |
| 182 | 183 |
| 183 os.path.walk(webcore_dir, visitor, webcore_dir) | 184 os.path.walk(webcore_dir, visitor, webcore_dir) |
| 184 | 185 |
| 185 database_dir = os.path.join(current_dir, '..', 'database') | 186 database_dir = os.path.join(current_dir, '..', 'database') |
| 186 return build_database(idl_files, database_dir, parallel=parallel) | 187 return build_database(idl_files, database_dir, parallel=parallel) |
| 187 | 188 |
| 188 if __name__ == '__main__': | 189 if __name__ == '__main__': |
| 189 sys.exit(main()) | 190 sys.exit(main()) |
| OLD | NEW |