Index: mojo/public/tools/bindings/mojom.gni |
diff --git a/mojo/public/tools/bindings/mojom.gni b/mojo/public/tools/bindings/mojom.gni |
index 6e2a62a8aa0fc4c8102bdd9395d6f0b7ff541ca5..deee35865dd87bb0ca1feab17f9f0448e86dd392 100644 |
--- a/mojo/public/tools/bindings/mojom.gni |
+++ b/mojo/public/tools/bindings/mojom.gni |
@@ -61,6 +61,10 @@ mojom_generator_sources = [ |
# A variant name to apply to generated bindings. Variant influences |
# generated source filenames as wells the symbols they define. |
# |
+# cpp_only (optional) |
+# If true, only C++ bindings will be generated. This defaults to false |
+# unless |variant| is specified. |
+# |
# testonly (optional) |
# |
# visibility (optional) |
@@ -73,6 +77,9 @@ template("mojom") { |
cpp_sources_suffix = "cpp_sources" |
cpp_sources_target_name = "${target_name}_${cpp_sources_suffix}" |
cpp_only = false |
+ if (defined(invoker.cpp_only)) { |
+ cpp_only = invoker.cpp_only |
+ } |
if (defined(invoker.sources)) { |
if (defined(invoker.variant)) { |
variant = invoker.variant |