Make devtools-frontend gn files not write absoute paths to generated ninja files

Reduces `diff out/gn{1,2}/toolchain.ninja | wc -l` from 464 to 8
on my linux box.

No intended behavior change.

Bug: chromium:1278777
Change-Id: Ib9e711f67646e848fdfb95393ad75519f789ccf1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3330417
Commit-Queue: Nico Weber <thakis@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
This commit is contained in:
Nico Weber
2021-12-10 15:32:59 +00:00
committed by Devtools-frontend LUCI CQ
parent 33a7644c91
commit 5027efee97
+2 -2
View File
@@ -16,8 +16,8 @@ template("copy_to_gen") {
script = "scripts/build/ninja/copy-files.js"
_copy_src = rebase_path(get_path_info(target_name, "dir"))
_copy_dest = rebase_path(target_gen_dir)
_copy_src = rebase_path(get_path_info(target_name, "dir"), root_build_dir)
_copy_dest = rebase_path(target_gen_dir, root_build_dir)
args = [
_copy_src,