| 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 import("//build/config/android/config.gni") |
| 6 |
| 5 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum | 7 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum |
| 6 group("md5sum") { | 8 group("md5sum") { |
| 7 data_deps = [ | 9 data_deps = [ |
| 8 ":md5sum_prepare_dist($default_toolchain)", | 10 ":md5sum_prepare_dist($default_toolchain)", |
| 9 ":md5sum_copy_host($host_toolchain)", | 11 ":md5sum_copy_host($host_toolchain)", |
| 10 ] | 12 ] |
| 11 | 13 |
| 12 # TODO(cjhopman): Remove once group data_deps are fixed. | 14 # TODO(cjhopman): Remove once group data_deps are fixed. |
| 13 deps = data_deps | 15 deps = data_deps |
| 14 } | 16 } |
| 15 | 17 |
| 16 # 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) |
| 17 executable("md5sum_bin") { | 19 executable("md5sum_bin") { |
| 18 sources = [ | 20 sources = [ |
| 19 "md5sum.cc", | 21 "md5sum.cc", |
| 20 ] | 22 ] |
| 21 deps = [ | 23 deps = [ |
| 22 "//base", | 24 "//base", |
| 23 "//build/config/sanitizers:deps", | 25 "//build/config/sanitizers:deps", |
| 24 ] | 26 ] |
| 25 | 27 |
| 26 # TODO(GYP) | 28 if (is_android && order_profiling) { |
| 27 #'conditions': [ | 29 deps += [ "//tools/cygprofile" ] |
| 28 #[ 'order_profiling!=0 and OS=="android"', { | 30 } |
| 29 #'dependencies': [ '../../../tools/cygprofile/cygprofile.gyp:cygprofile', ], | |
| 30 #}], | |
| 31 #], | |
| 32 } | 31 } |
| 33 | 32 |
| 34 if (current_toolchain == default_toolchain) { | 33 if (current_toolchain == default_toolchain) { |
| 35 import("//build/config/android/rules.gni") | 34 import("//build/config/android/rules.gni") |
| 36 | 35 |
| 37 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_stripped_device_bin | 36 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_stripped_device_bin |
| 38 create_native_executable_dist("md5sum_prepare_dist") { | 37 create_native_executable_dist("md5sum_prepare_dist") { |
| 39 dist_dir = "$root_build_dir/md5sum_dist" | 38 dist_dir = "$root_build_dir/md5sum_dist" |
| 40 binary = "$root_build_dir/md5sum_bin" | 39 binary = "$root_build_dir/md5sum_bin" |
| 41 deps = [ | 40 deps = [ |
| (...skipping 17 matching lines...) Expand all Loading... |
| 59 deps = [ | 58 deps = [ |
| 60 ":md5sum_bin", | 59 ":md5sum_bin", |
| 61 ] | 60 ] |
| 62 args = [ | 61 args = [ |
| 63 "-f", | 62 "-f", |
| 64 rebase_path(_src, root_build_dir), | 63 rebase_path(_src, root_build_dir), |
| 65 rebase_path(_target, root_build_dir), | 64 rebase_path(_target, root_build_dir), |
| 66 ] | 65 ] |
| 67 } | 66 } |
| 68 } | 67 } |
| OLD | NEW |