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") | 5 import("//build/config/android/config.gni") |
6 import("//build/symlink.gni") | 6 import("//build/symlink.gni") |
7 | 7 |
8 group("md5sum") { | 8 group("md5sum") { |
9 data_deps = [ | 9 data_deps = [ |
10 ":md5sum_prepare_dist($default_toolchain)", | 10 ":md5sum_prepare_dist($default_toolchain)", |
11 ":md5sum_bin_host($default_toolchain)", | 11 ":md5sum_bin_host($default_toolchain)", |
12 ] | 12 ] |
13 | 13 |
14 # TODO(cjhopman): Remove once group data_deps are fixed. | 14 # TODO(cjhopman): Remove once group data_deps are fixed. |
15 deps = data_deps | 15 deps = data_deps |
16 } | 16 } |
17 | 17 |
18 executable("md5sum_bin") { | 18 executable("md5sum_bin") { |
19 sources = [ | 19 sources = [ |
20 "md5sum.cc", | 20 "md5sum.cc", |
21 ] | 21 ] |
22 deps = [ | 22 deps = [ |
23 "//base", | 23 "//base", |
24 "//build/config/sanitizers:deps", | 24 "//build/config:exe_and_shlib_deps", |
25 ] | 25 ] |
26 | 26 |
27 if (is_android && use_order_profiling) { | 27 if (is_android && use_order_profiling) { |
28 deps += [ "//tools/cygprofile" ] | 28 deps += [ "//tools/cygprofile" ] |
29 } | 29 } |
30 } | 30 } |
31 | 31 |
32 if (current_toolchain == default_toolchain) { | 32 if (current_toolchain == default_toolchain) { |
33 import("//build/config/android/rules.gni") | 33 import("//build/config/android/rules.gni") |
34 | 34 |
35 create_native_executable_dist("md5sum_prepare_dist") { | 35 create_native_executable_dist("md5sum_prepare_dist") { |
36 dist_dir = "$root_build_dir/md5sum_dist" | 36 dist_dir = "$root_build_dir/md5sum_dist" |
37 binary = "$root_build_dir/md5sum_bin" | 37 binary = "$root_build_dir/md5sum_bin" |
38 deps = [ | 38 deps = [ |
39 ":md5sum_bin", | 39 ":md5sum_bin", |
40 ] | 40 ] |
41 } | 41 } |
42 | 42 |
43 binary_symlink("md5sum_bin_host") { | 43 binary_symlink("md5sum_bin_host") { |
44 binary_label = ":md5sum_bin($host_toolchain)" | 44 binary_label = ":md5sum_bin($host_toolchain)" |
45 output_name = "md5sum_bin_host" | 45 output_name = "md5sum_bin_host" |
46 } | 46 } |
47 } | 47 } |
OLD | NEW |