Index: mojo/public/tools/bindings/mojom.gni |
diff --git a/mojo/public/tools/bindings/mojom.gni b/mojo/public/tools/bindings/mojom.gni |
index 5449727e6e4e1048fc4fc664ddba42c13df5dde0..dcb3a9360b5b6b76a42225c78b567c22f3566858 100644 |
--- a/mojo/public/tools/bindings/mojom.gni |
+++ b/mojo/public/tools/bindings/mojom.gni |
@@ -326,7 +326,7 @@ template("mojom") { |
# //mojo/something:something and we can append cpp_sources_suffix to |
# get the cpp dependency name. |
full_name = get_label_info("$d", "label_no_toolchain") |
- deps += [ "${full_name}${variant_suffix}_${cpp_sources_suffix}" ] |
+ public_deps += [ "${full_name}${variant_suffix}_${cpp_sources_suffix}" ] |
} |
foreach(typemap, active_typemaps) { |
if (defined(typemap.public_headers)) { |
@@ -338,6 +338,9 @@ template("mojom") { |
if (defined(typemap.sources)) { |
sources += typemap.sources |
} |
+ if (defined(typemap.public_deps)) { |
+ public_deps += typemap.public_deps |
+ } |
if (defined(typemap.deps)) { |
deps += typemap.deps |
} |