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_prepare_dist($default_toolchain)", | 8 ":md5sum_prepare_dist($default_toolchain)", |
9 ":md5sum_copy_host($host_toolchain)", | 9 ":md5sum_copy_host($host_toolchain)", |
10 ] | 10 ] |
(...skipping 18 matching lines...) Expand all Loading... |
29 #}], | 29 #}], |
30 #], | 30 #], |
31 } | 31 } |
32 | 32 |
33 if (current_toolchain == default_toolchain) { | 33 if (current_toolchain == default_toolchain) { |
34 import("//build/config/android/rules.gni") | 34 import("//build/config/android/rules.gni") |
35 | 35 |
36 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_stripped_device_bin | 36 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_stripped_device_bin |
37 create_native_executable_dist("md5sum_prepare_dist") { | 37 create_native_executable_dist("md5sum_prepare_dist") { |
38 dist_dir = "$root_build_dir/md5sum_dist" | 38 dist_dir = "$root_build_dir/md5sum_dist" |
39 binary = "$root_build_dir/exe.stripped/md5sum_bin" | 39 binary = "$root_build_dir/md5sum_bin" |
40 deps = [ | 40 deps = [ |
41 ":md5sum_bin", | 41 ":md5sum_bin", |
42 ] | 42 ] |
43 } | 43 } |
44 } else { | 44 } else { |
45 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_host | 45 # GYP: //tools/android/md5sum/md5sum.gyp:md5sum_bin_host |
46 action("md5sum_copy_host") { | 46 action("md5sum_copy_host") { |
47 # Symlink rather than copy. When copied and using a component build, it | 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). | 48 # fails to find libbase.so (since it's actually at clang_x64/libbase.so). |
49 script = "//build/symlink.py" | 49 script = "//build/symlink.py" |
50 _src = "$root_out_dir/md5sum_bin" | 50 _src = "$root_out_dir/md5sum_bin" |
51 _target = "$root_build_dir/md5sum_bin_host" | 51 _target = "$root_build_dir/md5sum_bin_host" |
52 sources = [ | 52 sources = [ |
53 _src, | 53 _src, |
54 ] | 54 ] |
55 outputs = [ | 55 outputs = [ |
56 _target, | 56 _target, |
57 ] | 57 ] |
58 deps = [ | 58 deps = [ |
59 ":md5sum_bin", | 59 ":md5sum_bin", |
60 ] | 60 ] |
61 args = [ | 61 args = [ |
62 "-f", | 62 "-f", |
63 rebase_path(_src, root_build_dir), | 63 rebase_path(_src, root_build_dir), |
64 rebase_path(_target, root_build_dir), | 64 rebase_path(_target, root_build_dir), |
65 ] | 65 ] |
66 } | 66 } |
67 } | 67 } |
OLD | NEW |