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

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

Issue 2747653002: Use depfiles for mojom generation. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | mojo/public/tools/bindings/mojom_bindings_generator.py » ('j') | 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 7aab378c3cdba44506f48906434d3323fcc501ba..246663672eb281df9fd5c3befbaf54f588e214d8 100644
--- a/mojo/public/tools/bindings/mojom.gni
+++ b/mojo/public/tools/bindings/mojom.gni
@@ -259,6 +259,13 @@ template("mojom") {
"-g",
"c++",
]
+ depfile = "{{source_gen_dir}}/${generator_shared_target_name}_{{source_name_part}}.d"
+ args += [
+ "--depfile",
+ depfile,
+ "--depfile_target",
+ "{{source_gen_dir}}/{{source_name_part}}.mojom-shared-internal.h",
+ ]
}
}
@@ -388,6 +395,14 @@ template("mojom") {
bindings_configuration.variant,
]
}
+ depfile =
+ "{{source_gen_dir}}/${generator_target_name}_{{source_name_part}}.d"
+ args += [
+ "--depfile",
+ depfile,
+ "--depfile_target",
+ "{{source_gen_dir}}/{{source_name_part}}.mojom${variant_dash_suffix}.cc",
+ ]
args += [
"--typemap",
« no previous file with comments | « no previous file | mojo/public/tools/bindings/mojom_bindings_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698