| 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 os.path | 9 import os.path |
| 10 import logging.config | 10 import logging.config |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 'xml', | 47 'xml', |
| 48 ] | 48 ] |
| 49 # TODO(vsm): Move this to a README. | 49 # TODO(vsm): Move this to a README. |
| 50 # This is the Dart SVN revision. | 50 # This is the Dart SVN revision. |
| 51 webkit_revision = '1060' | 51 webkit_revision = '1060' |
| 52 | 52 |
| 53 # TODO(vsm): Reconcile what is exposed here and inside WebKit code | 53 # TODO(vsm): Reconcile what is exposed here and inside WebKit code |
| 54 # generation. | 54 # generation. |
| 55 webkit_defines = [ | 55 webkit_defines = [ |
| 56 'LANGUAGE_DART', | 56 'LANGUAGE_DART', |
| 57 'LANGUAGE_JAVASCRIPT', |
| 57 'ENABLE_DOM_STORAGE', | 58 'ENABLE_DOM_STORAGE', |
| 58 'ENABLE_NOTIFICATIONS', | 59 'ENABLE_NOTIFICATIONS', |
| 59 'ENABLE_OFFLINE_WEB_APPLICATIONS', | 60 'ENABLE_OFFLINE_WEB_APPLICATIONS', |
| 60 'ENABLE_REQUEST_ANIMATION_FRAME', | 61 'ENABLE_REQUEST_ANIMATION_FRAME', |
| 61 'ENABLE_WEB_TIMING', | 62 'ENABLE_WEB_TIMING', |
| 62 ] | 63 ] |
| 63 webkit_options = databasebuilder.DatabaseBuilderOptions( | 64 webkit_options = databasebuilder.DatabaseBuilderOptions( |
| 64 idl_syntax=idlparser.WEBKIT_SYNTAX, | 65 idl_syntax=idlparser.WEBKIT_SYNTAX, |
| 65 # TODO(vsm): What else should we define as on when processing IDL? | 66 # TODO(vsm): What else should we define as on when processing IDL? |
| 66 idl_defines=webkit_defines, | 67 idl_defines=webkit_defines, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 118 |
| 118 builder.fix_displacements('WebKit') | 119 builder.fix_displacements('WebKit') |
| 119 | 120 |
| 120 # Cleanup: | 121 # Cleanup: |
| 121 builder.normalize_annotations(['WebKit', 'Dart']) | 122 builder.normalize_annotations(['WebKit', 'Dart']) |
| 122 | 123 |
| 123 db.Save() | 124 db.Save() |
| 124 | 125 |
| 125 if __name__ == '__main__': | 126 if __name__ == '__main__': |
| 126 sys.exit(main()) | 127 sys.exit(main()) |
| OLD | NEW |