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

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

Issue 1508293004: Simplify Go's Mojom Type Generator (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Use hyphens in flag, not underscores Created 5 years 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_bindings_generator_v1.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/run_code_generators.py
diff --git a/mojo/public/tools/bindings/run_code_generators.py b/mojo/public/tools/bindings/run_code_generators.py
index 46ddfcb10fb321854d4faf5e43da68a2905ee2ee..7d106536eb811a610e2a4e5c8e6605b13c871515 100755
--- a/mojo/public/tools/bindings/run_code_generators.py
+++ b/mojo/public/tools/bindings/run_code_generators.py
@@ -39,6 +39,13 @@ def _ParseCLIArgs():
help="comma-separated list of generators")
parser.add_argument("-d", "--depth", dest="depth", default=".",
help="relative path to the root of the source tree.")
+ parser.add_argument("--generate-type-info", dest="generate_type_info",
+ action="store_true",
+ help="generate mojom type descriptors")
+ parser.add_argument("--no-generate-type-info", dest="generate_type_info",
+ action="store_false",
+ help="do not generate mojom type descriptors")
+ parser.set_defaults(generate_type_info=True)
return parser.parse_known_args()
@@ -162,6 +169,8 @@ def main():
prefix = '--' + generator_module.GENERATOR_PREFIX + '_'
filtered_args = [arg for arg in remaining_args
if arg.startswith(prefix)]
+ if args.generate_type_info:
+ filtered_args.append("--generate_type_info")
generator.GenerateFiles(filtered_args)
« no previous file with comments | « mojo/public/tools/bindings/mojom_bindings_generator_v1.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698