Index: mojo/public/tools/bindings/mojom.gni |
diff --git a/mojo/public/tools/bindings/mojom.gni b/mojo/public/tools/bindings/mojom.gni |
index be36cb49d6200e1ea6742b1bceeb4a5bcbd6aba6..abae45386f71e73fa45f84e8747172a85f35cf02 100644 |
--- a/mojo/public/tools/bindings/mojom.gni |
+++ b/mojo/public/tools/bindings/mojom.gni |
@@ -79,6 +79,9 @@ foreach(configuration, _bindings_configurations) { |
# - convert all users to use the new mode; |
# - remove support for the old mode. |
# |
+# cpp_only (optional) |
+# If set to true, only the C++ bindings targets will be generated. |
+# |
# The following parameters are used to support the component build. They are |
# needed so that bindings which are linked with a component can use the same |
# export settings for classes. The first three are for the chromium variant, and |
@@ -209,6 +212,9 @@ template("mojom") { |
# Generate code for variants. |
foreach(bindings_configuration, _bindings_configurations) { |
cpp_only = false |
+ if (defined(invoker.cpp_only)) { |
+ cpp_only = invoker.cpp_only |
+ } |
variant_suffix = "" |
if (defined(bindings_configuration.variant)) { |
variant = bindings_configuration.variant |