Index: mojo/public/tools/bindings/mojom.gni |
diff --git a/mojo/public/tools/bindings/mojom.gni b/mojo/public/tools/bindings/mojom.gni |
index 8abf204275c754e657fbadfc598fe3ce58420492..1d3b81bfbe8208750b5bb7678713ba6b37549448 100644 |
--- a/mojo/public/tools/bindings/mojom.gni |
+++ b/mojo/public/tools/bindings/mojom.gni |
@@ -68,6 +68,13 @@ if (enable_mojom_typemapping) { |
_typemap_config = typemap.config |
read_file(_typemap_config.mojom, "") |
} |
+ } else if (is_chromeos && defined(configuration.typemaps_chromeos)) { |
+ foreach(typemap, configuration.typemaps_chromeos) { |
+ _typemap_config = { |
+ } |
+ _typemap_config = typemap.config |
+ read_file(_typemap_config.mojom, "") |
+ } |
} |
} |
} else { |
@@ -494,6 +501,16 @@ template("mojom") { |
active_typemaps += [ typemap ] |
} |
} |
+ } else if (is_chromeos && |
+ defined(bindings_configuration.typemaps_chromeos)) { |
+ foreach(typemap, bindings_configuration.typemaps_chromeos) { |
+ _typemap_config = { |
+ } |
+ _typemap_config = typemap.config |
+ if (get_path_info(source, "abspath") == _typemap_config.mojom) { |
+ active_typemaps += [ typemap ] |
+ } |
+ } |
} |
} |