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

Unified Diff: mojo/public/tools/bindings/mojom_bindings_generator.py

Issue 674383002: Initial work on Dart bindings for Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge. Work on templates. Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/tools/bindings/mojom.gni ('k') | mojo/tools/dart_test_runner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/mojom_bindings_generator.py
diff --git a/mojo/public/tools/bindings/mojom_bindings_generator.py b/mojo/public/tools/bindings/mojom_bindings_generator.py
index cccc42a514e6ac97e39ee029fea57ebb536eb346..d29b6c5aaef500b29f5031c7ca002196f48ba0f1 100755
--- a/mojo/public/tools/bindings/mojom_bindings_generator.py
+++ b/mojo/public/tools/bindings/mojom_bindings_generator.py
@@ -59,6 +59,9 @@ def LoadGenerators(generators_string):
elif generator_name.lower() == "python":
generator_name = os.path.join(script_dir, "generators",
"mojom_python_generator.py")
+ elif generator_name.lower() == "dart":
+ generator_name = os.path.join(script_dir, "generators",
+ "mojom_dart_generator.py")
# Specified generator python module:
elif generator_name.endswith(".py"):
pass
@@ -170,7 +173,7 @@ def main():
help="output directory for generated files")
parser.add_argument("-g", "--generators", dest="generators_string",
metavar="GENERATORS",
- default="c++,javascript,java,python",
+ default="c++,javascript,java,python,dart",
help="comma-separated list of generators")
parser.add_argument("--debug_print_intermediate", action="store_true",
help="print the intermediate representation")
« no previous file with comments | « mojo/public/tools/bindings/mojom.gni ('k') | mojo/tools/dart_test_runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698