| 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)", |
| 11 ":md5sum_copy_host($host_toolchain)", | 11 ":md5sum_copy_host($host_toolchain)", |
| 12 ] | 12 ] |
| 13 |
| 13 # TODO(cjhopman): Remove once group datadeps are fixed. | 14 # TODO(cjhopman): Remove once group datadeps are fixed. |
| 14 deps = datadeps | 15 deps = datadeps |
| 15 } | 16 } |
| 16 | 17 |
| 17 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_device (and md5sum_bin_host) | 18 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_device (and md5sum_bin_host) |
| 18 executable("md5sum_bin") { | 19 executable("md5sum_bin") { |
| 19 sources = [ | 20 sources = [ |
| 20 "md5sum.cc" | 21 "md5sum.cc", |
| 21 ] | 22 ] |
| 22 deps = [ | 23 deps = [ |
| 23 "//base" | 24 "//base", |
| 24 ] | 25 ] |
| 25 | 26 |
| 26 # TODO(GYP) | 27 # TODO(GYP) |
| 27 #'conditions': [ | 28 #'conditions': [ |
| 28 #[ 'order_profiling!=0 and OS=="android"', { | 29 #[ 'order_profiling!=0 and OS=="android"', { |
| 29 #'dependencies': [ '../../../tools/cygprofile/cygprofile.gyp:cygprofile', ], | 30 #'dependencies': [ '../../../tools/cygprofile/cygprofile.gyp:cygprofile', ], |
| 30 #}], | 31 #}], |
| 31 #], | 32 #], |
| 32 } | 33 } |
| 33 | 34 |
| 34 if (current_toolchain == default_toolchain) { | 35 if (current_toolchain == default_toolchain) { |
| 35 import("//build/config/android/rules.gni") | 36 import("//build/config/android/rules.gni") |
| 36 | 37 |
| 37 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_stripped_device_bin | 38 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_stripped_device_bin |
| 38 create_native_executable_dist("md5sum_prepare_dist") { | 39 create_native_executable_dist("md5sum_prepare_dist") { |
| 39 dist_dir = "$root_build_dir/md5sum_dist" | 40 dist_dir = "$root_build_dir/md5sum_dist" |
| 40 binary = "$root_build_dir/exe.stripped/md5sum_bin" | 41 binary = "$root_build_dir/exe.stripped/md5sum_bin" |
| 41 } | 42 } |
| 42 } else { | 43 } else { |
| 43 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_host | 44 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_host |
| 44 copy("md5sum_copy_host") { | 45 copy("md5sum_copy_host") { |
| 45 sources = [ | 46 sources = [ |
| 46 "$root_out_dir/md5sum_bin" | 47 "$root_out_dir/md5sum_bin", |
| 47 ] | 48 ] |
| 48 outputs = [ | 49 outputs = [ |
| 49 "$root_build_dir/md5sum_bin_host" | 50 "$root_build_dir/md5sum_bin_host", |
| 50 ] | 51 ] |
| 51 } | 52 } |
| 52 } | 53 } |
| 53 | |
| OLD | NEW |