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

Unified Diff: mojo/public/tools/bindings/mojom.gni

Issue 1586123010: Add a switch in BUILD rules to control the generation of type info for mojom files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 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 | « mojo/public/interfaces/bindings/tests/BUILD.gn ('k') | mojo/public/tools/bindings/run_code_generators.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/mojom.gni
diff --git a/mojo/public/tools/bindings/mojom.gni b/mojo/public/tools/bindings/mojom.gni
index 1a8118b14ae28a885a7cc9b382af3f354744995e..fe7dbd5ff0915872098a1feef109cbe6c312aca9 100644
--- a/mojo/public/tools/bindings/mojom.gni
+++ b/mojo/public/tools/bindings/mojom.gni
@@ -205,6 +205,12 @@ template("mojom") {
args += [ "--compiler-version=1" ]
}
+ if (defined(invoker.generate_type_info) && invoker.generate_type_info) {
+ args += [ "--generate-type-info" ]
+ } else {
+ args += [ "--no-generate-type-info" ]
+ }
+
if (defined(invoker.import_dirs)) {
foreach(import_dir, invoker.import_dirs) {
args += [
« no previous file with comments | « mojo/public/interfaces/bindings/tests/BUILD.gn ('k') | mojo/public/tools/bindings/run_code_generators.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698