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

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

Issue 10126002: Enable html_dartium to be built as part of dartium build (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments 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
« no previous file with comments | « no previous file | lib/dom/scripts/dartgenerator.py » ('j') | lib/dom/scripts/systemhtml.py » ('J')
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 module_source_preference = ['WebKit', 'Dart'], 111 module_source_preference = ['WebKit', 'Dart'],
112 source_filter = ['WebKit', 'Dart'], 112 source_filter = ['WebKit', 'Dart'],
113 super_database = common_database, 113 super_database = common_database,
114 common_prefix = 'common', 114 common_prefix = 'common',
115 super_map = webkit_renames_inverse, 115 super_map = webkit_renames_inverse,
116 html_map = html_renames_inverse, 116 html_map = html_renames_inverse,
117 systems = systems) 117 systems = systems)
118 118
119 generator.Flush() 119 generator.Flush()
120 120
121 def GenerateSingleFile(systems):
sra1 2012/04/19 18:17:10 Since many systems are active in one run, 'Single'
121 if 'frog' in systems: 122 if 'frog' in systems:
122 _logger.info('Copy dom_frog to frog/') 123 _logger.info('Copy dom_frog to frog/')
123 subprocess.call(['cd ../generated ; ' 124 subprocess.call(['cd ../generated ; '
124 '../../../tools/copy_dart.py ../frog dom_frog.dart'], 125 '../../../tools/copy_dart.py ../frog dom_frog.dart'],
125 shell=True); 126 shell=True);
126 127
127 if 'htmlfrog' in systems: 128 if 'htmlfrog' in systems:
128 _logger.info('Copy html_frog to ../html/frog/') 129 _logger.info('Copy html_frog to ../html/frog/')
129 subprocess.call(['cd ../../html/generated ; ' 130 subprocess.call(['cd ../../html/generated ; '
130 '../../../tools/copy_dart.py ../frog html_frog.dart'], 131 '../../../tools/copy_dart.py ../frog html_frog.dart'],
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 171
171 database_dir = os.path.join(current_dir, '..', 'database') 172 database_dir = os.path.join(current_dir, '..', 'database')
172 use_database_cache = options.use_database_cache 173 use_database_cache = options.use_database_cache
173 logging.config.fileConfig(os.path.join(current_dir, 'logging.conf')) 174 logging.config.fileConfig(os.path.join(current_dir, 'logging.conf'))
174 175
175 if dom_systems: 176 if dom_systems:
176 output_dir = options.output_dir or os.path.join(current_dir, 177 output_dir = options.output_dir or os.path.join(current_dir,
177 '../generated') 178 '../generated')
178 GenerateDOM(dom_systems, False, output_dir, 179 GenerateDOM(dom_systems, False, output_dir,
179 database_dir, use_database_cache) 180 database_dir, use_database_cache)
181 GenerateSingleFile(dom_systems)
180 182
181 if html_systems: 183 if html_systems:
182 output_dir = options.output_dir or os.path.join(current_dir, 184 output_dir = options.output_dir or os.path.join(current_dir,
183 '../../html/generated') 185 '../../html/generated')
184 GenerateDOM(html_systems, True, output_dir, 186 GenerateDOM(html_systems, True, output_dir,
185 database_dir, use_database_cache or dom_systems) 187 database_dir, use_database_cache or dom_systems)
188 GenerateSingleFile(html_systems)
186 189
187 if __name__ == '__main__': 190 if __name__ == '__main__':
188 sys.exit(main()) 191 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | lib/dom/scripts/dartgenerator.py » ('j') | lib/dom/scripts/systemhtml.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698