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

Unified Diff: tools/dom/scripts/dartdomgenerator.py

Issue 254463006: This CL contains all of the changes for splitting off all of the native (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Additional cleanup, eliminate now unused generality Created 6 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
« no previous file with comments | « no previous file | tools/dom/scripts/generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/dartdomgenerator.py
diff --git a/tools/dom/scripts/dartdomgenerator.py b/tools/dom/scripts/dartdomgenerator.py
index f1d5e96854b31161ce7eafec7f87d600533f0e14..3008c8cf9a07c49b753e8a2c78010485dc9bbac2 100755
--- a/tools/dom/scripts/dartdomgenerator.py
+++ b/tools/dom/scripts/dartdomgenerator.py
@@ -23,7 +23,8 @@ from htmlrenamer import HtmlRenamer
from systemhtml import DartLibraryEmitter, Dart2JSBackend,\
HtmlDartInterfaceGenerator, DartLibrary, DartLibraries,\
HTML_LIBRARY_NAMES
-from systemnative import CPPLibraryEmitter, DartiumBackend
+from systemnative import CPPLibraryEmitter, DartiumBackend, \
+ GetNativeLibraryEmitter, dart_use_blink
from templateloader import TemplateLoader
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..'))
@@ -117,19 +118,23 @@ def GenerateFromDatabase(common_database, dart2js_output_dir,
template_paths = ['html/dartium', 'html/impl', 'html/interface', '']
template_loader = TemplateLoader(template_dir,
template_paths,
- {'DARTIUM': True, 'DART2JS': False})
+ {'DARTIUM': True, 'DART2JS': False,
+ 'DART_USE_BLINK' : dart_use_blink})
backend_options = GeneratorOptions(
template_loader, webkit_database, type_registry, renamer,
metadata)
cpp_output_dir = os.path.join(dartium_output_dir, 'cpp')
cpp_library_emitter = CPPLibraryEmitter(emitters, cpp_output_dir)
- backend_factory = lambda interface:\
- DartiumBackend(interface, cpp_library_emitter, backend_options)
-
dart_output_dir = os.path.join(dartium_output_dir, 'dart')
+ native_library_emitter = \
+ GetNativeLibraryEmitter(emitters, template_loader,
+ dartium_output_dir, dart_output_dir,
+ auxiliary_dir)
+ backend_factory = lambda interface:\
+ DartiumBackend(interface, native_library_emitter,
+ cpp_library_emitter, backend_options)
dart_libraries = DartLibraries(
HTML_LIBRARY_NAMES, template_loader, 'dartium', dartium_output_dir)
-
RunGenerator(dart_libraries, dart_output_dir,
template_loader, backend_factory)
cpp_library_emitter.EmitDerivedSources(
« no previous file with comments | « no previous file | tools/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698