| 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)", | 8 ":md5sum_bin($host_toolchain)", |
| 9 ":md5sum_bin($default_toolchain)", | 9 ":md5sum_bin($default_toolchain)", |
| 10 ":md5sum_prepare_dist($default_toolchain)", | 10 ":md5sum_prepare_dist($default_toolchain)", |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #], | 32 #], |
| 33 } | 33 } |
| 34 | 34 |
| 35 if (current_toolchain == default_toolchain) { | 35 if (current_toolchain == default_toolchain) { |
| 36 import("//build/config/android/rules.gni") | 36 import("//build/config/android/rules.gni") |
| 37 | 37 |
| 38 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_stripped_device_bin | 38 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_stripped_device_bin |
| 39 create_native_executable_dist("md5sum_prepare_dist") { | 39 create_native_executable_dist("md5sum_prepare_dist") { |
| 40 dist_dir = "$root_build_dir/md5sum_dist" | 40 dist_dir = "$root_build_dir/md5sum_dist" |
| 41 binary = "$root_build_dir/exe.stripped/md5sum_bin" | 41 binary = "$root_build_dir/exe.stripped/md5sum_bin" |
| 42 deps = [ |
| 43 ":md5sum_bin", |
| 44 ] |
| 42 } | 45 } |
| 43 } else { | 46 } else { |
| 44 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_host | 47 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_host |
| 45 copy("md5sum_copy_host") { | 48 copy("md5sum_copy_host") { |
| 46 sources = [ | 49 sources = [ |
| 47 "$root_out_dir/md5sum_bin", | 50 "$root_out_dir/md5sum_bin", |
| 48 ] | 51 ] |
| 49 outputs = [ | 52 outputs = [ |
| 50 "$root_build_dir/md5sum_bin_host", | 53 "$root_build_dir/md5sum_bin_host", |
| 51 ] | 54 ] |
| 55 deps = [ |
| 56 ":md5sum_bin", |
| 57 ] |
| 52 } | 58 } |
| 53 } | 59 } |
| OLD | NEW |