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 |
11 import sys | 11 import sys |
12 | 12 |
13 | 13 |
14 def main(): | 14 def main(): |
15 """This code reconstructs the FremontCut IDL database from W3C, | 15 """This code reconstructs the FremontCut IDL database from W3C, |
16 WebKit and Dart IDL files.""" | 16 WebKit and Dart IDL files.""" |
17 current_dir = os.path.dirname(__file__) | 17 current_dir = os.path.dirname(__file__) |
18 logging.config.fileConfig(os.path.join(current_dir, "logging.conf")) | 18 logging.config.fileConfig(os.path.join(current_dir, "logging.conf")) |
19 | 19 |
20 db = database.Database(os.path.join(current_dir, '..', 'database')) | 20 db = database.Database(os.path.join(current_dir, '..', 'database')) |
21 | 21 |
22 # Delete all existing IDLs in the DB. | 22 # Delete all existing IDLs in the DB. |
23 db.Delete() | 23 db.Delete() |
24 | 24 |
25 builder = databasebuilder.DatabaseBuilder(db) | 25 builder = databasebuilder.DatabaseBuilder(db) |
26 | 26 |
27 # Import WebKit IDL files: | 27 # Import WebKit IDL files: |
28 webkit_dirs = [ | 28 webkit_dirs = [ |
29 'css', | 29 'Modules/indexeddb', |
30 'dom', | 30 'css', |
31 'fileapi', | 31 'dom', |
32 'html', | 32 'fileapi', |
33 'html/canvas', | 33 'html', |
34 'inspector', | 34 'html/canvas', |
35 'loader', | 35 'inspector', |
36 'loader/appcache', | 36 'loader', |
37 'notifications', | 37 'loader/appcache', |
38 'page', | 38 'notifications', |
39 'plugins', | 39 'page', |
40 'storage', | 40 'plugins', |
41 'svg', | 41 'storage', |
42 'webaudio', | 42 'svg', |
43 'websockets', | 43 'webaudio', |
44 'workers', | 44 'websockets', |
45 'xml', | 45 'workers', |
46 ] | 46 'xml', |
| 47 ] |
47 # TODO(vsm): Move this to a README. | 48 # TODO(vsm): Move this to a README. |
48 # This is the Dart SVN revision. | 49 # This is the Dart SVN revision. |
49 webkit_revision = '1060' | 50 webkit_revision = '1060' |
50 | 51 |
51 # TODO(vsm): Reconcile what is exposed here and inside WebKit code | 52 # TODO(vsm): Reconcile what is exposed here and inside WebKit code |
52 # generation. We need to recheck this periodically for now. | 53 # generation. We need to recheck this periodically for now. |
53 webkit_defines = [ | 54 webkit_defines = [ |
54 'LANGUAGE_DART', | 55 'LANGUAGE_DART', |
55 'LANGUAGE_JAVASCRIPT', | 56 'LANGUAGE_JAVASCRIPT', |
56 | 57 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 168 |
168 builder.fix_displacements('WebKit') | 169 builder.fix_displacements('WebKit') |
169 | 170 |
170 # Cleanup: | 171 # Cleanup: |
171 builder.normalize_annotations(['WebKit', 'Dart']) | 172 builder.normalize_annotations(['WebKit', 'Dart']) |
172 | 173 |
173 db.Save() | 174 db.Save() |
174 | 175 |
175 if __name__ == '__main__': | 176 if __name__ == '__main__': |
176 sys.exit(main()) | 177 sys.exit(main()) |
OLD | NEW |