Fix GN deps needed by third_party/WebKit/Tools/Scripts/run-webkit-tests

BUG=587083
TBR=mkwst

Review URL: https://codereview.chromium.org/1882533004

Cr-Original-Commit-Position: refs/heads/master@{#386870}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 993374cf1ac90ef6fbb188017ea2fb445cf0eb09
This commit is contained in:
agrieve 2016-04-12 17:05:39 -07:00 коммит произвёл Commit bot
Родитель 37dfe0c295
Коммит cbedd34f34
1 изменённых файлов: 16 добавлений и 6 удалений

Просмотреть файл

@ -35,8 +35,11 @@ template("symlink") {
#
# Args:
# binary_label: Target that builds the file to symlink to. e.g.:
# ":foo($host_toolchain)".
# output: Where to create the symlink (default="$root_out_dir/$target_name")
# ":$target_name($host_toolchain)".
# binary_output_name: The output_name set by the binary_label target
# (if applicable).
# output_name: Where to create the symlink
# (default="$root_out_dir/$binary_output_name").
#
# Example:
# if (current_toolchain == host_toolchain) {
@ -59,10 +62,17 @@ template("binary_symlink") {
]
_out_dir = get_label_info(invoker.binary_label, "root_out_dir")
source = "$_out_dir/" + get_label_info(invoker.binary_label, "name")
if (defined(invoker.binary_output_name)) {
_name = invoker.binary_output_name
} else {
_name = get_label_info(invoker.binary_label, "name")
}
source = "$_out_dir/$_name"
if (!defined(output)) {
output = "$root_out_dir/${invoker.target_name}"
}
_output_name = _name
if (defined(invoker.output_name)) {
_output_name = invoker.output_name
}
output = "$root_out_dir/$_output_name"
}
}