| 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 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 'ENABLE_CUSTOM_SCHEME_HANDLER', | 22 'ENABLE_CUSTOM_SCHEME_HANDLER', |
| 23 'ENABLE_ENCRYPTED_MEDIA_V2', | 23 'ENABLE_ENCRYPTED_MEDIA_V2', |
| 24 'ENABLE_MEDIA_CAPTURE', # Only enabled on Android. | 24 'ENABLE_MEDIA_CAPTURE', # Only enabled on Android. |
| 25 'ENABLE_ORIENTATION_EVENTS', # Only enabled on Android. | 25 'ENABLE_ORIENTATION_EVENTS', # Only enabled on Android. |
| 26 'ENABLE_WEBVTT_REGIONS', | 26 'ENABLE_WEBVTT_REGIONS', |
| 27 'ENABLE_XHR_TIMEOUT', | 27 'ENABLE_XHR_TIMEOUT', |
| 28 ] | 28 ] |
| 29 | 29 |
| 30 FEATURE_DEFINES = [ | 30 FEATURE_DEFINES = [ |
| 31 'ENABLE_CALENDAR_PICKER', # Not on Android | 31 'ENABLE_CALENDAR_PICKER', # Not on Android |
| 32 'ENABLE_CSS_REGIONS', | |
| 33 'ENABLE_DATALIST_ELEMENT', # Not on Android | 32 'ENABLE_DATALIST_ELEMENT', # Not on Android |
| 34 'ENABLE_ENCRYPTED_MEDIA', | 33 'ENABLE_ENCRYPTED_MEDIA', |
| 35 'ENABLE_INPUT_SPEECH', # Not on Android | 34 'ENABLE_INPUT_SPEECH', # Not on Android |
| 36 'ENABLE_LEGACY_NOTIFICATIONS', # Not on Android | 35 'ENABLE_LEGACY_NOTIFICATIONS', # Not on Android |
| 37 'ENABLE_MEDIA_STREAM', | |
| 38 'ENABLE_NAVIGATOR_CONTENT_UTILS', # Not on Android | 36 'ENABLE_NAVIGATOR_CONTENT_UTILS', # Not on Android |
| 39 'ENABLE_NOTIFICATIONS', # Not on Android | 37 'ENABLE_NOTIFICATIONS', # Not on Android |
| 40 'ENABLE_PAGE_POPUP', # Not on Android | 38 'ENABLE_PAGE_POPUP', # Not on Android |
| 41 'ENABLE_SVG', | 39 'ENABLE_SVG', |
| 42 'ENABLE_SVG_FONTS', | 40 'ENABLE_SVG_FONTS', |
| 43 'ENABLE_WEB_AUDIO', # Not on Android | 41 'ENABLE_WEB_AUDIO', # Not on Android |
| 44 'ENABLE_WEBGL', | 42 'ENABLE_WEBGL', |
| 45 ] | 43 ] |
| 46 | 44 |
| 47 def build_database(idl_files, database_dir, feature_defines=None, parallel=False
): | 45 def build_database(idl_files, database_dir, feature_defines=None, parallel=False
): |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 if ext == '.idl': | 141 if ext == '.idl': |
| 144 idl_files.append(file_name) | 142 idl_files.append(file_name) |
| 145 | 143 |
| 146 os.path.walk(webcore_dir, visitor, webcore_dir) | 144 os.path.walk(webcore_dir, visitor, webcore_dir) |
| 147 | 145 |
| 148 database_dir = os.path.join(current_dir, '..', 'database') | 146 database_dir = os.path.join(current_dir, '..', 'database') |
| 149 return build_database(idl_files, database_dir, parallel=parallel) | 147 return build_database(idl_files, database_dir, parallel=parallel) |
| 150 | 148 |
| 151 if __name__ == '__main__': | 149 if __name__ == '__main__': |
| 152 sys.exit(main()) | 150 sys.exit(main()) |
| OLD | NEW |