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

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

Issue 10409050: Fix typo in dartdomgenerator.py. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 """This is the entry point to create Dart APIs from the IDL database.""" 6 """This is the entry point to create Dart APIs from the IDL database."""
7 7
8 import dartgenerator 8 import dartgenerator
9 import database 9 import database
10 import logging.config 10 import logging.config
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 ['html/dartium', 'html/impl', 'html', ''], 144 ['html/dartium', 'html/impl', 'html', ''],
145 {'DARTIUM': True, 'FROG': False}), 145 {'DARTIUM': True, 'FROG': False}),
146 target_database, emitters, auxiliary_dir, 146 target_database, emitters, auxiliary_dir,
147 output_dir) 147 output_dir)
148 elif system == 'native': 148 elif system == 'native':
149 implementation_system = NativeImplementationSystem( 149 implementation_system = NativeImplementationSystem(
150 TemplateLoader(template_dir, ['dom/native', 'dom', '']), 150 TemplateLoader(template_dir, ['dom/native', 'dom', '']),
151 target_database, html_renames, emitters, auxiliary_dir, 151 target_database, html_renames, emitters, auxiliary_dir,
152 output_dir) 152 output_dir)
153 else: 153 else:
154 raise Exception('Unsupported system %s' % system_name) 154 raise Exception('Unsupported system %s' % system)
155 155
156 # Makes interface files available for listing in the library for the 156 # Makes interface files available for listing in the library for the
157 # implementation system. 157 # implementation system.
158 implementation_system._interface_system = interface_system 158 implementation_system._interface_system = interface_system
159 159
160 for system in [interface_system, implementation_system]: 160 for system in [interface_system, implementation_system]:
161 generator.Generate(target_database, system, 161 generator.Generate(target_database, system,
162 source_filter=['WebKit', 'Dart'], 162 source_filter=['WebKit', 'Dart'],
163 super_database=common_database, 163 super_database=common_database,
164 common_prefix='common', 164 common_prefix='common',
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 dom_output_dir = options.output_dir or os.path.join(current_dir, 220 dom_output_dir = options.output_dir or os.path.join(current_dir,
221 '../generated') 221 '../generated')
222 html_output_dir = options.output_dir or os.path.join(current_dir, 222 html_output_dir = options.output_dir or os.path.join(current_dir,
223 '../../html/generated') 223 '../../html/generated')
224 Generate(systems, database_dir, options.use_database_cache, 224 Generate(systems, database_dir, options.use_database_cache,
225 dom_output_dir, html_output_dir) 225 dom_output_dir, html_output_dir)
226 226
227 if __name__ == '__main__': 227 if __name__ == '__main__':
228 sys.exit(main()) 228 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698