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

Unified Diff: lib/dom/scripts/systemhtml.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 side-by-side diff with in-line comments
Download patch
Index: lib/dom/scripts/systemhtml.py
diff --git a/lib/dom/scripts/systemhtml.py b/lib/dom/scripts/systemhtml.py
index ef8c2f258203f988db2eba841c6ccf3c420b8e95..3bfcc47389f4ad41f2c503caa7136f5774c7b3ea 100644
--- a/lib/dom/scripts/systemhtml.py
+++ b/lib/dom/scripts/systemhtml.py
@@ -1140,13 +1140,15 @@ class HtmlFrogSystem(HtmlSystem):
class HtmlDartiumSystem(HtmlSystem):
- def __init__(self, templates, database, emitters, output_dir, generator):
+ def __init__(self, templates, database, emitters, auxiliary_dir, output_dir,
+ generator):
"""Prepared for generating wrapping implementation.
- Creates emitter for Dart code.
"""
super(HtmlDartiumSystem, self).__init__(
templates, database, emitters, output_dir, generator)
+ self._auxiliary_dir = auxiliary_dir
self._shared = HtmlSystemShared(database, generator)
self._dart_dartium_file_paths = []
self._wrap_cases = []
@@ -1179,6 +1181,8 @@ class HtmlDartiumSystem(HtmlSystem):
def GenerateLibraries(self, lib_dir):
# Library generated for implementation.
+ auxiliary_dir = os.path.relpath(self._auxiliary_dir, self._output_dir)
+
self._GenerateLibFile(
'html_dartium.darttemplate',
os.path.join(lib_dir, 'html_dartium.dart'),
@@ -1186,6 +1190,7 @@ class HtmlDartiumSystem(HtmlSystem):
self._interface_system._dart_callback_file_paths +
self._dart_dartium_file_paths
),
+ AUXILIARY_DIR=MassagePath(auxiliary_dir),
sra1 2012/04/19 18:17:10 See template for suggestion.
WRAPCASES='\n'.join(self._wrap_cases))
def Finish(self):

Powered by Google App Engine
This is Rietveld 408576698