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

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

Issue 2905523002: Reduce absolute paths in generated ninja files (Closed)
Patch Set: fixup Created 3 years, 7 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
Index: mojo/public/tools/bindings/mojom.gni
diff --git a/mojo/public/tools/bindings/mojom.gni b/mojo/public/tools/bindings/mojom.gni
index 1d3b81bfbe8208750b5bb7678713ba6b37549448..95b45aa72cedd6463394e30ff0e66d5d40b258f0 100644
--- a/mojo/public/tools/bindings/mojom.gni
+++ b/mojo/public/tools/bindings/mojom.gni
@@ -270,9 +270,9 @@ template("mojom") {
"-I",
rebase_path("//", root_build_dir),
"-o",
- rebase_path(root_gen_dir),
+ rebase_path(root_gen_dir, root_build_dir),
"--bytecode_path",
- rebase_path("$root_gen_dir/mojo/public/tools/bindings"),
+ rebase_path("$root_gen_dir/mojo/public/tools/bindings", root_build_dir),
]
if (defined(invoker.import_dirs)) {
@@ -378,7 +378,7 @@ template("mojom") {
"--impl_macro",
shared_component_impl_macro,
"--output_file",
- generated_shared_export_header,
+ rebase_path(generated_shared_export_header, root_build_dir),
"--relative_path",
rebase_path(generated_shared_export_header, root_gen_dir),
]
@@ -532,7 +532,7 @@ template("mojom") {
"--impl_macro",
"${invoker.component_macro_prefix}${bindings_configuration.component_macro_suffix}_IMPL",
"--output_file",
- generated_export_header,
+ rebase_path(generated_export_header, root_build_dir),
"--relative_path",
rebase_path(generated_export_header, root_gen_dir),
]

Powered by Google App Engine
This is Rietveld 408576698