| 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. When copied and using a component build, it |
| 48 # fails to find libbase.so (since it's actually at clang_x64/libbase.so). |
| 49 script = "//build/symlink.py" |
| 50 _src = "$root_out_dir/md5sum_bin" |
| 51 _target = "$root_build_dir/md5sum_bin_host" |
| 49 sources = [ | 52 sources = [ |
| 50 "$root_out_dir/md5sum_bin", | 53 _src, |
| 51 ] | 54 ] |
| 52 outputs = [ | 55 outputs = [ |
| 53 "$root_build_dir/md5sum_bin_host", | 56 _target, |
| 54 ] | 57 ] |
| 55 deps = [ | 58 deps = [ |
| 56 ":md5sum_bin", | 59 ":md5sum_bin", |
| 57 ] | 60 ] |
| 61 args = [ |
| 62 "-f", |
| 63 rebase_path(_src, root_build_dir), |
| 64 rebase_path(_target, root_build_dir), |
| 65 ] |
| 58 } | 66 } |
| 59 } | 67 } |
| OLD | NEW |