Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum | 5 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum |
| 6 group("md5sum") { | 6 group("md5sum") { |
| 7 datadeps = [ | 7 datadeps = [ |
| 8 ":md5sum_bin($host_toolchain)", | |
| 9 ":md5sum_bin($default_toolchain)", | |
| 10 ":md5sum_prepare_dist($default_toolchain)", | 8 ":md5sum_prepare_dist($default_toolchain)", |
| 11 ":md5sum_copy_host($host_toolchain)", | 9 ":md5sum_copy_host($host_toolchain)", |
| 12 ] | 10 ] |
| 13 | 11 |
| 14 # TODO(cjhopman): Remove once group datadeps are fixed. | 12 # TODO(cjhopman): Remove once group datadeps are fixed. |
| 15 deps = datadeps | 13 deps = datadeps |
| 16 } | 14 } |
| 17 | 15 |
| 18 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_device (and md5sum_bin_host) | 16 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_device (and md5sum_bin_host) |
| 19 executable("md5sum_bin") { | 17 executable("md5sum_bin") { |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 38 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_stripped_device_bin | 36 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_stripped_device_bin |
| 39 create_native_executable_dist("md5sum_prepare_dist") { | 37 create_native_executable_dist("md5sum_prepare_dist") { |
| 40 dist_dir = "$root_build_dir/md5sum_dist" | 38 dist_dir = "$root_build_dir/md5sum_dist" |
| 41 binary = "$root_build_dir/exe.stripped/md5sum_bin" | 39 binary = "$root_build_dir/exe.stripped/md5sum_bin" |
| 42 deps = [ | 40 deps = [ |
| 43 ":md5sum_bin", | 41 ":md5sum_bin", |
| 44 ] | 42 ] |
| 45 } | 43 } |
| 46 } else { | 44 } else { |
| 47 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_host | 45 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_host |
| 48 copy("md5sum_copy_host") { | 46 action("md5sum_copy_host") { |
| 47 # 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.
| |
| 48 script = "//build/symlink.py" | |
| 49 _src = "$root_out_dir/md5sum_bin" | |
| 50 _target = "$root_build_dir/md5sum_bin_host" | |
| 49 sources = [ | 51 sources = [ |
| 50 "$root_out_dir/md5sum_bin", | 52 _src, |
| 51 ] | 53 ] |
| 52 outputs = [ | 54 outputs = [ |
| 53 "$root_build_dir/md5sum_bin_host", | 55 _target, |
| 54 ] | 56 ] |
| 55 deps = [ | 57 deps = [ |
| 56 ":md5sum_bin", | 58 ":md5sum_bin", |
| 57 ] | 59 ] |
| 60 args = [ | |
| 61 "-f", | |
| 62 rebase_path(_src, root_build_dir), | |
| 63 rebase_path(_target, root_build_dir), | |
| 64 ] | |
| 58 } | 65 } |
| 59 } | 66 } |
| OLD | NEW |