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

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

Issue 2400313002: Convert miscellaneous RenderThreadImpl messages to mojom (Closed)
Patch Set: rebase Created 4 years, 2 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/tools/bindings/chromium_bindings_configuration.gni ('k') | no next file » | 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 be36cb49d6200e1ea6742b1bceeb4a5bcbd6aba6..d8302ec6f5b914e67b0bb626f9ca882a99deb93d 100644
--- a/mojo/public/tools/bindings/mojom.gni
+++ b/mojo/public/tools/bindings/mojom.gni
@@ -39,10 +39,15 @@ foreach(config_file, _bindings_configuration_files) {
_bindings_configurations += [ read_file(config_file, "scope") ]
}
foreach(configuration, _bindings_configurations) {
+ # Check that the mojom field of each typemap refers to a mojom that exists.
foreach(typemap, configuration.typemaps) {
- # Check that the mojom field of each typemap refers to a mojom that exists.
read_file(typemap.mojom, "")
}
+ if (is_mac && defined(configuration.typemaps_mac)) {
+ foreach(typemap, configuration.typemaps_mac) {
+ read_file(typemap.mojom, "")
+ }
+ }
}
# Generate C++/JavaScript/Java source files from mojom files. The output files
@@ -258,6 +263,13 @@ template("mojom") {
active_typemaps += [ typemap ]
}
}
+ if (is_mac && defined(bindings_configuration.typemaps_mac)) {
+ foreach(typemap, bindings_configuration.typemaps_mac) {
+ if (get_path_info(source, "abspath") == typemap.mojom) {
+ active_typemaps += [ typemap ]
+ }
+ }
+ }
}
if (!cpp_only) {
« no previous file with comments | « mojo/public/tools/bindings/chromium_bindings_configuration.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698