Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Side by Side Diff: lib/dom/scripts/fremontcutbuilder.py

Issue 10082011: Remove unnecessary renames from dartdomgenerator.py. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 'plugins', 180 'plugins',
181 'storage', 181 'storage',
182 'Modules/webdatabase', 182 'Modules/webdatabase',
183 'svg', 183 'svg',
184 'Modules/webaudio', 184 'Modules/webaudio',
185 'Modules/websockets', 185 'Modules/websockets',
186 'workers', 186 'workers',
187 'xml', 187 'xml',
188 ] 188 ]
189 189
190 ignored_idls = [
191 'AbstractView.idl',
192 ]
193
190 (idl_list_file, idl_list_file_name) = tempfile.mkstemp() 194 (idl_list_file, idl_list_file_name) = tempfile.mkstemp()
191 195
192 webcore_dir = os.path.join(current_dir, '..', '..', '..', 196 webcore_dir = os.path.join(current_dir, '..', '..', '..',
193 'third_party', 'WebCore') 197 'third_party', 'WebCore')
194 if not os.path.exists(webcore_dir): 198 if not os.path.exists(webcore_dir):
195 raise RuntimeError('directory not found: %s' % webcore_dir) 199 raise RuntimeError('directory not found: %s' % webcore_dir)
196 200
197 def visitor(arg, dir_name, names): 201 def visitor(arg, dir_name, names):
198 for name in names: 202 for name in names:
199 file_name = os.path.join(dir_name, name) 203 file_name = os.path.join(dir_name, name)
200 (interface, ext) = os.path.splitext(file_name) 204 (interface, ext) = os.path.splitext(file_name)
201 if ext == '.idl' and not name.startswith('._'): 205 if ext == '.idl' and name not in ignored_idls:
Anton Muhin 2012/04/17 10:57:59 I am sure you thought about that, but is it safe t
202 path = os.path.relpath(file_name, os.path.dirname(idl_list_file_name)) 206 path = os.path.relpath(file_name, os.path.dirname(idl_list_file_name))
203 os.write(idl_list_file, '%s\n' % path) 207 os.write(idl_list_file, '%s\n' % path)
204 208
205 for dir_name in webkit_dirs: 209 for dir_name in webkit_dirs:
206 dir_path = os.path.join(webcore_dir, dir_name) 210 dir_path = os.path.join(webcore_dir, dir_name)
207 os.path.walk(dir_path, visitor, None) 211 os.path.walk(dir_path, visitor, None)
208 212
209 os.close(idl_list_file) 213 os.close(idl_list_file)
210 214
211 database_dir = os.path.join(current_dir, '..', 'database') 215 database_dir = os.path.join(current_dir, '..', 'database')
212 return build_database(idl_list_file_name, database_dir) 216 return build_database(idl_list_file_name, database_dir)
213 217
214 if __name__ == '__main__': 218 if __name__ == '__main__':
215 sys.exit(main()) 219 sys.exit(main())
OLDNEW
« lib/dom/scripts/dartdomgenerator.py ('K') | « lib/dom/scripts/databasebuilder.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698