| 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 # TODO(antonm): most probably should go away or be autogenerated on IDLs roll. | 13 # TODO(antonm): most probably should go away or be autogenerated on IDLs roll. |
| 14 DEFAULT_FEATURE_DEFINES = [ | 14 DEFAULT_FEATURE_DEFINES = [ |
| 15 # Enabled Chrome WebKit build. | 15 # Enabled Chrome WebKit build. |
| 16 'ENABLE_3D_PLUGIN', | 16 'ENABLE_3D_PLUGIN', |
| 17 'ENABLE_3D_RENDERING', | 17 'ENABLE_3D_RENDERING', |
| 18 'ENABLE_ACCELERATED_2D_CANVAS', | 18 'ENABLE_ACCELERATED_2D_CANVAS', |
| 19 'ENABLE_BATTERY_STATUS', | 19 'ENABLE_BATTERY_STATUS', |
| 20 'ENABLE_BLOB', | 20 'ENABLE_BLOB', |
| 21 'ENABLE_BLOB_SLICE', | 21 'ENABLE_BLOB_SLICE', |
| 22 'ENABLE_CALENDAR_PICKER', | 22 'ENABLE_CALENDAR_PICKER', |
| 23 'ENABLE_CHANNEL_MESSAGING', | 23 'ENABLE_CHANNEL_MESSAGING', |
| 24 'ENABLE_CSS_FILTERS', | 24 'ENABLE_CSS_FILTERS', |
| 25 'ENABLE_CSS_IMAGE_SET', | 25 'ENABLE_CSS_IMAGE_SET', |
| 26 'ENABLE_CSS_SHADERS', | 26 'ENABLE_CSS_SHADERS', |
| 27 'ENABLE_DART', | 27 'ENABLE_DART', |
| 28 'ENABLE_DATA_TRANSFER_ITEMS', | 28 'ENABLE_DATA_TRANSFER_ITEMS', |
| 29 'ENABLE_DATALIST_ELEMENT', |
| 29 'ENABLE_DETAILS', | 30 'ENABLE_DETAILS', |
| 30 'ENABLE_DETAILS_ELEMENT', | 31 'ENABLE_DETAILS_ELEMENT', |
| 31 'ENABLE_DEVICE_ORIENTATION', | 32 'ENABLE_DEVICE_ORIENTATION', |
| 32 'ENABLE_DIRECTORY_UPLOAD', | 33 'ENABLE_DIRECTORY_UPLOAD', |
| 33 'ENABLE_DOWNLOAD_ATTRIBUTE', | 34 'ENABLE_DOWNLOAD_ATTRIBUTE', |
| 34 'ENABLE_ENCRYPTED_MEDIA', | 35 'ENABLE_ENCRYPTED_MEDIA', |
| 35 'ENABLE_FILE_SYSTEM', | 36 'ENABLE_FILE_SYSTEM', |
| 36 'ENABLE_FILTERS', | 37 'ENABLE_FILTERS', |
| 37 'ENABLE_FULLSCREEN_API', | 38 'ENABLE_FULLSCREEN_API', |
| 38 'ENABLE_GAMEPAD', | 39 'ENABLE_GAMEPAD', |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 208 |
| 208 for dir_name in webkit_dirs: | 209 for dir_name in webkit_dirs: |
| 209 dir_path = os.path.join(webcore_dir, dir_name) | 210 dir_path = os.path.join(webcore_dir, dir_name) |
| 210 os.path.walk(dir_path, visitor, None) | 211 os.path.walk(dir_path, visitor, None) |
| 211 | 212 |
| 212 database_dir = os.path.join(current_dir, '..', 'database') | 213 database_dir = os.path.join(current_dir, '..', 'database') |
| 213 return build_database(idl_files, database_dir) | 214 return build_database(idl_files, database_dir) |
| 214 | 215 |
| 215 if __name__ == '__main__': | 216 if __name__ == '__main__': |
| 216 sys.exit(main()) | 217 sys.exit(main()) |
| OLD | NEW |