Chromium Code Reviews| Index: tools/android/md5sum/BUILD.gn |
| diff --git a/tools/android/md5sum/BUILD.gn b/tools/android/md5sum/BUILD.gn |
| index 0f520401eedff38691926eacdc78a62ab39bafd1..ee1dcb44e75e3e2ba5aa96a8664ac6b7fd5029c4 100644 |
| --- a/tools/android/md5sum/BUILD.gn |
| +++ b/tools/android/md5sum/BUILD.gn |
| @@ -5,8 +5,6 @@ |
| # GYP: //tools/android/md5sum/md5sum.gyp:md5sum |
| group("md5sum") { |
| datadeps = [ |
| - ":md5sum_bin($host_toolchain)", |
| - ":md5sum_bin($default_toolchain)", |
| ":md5sum_prepare_dist($default_toolchain)", |
| ":md5sum_copy_host($host_toolchain)", |
| ] |
| @@ -45,15 +43,24 @@ if (current_toolchain == default_toolchain) { |
| } |
| } else { |
| # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_host |
| - copy("md5sum_copy_host") { |
| + action("md5sum_copy_host") { |
| + # Symlink rather than copy so that it still works for component builds |
|
brettw
2015/07/15 17:31:28
This doesn't say *why* we need to symlink for comp
agrieve
2015/07/15 17:57:53
Good point. Done.
|
| + script = "//build/symlink.py" |
| + _src = "$root_out_dir/md5sum_bin" |
| + _target = "$root_build_dir/md5sum_bin_host" |
| sources = [ |
| - "$root_out_dir/md5sum_bin", |
| + _src, |
| ] |
| outputs = [ |
| - "$root_build_dir/md5sum_bin_host", |
| + _target, |
| ] |
| deps = [ |
| ":md5sum_bin", |
| ] |
| + args = [ |
| + "-f", |
| + rebase_path(_src, root_build_dir), |
| + rebase_path(_target, root_build_dir), |
| + ] |
| } |
| } |