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

Side by Side Diff: sdk/lib/html/scripts/dartdomgenerator.py

Issue 11362065: Add KeyCode enumeration in Dart. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/html/scripts/fremontcutbuilder.py » ('j') | 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 fremontcutbuilder 10 import fremontcutbuilder
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 dartium_output_dir) 127 dartium_output_dir)
128 cpp_library_emitter.EmitResolver( 128 cpp_library_emitter.EmitResolver(
129 template_loader.Load('cpp_resolver.template'), dartium_output_dir) 129 template_loader.Load('cpp_resolver.template'), dartium_output_dir)
130 130
131 _logger.info('Flush...') 131 _logger.info('Flush...')
132 emitters.Flush() 132 emitters.Flush()
133 133
134 def GenerateSingleFile(library_path, output_dir): 134 def GenerateSingleFile(library_path, output_dir):
135 library_dir = os.path.dirname(library_path) 135 library_dir = os.path.dirname(library_path)
136 library_filename = os.path.basename(library_path) 136 library_filename = os.path.basename(library_path)
137 copy_dart_script = os.path.relpath('../../../tools/copy_dart.py', library_dir) 137 copy_dart_script = os.path.relpath('../../../../tools/copy_dart.py',
138 library_dir)
138 output_dir = os.path.relpath(output_dir, library_dir) 139 output_dir = os.path.relpath(output_dir, library_dir)
139 command = ' '.join(['cd', library_dir, ';', 140 command = ' '.join(['cd', library_dir, ';',
140 copy_dart_script, output_dir, library_filename]) 141 copy_dart_script, output_dir, library_filename])
141 subprocess.call([command], shell=True) 142 subprocess.call([command], shell=True)
142 143
143 def main(): 144 def main():
144 parser = optparse.OptionParser() 145 parser = optparse.OptionParser()
145 parser.add_option('--parallel', dest='parallel', 146 parser.add_option('--parallel', dest='parallel',
146 action='store_true', default=False, 147 action='store_true', default=False,
147 help='Use fremontcut in parallel mode.') 148 help='Use fremontcut in parallel mode.')
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 _logger.info('Copy html_dart2js to dart2js/') 189 _logger.info('Copy html_dart2js to dart2js/')
189 GenerateSingleFile(os.path.join(dart2js_output_dir, 'html_dart2js.dart'), 190 GenerateSingleFile(os.path.join(dart2js_output_dir, 'html_dart2js.dart'),
190 '../dart2js') 191 '../dart2js')
191 if 'htmldartium' in systems: 192 if 'htmldartium' in systems:
192 _logger.info('Copy html_dartium to dartium/') 193 _logger.info('Copy html_dartium to dartium/')
193 GenerateSingleFile(os.path.join(dartium_output_dir, 'html_dartium.dart'), 194 GenerateSingleFile(os.path.join(dartium_output_dir, 'html_dartium.dart'),
194 '../dartium') 195 '../dartium')
195 196
196 if __name__ == '__main__': 197 if __name__ == '__main__':
197 sys.exit(main()) 198 sys.exit(main())
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/html/scripts/fremontcutbuilder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698