| 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 # Triage. | 15 # Triage. |
| 16 'ENABLE_CANVAS_PATH', | |
| 17 'ENABLE_CANVAS_PROXY', | |
| 18 'ENABLE_CSS3_CONDITIONAL_RULES', | 16 'ENABLE_CSS3_CONDITIONAL_RULES', |
| 19 'ENABLE_CSS_DEVICE_ADAPTATION', | 17 'ENABLE_CSS_DEVICE_ADAPTATION', |
| 20 'ENABLE_CSS_REGIONS', | 18 'ENABLE_CSS_REGIONS', |
| 21 'ENABLE_CUSTOM_ELEMENTS', | 19 'ENABLE_CUSTOM_ELEMENTS', |
| 22 'ENABLE_DIALOG_ELEMENT', | 20 'ENABLE_DIALOG_ELEMENT', |
| 23 'ENABLE_ENCRYPTED_MEDIA_V2', | 21 'ENABLE_ENCRYPTED_MEDIA_V2', |
| 24 'ENABLE_FONT_LOAD_EVENTS', | 22 'ENABLE_FONT_LOAD_EVENTS', |
| 25 'ENABLE_INSPECTOR', | 23 'ENABLE_INSPECTOR', |
| 26 'ENABLE_MEDIA_CAPTURE', | 24 'ENABLE_MEDIA_CAPTURE', |
| 27 'ENABLE_MICRODATA', | 25 'ENABLE_MICRODATA', |
| 28 'ENABLE_NAVIGATOR_CONTENT_UTILS', | 26 'ENABLE_NAVIGATOR_CONTENT_UTILS', |
| 29 'ENABLE_ORIENTATION_EVENTS', | 27 'ENABLE_ORIENTATION_EVENTS', |
| 30 'ENABLE_PERFORMANCE_TIMELINE', | 28 'ENABLE_PERFORMANCE_TIMELINE', |
| 31 'ENABLE_PROXIMITY_EVENTS', | 29 'ENABLE_PROXIMITY_EVENTS', |
| 32 'ENABLE_REQUEST_AUTOCOMPLETE', | 30 'ENABLE_REQUEST_AUTOCOMPLETE', |
| 33 'ENABLE_RESOURCE_TIMING', | 31 'ENABLE_RESOURCE_TIMING', |
| 34 'ENABLE_SPEECH_SYNTHESIS', | 32 'ENABLE_SPEECH_SYNTHESIS', |
| 35 'ENABLE_USER_TIMING', | 33 'ENABLE_USER_TIMING', |
| 36 'ENABLE_VIDEO_TRACK ', | 34 'ENABLE_VIDEO_TRACK ', |
| 37 'ENABLE_XHR_TIMEOUT' | 35 'ENABLE_XHR_TIMEOUT' |
| 38 ] | 36 ] |
| 39 | 37 |
| 40 FEATURE_DEFINES = [ | 38 FEATURE_DEFINES = [ |
| 41 'ENABLE_BLOB', | 39 'ENABLE_BLOB', |
| 42 'ENABLE_CALENDAR_PICKER', | 40 'ENABLE_CALENDAR_PICKER', |
| 41 'ENABLE_CANVAS_PATH', |
| 42 'ENABLE_CANVAS_PROXY', |
| 43 'ENABLE_CSS_FILTERS', | 43 'ENABLE_CSS_FILTERS', |
| 44 'ENABLE_CSS_SHADERS', | 44 'ENABLE_CSS_SHADERS', |
| 45 'ENABLE_DATALIST_ELEMENT', | 45 'ENABLE_DATALIST_ELEMENT', |
| 46 'ENABLE_DETAILS_ELEMENT', | 46 'ENABLE_DETAILS_ELEMENT', |
| 47 'ENABLE_DEVICE_ORIENTATION', | 47 'ENABLE_DEVICE_ORIENTATION', |
| 48 'ENABLE_DIRECTORY_UPLOAD', | 48 'ENABLE_DIRECTORY_UPLOAD', |
| 49 'ENABLE_DOWNLOAD_ATTRIBUTE', | 49 'ENABLE_DOWNLOAD_ATTRIBUTE', |
| 50 'ENABLE_ENCRYPTED_MEDIA', | 50 'ENABLE_ENCRYPTED_MEDIA', |
| 51 'ENABLE_FILE_SYSTEM', | 51 'ENABLE_FILE_SYSTEM', |
| 52 'ENABLE_FILTERS', | 52 'ENABLE_FILTERS', |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 if ext == '.idl' and name not in ignored_idls: | 180 if ext == '.idl' and name not in ignored_idls: |
| 181 idl_files.append(file_name) | 181 idl_files.append(file_name) |
| 182 | 182 |
| 183 os.path.walk(webcore_dir, visitor, webcore_dir) | 183 os.path.walk(webcore_dir, visitor, webcore_dir) |
| 184 | 184 |
| 185 database_dir = os.path.join(current_dir, '..', 'database') | 185 database_dir = os.path.join(current_dir, '..', 'database') |
| 186 return build_database(idl_files, database_dir, parallel=parallel) | 186 return build_database(idl_files, database_dir, parallel=parallel) |
| 187 | 187 |
| 188 if __name__ == '__main__': | 188 if __name__ == '__main__': |
| 189 sys.exit(main()) | 189 sys.exit(main()) |
| OLD | NEW |