| 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 logging.config | 8 import logging.config | 
| 9 import os.path | 9 import os.path | 
| 10 import sys | 10 import sys | 
| 11 import time | 11 import time | 
| 12 import utilities | 12 import utilities | 
|  | 13 import dependency | 
| 13 | 14 | 
| 14 _logger = logging.getLogger('fremontcutbuilder') | 15 _logger = logging.getLogger('fremontcutbuilder') | 
| 15 | 16 | 
| 16 # See: | 17 # See: | 
| 17 #  http://src.chromium.org/viewvc/multivm/trunk/webkit/Source/core/features.gypi | 18 #  http://src.chromium.org/viewvc/multivm/trunk/webkit/Source/core/features.gypi | 
| 18 # for ENABLE_* flags defined in Chromium / Blink. | 19 # for ENABLE_* flags defined in Chromium / Blink. | 
| 19 # We list all ENABLE flags used in IDL in one of these two lists. | 20 # We list all ENABLE flags used in IDL in one of these two lists. | 
| 20 FEATURE_DISABLED = [ | 21 FEATURE_DISABLED = [ | 
| 21     'ENABLE_CUSTOM_SCHEME_HANDLER', | 22     'ENABLE_CUSTOM_SCHEME_HANDLER', | 
| 22     'ENABLE_MEDIA_CAPTURE', # Only enabled on Android. | 23     'ENABLE_MEDIA_CAPTURE', # Only enabled on Android. | 
| (...skipping 20 matching lines...) Expand all  Loading... | 
| 43   logging.config.fileConfig(os.path.join(current_dir, "logging.conf")) | 44   logging.config.fileConfig(os.path.join(current_dir, "logging.conf")) | 
| 44 | 45 | 
| 45   _logger.setLevel(logging_level) | 46   _logger.setLevel(logging_level) | 
| 46 | 47 | 
| 47   db = database.Database(database_dir) | 48   db = database.Database(database_dir) | 
| 48 | 49 | 
| 49   # Delete all existing IDLs in the DB. | 50   # Delete all existing IDLs in the DB. | 
| 50   db.Delete() | 51   db.Delete() | 
| 51 | 52 | 
| 52   builder = databasebuilder.DatabaseBuilder(db) | 53   builder = databasebuilder.DatabaseBuilder(db) | 
|  | 54   dependency.set_builder(builder) | 
| 53 | 55 | 
| 54   # TODO(vsm): Move this to a README. | 56   # TODO(vsm): Move this to a README. | 
| 55   # This is the Dart SVN revision. | 57   # This is the Dart SVN revision. | 
| 56   webkit_revision = '1060' | 58   webkit_revision = '1060' | 
| 57 | 59 | 
| 58   # TODO(vsm): Reconcile what is exposed here and inside WebKit code | 60   # TODO(vsm): Reconcile what is exposed here and inside WebKit code | 
| 59   # generation.  We need to recheck this periodically for now. | 61   # generation.  We need to recheck this periodically for now. | 
| 60   webkit_defines = [ 'LANGUAGE_DART', 'LANGUAGE_JAVASCRIPT' ] | 62   webkit_defines = [ 'LANGUAGE_DART', 'LANGUAGE_JAVASCRIPT' ] | 
| 61 | 63 | 
| 62   if feature_defines is None: | 64   if feature_defines is None: | 
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 166         idl_files.append(file_name) | 168         idl_files.append(file_name) | 
| 167 | 169 | 
| 168   os.path.walk(webcore_dir, visitor, webcore_dir) | 170   os.path.walk(webcore_dir, visitor, webcore_dir) | 
| 169 | 171 | 
| 170   database_dir = os.path.join(current_dir, '..', 'database') | 172   database_dir = os.path.join(current_dir, '..', 'database') | 
| 171 | 173 | 
| 172   return build_database(idl_files, database_dir, logging_level=logging_level, ex
     amine_idls=examine_idls) | 174   return build_database(idl_files, database_dir, logging_level=logging_level, ex
     amine_idls=examine_idls) | 
| 173 | 175 | 
| 174 if __name__ == '__main__': | 176 if __name__ == '__main__': | 
| 175   sys.exit(main()) | 177   sys.exit(main()) | 
| OLD | NEW | 
|---|