| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2012, 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 module provides shared functionality for the system to generate | 6 """This module provides shared functionality for the system to generate |
| 7 Dart:html APIs from the IDL database.""" | 7 Dart:html APIs from the IDL database.""" |
| 8 | 8 |
| 9 import emitter | 9 import emitter |
| 10 | 10 |
| (...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1216 | 1216 |
| 1217 class HtmlDart2JSSystem(System): | 1217 class HtmlDart2JSSystem(System): |
| 1218 | 1218 |
| 1219 def __init__(self, options): | 1219 def __init__(self, options): |
| 1220 super(HtmlDart2JSSystem, self).__init__(options) | 1220 super(HtmlDart2JSSystem, self).__init__(options) |
| 1221 | 1221 |
| 1222 def ImplementationGenerator(self, interface): | 1222 def ImplementationGenerator(self, interface): |
| 1223 return HtmlDart2JSClassGenerator(self, interface) | 1223 return HtmlDart2JSClassGenerator(self, interface) |
| 1224 | 1224 |
| 1225 def GenerateLibraries(self, dart_files): | 1225 def GenerateLibraries(self, dart_files): |
| 1226 auxiliary_dir = os.path.relpath(self._auxiliary_dir, self._output_dir) |
| 1226 self._GenerateLibFile( | 1227 self._GenerateLibFile( |
| 1227 'html_dart2js.darttemplate', | 1228 'html_dart2js.darttemplate', |
| 1228 os.path.join(self._output_dir, 'html_dart2js.dart'), | 1229 os.path.join(self._output_dir, 'html_dart2js.dart'), |
| 1229 dart_files) | 1230 dart_files, |
| 1231 AUXILIARY_DIR=systembase.MassagePath(auxiliary_dir)) |
| 1230 | 1232 |
| 1231 def Finish(self): | 1233 def Finish(self): |
| 1232 pass | 1234 pass |
| OLD | NEW |