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 aee3b8c253c599d5127923753ef50eacd01e4511..93325767b2ac4fd70319b91d6b37136964511495 100755 |
--- a/mojo/public/tools/bindings/mojom_bindings_generator.py |
+++ b/mojo/public/tools/bindings/mojom_bindings_generator.py |
@@ -53,6 +53,9 @@ def LoadGenerators(generators_string): |
elif generator_name.lower() == "javascript": |
generator_name = os.path.join(script_dir, "generators", |
"mojom_js_generator.py") |
+ elif generator_name.lower() == "java": |
+ generator_name = os.path.join(script_dir, "generators", |
+ "mojom_java_generator.py") |
# Specified generator python module: |
elif generator_name.endswith(".py"): |
pass |
@@ -153,7 +156,7 @@ def main(): |
parser.add_argument("-o", "--output_dir", dest="output_dir", default=".", |
help="output directory for generated files") |
parser.add_argument("-g", "--generators", dest="generators_string", |
- metavar="GENERATORS", default="c++,javascript", |
+ metavar="GENERATORS", default="c++,javascript,java", |
help="comma-separated list of generators") |
parser.add_argument("--debug_print_intermediate", action="store_true", |
help="print the intermediate representation") |